From: Steve Brokenshire Date: Sun, 31 Jan 2016 14:29:41 +0000 (+0000) Subject: Added code to process the UID property in CalendarJournalObject. X-Git-Tag: release-0.02~497 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=8e317588956b3092b3fa07dbd7b2bd36260adc38;p=xestiacalendar%2F.git Added code to process the UID property in CalendarJournalObject. --- diff --git a/source/objects/calendarjournal/CalendarJournal.cpp b/source/objects/calendarjournal/CalendarJournal.cpp index d5bf6fa..92dce67 100644 --- a/source/objects/calendarjournal/CalendarJournal.cpp +++ b/source/objects/calendarjournal/CalendarJournal.cpp @@ -165,4 +165,24 @@ void CalendarJournalObject::ProcessData(){ } + // Get the Unique ID (UID). + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "UID"); + + // Process the data from UID. + + if (DataReceived.begin() != DataReceived.end()){ + + try { + UniqueIDTokens = DataReceived.begin()->first.substr(4); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + UniqueID = DataReceived.begin()->second; + + } + } \ No newline at end of file