From 7fafaf0bf9653702851a3e578638da1023560c40 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 24 Jan 2016 10:54:33 +0000 Subject: [PATCH] Added code to process SEQUENCE in CalendarEventObject. --- .../objects/calendarevent/CalendarEvent.cpp | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/objects/calendarevent/CalendarEvent.cpp b/source/objects/calendarevent/CalendarEvent.cpp index 6e96575..a383279 100644 --- a/source/objects/calendarevent/CalendarEvent.cpp +++ b/source/objects/calendarevent/CalendarEvent.cpp @@ -527,4 +527,28 @@ void CalendarEventObject::ProcessData(){ } + // Process the data from SEQUENCE. + + DataReceived = ProcessTextVectors(&ObjectName, &ObjectData, false, "SEQUENCE"); + + if (DataReceived.begin() != DataReceived.end()){ + + try { + SequenceTokens = DataReceived.begin()->first.substr(9); + } + + catch(const out_of_range &oor){ + // Do nothing as there is no data. + } + + try { + SequenceData = stoi(DataReceived.begin()->second); + } + + catch(const invalid_argument &oor){ + SequenceTokens.clear(); + } + + } + } -- 2.39.5