From bca123ebe3ca5c92dac2ef005508b99522f19c01 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:46:44 +0000 Subject: [PATCH] Added code to process DTSTAMP in CalendarTaskObject. --- source/objects/calendartask/CalendarTask.cpp | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index 4e56efb..86571f8 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -138,4 +138,31 @@ CalendarObjectValidResult CalendarTaskObject::ValidObject(){ void CalendarTaskObject::ProcessData(){ + // Process the data. + + multimap DataReceived; + map PropertyData; + string *PropertyNameData = nullptr; + int ObjectSeekCount = 0; + + // Get the Date Time Stamp (DTSTAMP). + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "DTSTAMP"); + + // Process the data from DTSTAMP. + + if (DataReceived.begin() != DataReceived.end()){ + + try { + DateTimeStampTokens = DataReceived.begin()->first.substr(8); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + DateTimeStampData = DataReceived.begin()->second; + + } + } \ No newline at end of file -- 2.39.5