From: Steve Brokenshire Date: Sun, 31 Jan 2016 14:34:13 +0000 (+0000) Subject: Added code to process the CLASS property in CalendarJournalObject. X-Git-Tag: release-0.02~495 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=1542e73dfb5f7e0bc0ae62eb8ab5caf63dae75ec;p=xestiacalendar%2F.git Added code to process the CLASS property in CalendarJournalObject. --- diff --git a/source/objects/calendarjournal/CalendarJournal.cpp b/source/objects/calendarjournal/CalendarJournal.cpp index 92dce67..3e08b8a 100644 --- a/source/objects/calendarjournal/CalendarJournal.cpp +++ b/source/objects/calendarjournal/CalendarJournal.cpp @@ -185,4 +185,22 @@ void CalendarJournalObject::ProcessData(){ } + // Process the data from CLASS. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "CLASS"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + ClassDataTokens = DataReceived.begin()->first.substr(6); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + ClassData = DataReceived.begin()->second; + + } + } \ No newline at end of file