}
+ // Process the RELATED-TO value.
+
+ if (RelatedToData.size() > 0){
+
+ for (int RequestToDataSeek = 0; RequestToDataSeek < RelatedToData.size();
+ RequestToDataSeek++){
+
+ DataLine += "RELATED-TO";
+
+ if (RelatedToDataRelationType[RequestToDataSeek].size() > 0){
+
+ DataLine += ";RELTYPE=";
+ DataLine += RelatedToDataRelationType[RequestToDataSeek];
+
+ }
+
+ if (RelatedToDataTokens[RequestToDataSeek].size() > 0){
+
+ DataLine += ";";
+ DataLine += RelatedToDataTokens[RequestToDataSeek];
+
+ }
+
+ DataLine += ":";
+ DataLine += RelatedToData[RequestToDataSeek];
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
+ }
+
*SaveData += "END:VJOURNAL\n";
}
\ No newline at end of file
"EXDATE:20160125T120000Z\n"
"EXDATE;TZID=Europe/Truro;VALUE=DATE-TIME:20160125T130000Z\n"
"EXDATE;ZOOP=ZIPPO:20160125T133000Z\n"
+ "RELATED-TO:person.1@example.com\n"
+ "RELATED-TO;RELTYPE=PARENT:person.2@example.com\n"
+ "RELATED-TO;SCHOOL=MEETING:person.3@example.com\n"
"END:VJOURNAL\n"
"END:VCALENDAR";