From: Steve Brokenshire Date: Sun, 24 Jan 2016 14:04:49 +0000 (+0000) Subject: Added code to fix TRANSP and added code for URL in CalendarEventObject. X-Git-Tag: release-0.02~667 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=0e6ec9df1975e063c5f1cb7de1231b364570307a;p=xestiacalendar%2F.git Added code to fix TRANSP and added code for URL in CalendarEventObject. --- diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index 8d985c2..df686a4 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -665,4 +665,40 @@ void CalendarEventObject::ProcessData(){ } + // Process the data from TRANSP. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "TRANSP"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + TimeTransparencyDataTokens = DataReceived.begin()->first.substr(7); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + TimeTransparencyData = DataReceived.begin()->second; + + } + + // Process the data from URL. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "URL"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + URLDataTokens = DataReceived.begin()->first.substr(4); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + URLData = DataReceived.begin()->second; + + } + }