From: Steve Brokenshire Date: Sun, 24 Jan 2016 08:12:49 +0000 (+0000) Subject: Added code to process CREATED in CalendarEventObject. X-Git-Tag: release-0.02~707 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=bf2991fbc983e84044e5efd42e154babe65f5517;p=xestiacalendar%2F.git Added code to process CREATED in CalendarEventObject. --- diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index 7cc99a4..b35f7c1 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -271,7 +271,7 @@ void CalendarEventObject::ProcessData(){ } - // Get the Class value. + // Process the data from CLASS. DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "CLASS"); @@ -289,4 +289,22 @@ void CalendarEventObject::ProcessData(){ } + // Process the data from CREATED. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "CREATED"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + DateTimeCreatedTokens = DataReceived.begin()->first.substr(8); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + DateTimeCreatedData = DataReceived.begin()->second; + + } + }