From 454dcc0988ad8d52e9e6dcaa436edae7a382695e Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:54:03 +0000 Subject: [PATCH] Added code to process UID in CalendarTaskObject. --- source/objects/calendartask/CalendarTask.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index 86571f8..cb22857 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -165,4 +165,24 @@ void CalendarTaskObject::ProcessData(){ } + // Get the Unique ID (UID). + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "UID"); + + // Process the data from UID. + + if (DataReceived.begin() != DataReceived.end()){ + + try { + UniqueIDTokens = DataReceived.begin()->first.substr(4); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + UniqueID = DataReceived.begin()->second; + + } + } \ No newline at end of file -- 2.39.5