From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:57:39 +0000 (+0000) Subject: Added code to process CLASS in CalendarTaskObject. X-Git-Tag: release-0.02~587 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=a9c97432676c629caab9ad88abd04a58b53073e2;p=xestiacalendar%2F.git Added code to process CLASS in CalendarTaskObject. --- diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index cb22857..3e7a342 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -185,4 +185,22 @@ void CalendarTaskObject::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