From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:46:44 +0000 (+0000) Subject: Added code to process DTSTAMP in CalendarTaskObject. X-Git-Tag: release-0.02~593 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=bca123ebe3ca5c92dac2ef005508b99522f19c01;p=xestiacalendar%2F.git Added code to process DTSTAMP in CalendarTaskObject. --- 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