From 349fd1f5fe8f3d4806372fb81baf0e32a93e23d8 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 12:35:35 +0000 Subject: [PATCH] Added code to process SUMMARY in CalendarTaskObject. --- source/objects/calendartask/CalendarTask.cpp | 50 ++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index 3fa4a3d..04bb17c 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -651,4 +651,54 @@ void CalendarTaskObject::ProcessData(){ } + // Process the data from SUMMARY. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "SUMMARY"); + + if (DataReceived.begin() != DataReceived.end()){ + + bool TokenData = false; + string PropertyTokens; + + PropertyNameData = (string*)&DataReceived.begin()->first; + + PropertyData = SplitValues(*PropertyNameData); + + for(map::iterator iter = PropertyData.begin(); + iter != PropertyData.end(); iter++){ + + if (iter->first == "ALTREP"){ + + SummaryDataAltRep = iter->second; + + } else if (iter->first == "LANGUAGE"){ + + SummaryDataLanguage = iter->second; + + } else { + + if (TokenData == false){ + TokenData = true; + } else { + PropertyTokens += ";"; + } + + PropertyTokens += iter->first; + PropertyTokens += "="; + PropertyTokens += iter->second; + + } + + } + + if (PropertyTokens.size() > 0){ + + SummaryDataTokens = PropertyTokens; + + } + + SummaryData = DataReceived.begin()->second; + + } + } \ No newline at end of file -- 2.39.5