From 0e6ec9df1975e063c5f1cb7de1231b364570307a Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 24 Jan 2016 14:04:49 +0000 Subject: [PATCH] Added code to fix TRANSP and added code for URL in CalendarEventObject. --- .../objects/calendarevent/CalendarEvent.cpp | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) 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; + + } + } -- 2.39.5