From: Steve Brokenshire Date: Sun, 24 Jan 2016 12:23:07 +0000 (+0000) Subject: Added code to process TRANSP in CalendarEventObject. X-Git-Tag: release-0.02~671 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=c3b9c5b8b1a387460fb07e67b6dfb824ecb2b837;p=xestiacalendar%2F.git Added code to process TRANSP in CalendarEventObject. --- diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index abc34fd..4b6f7be 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -647,4 +647,22 @@ 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(14); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + TimeTransparencyData = DataReceived.begin()->second; + + } + }