From a54315de01abd57cf93870f550d27c46c2971446 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 30 May 2016 09:26:51 +0100 Subject: [PATCH] Setup initial version of the SaveFile functions for the CalendarObject class. --- .../calendarobject/CalendarObject-Save.cpp | 16 ++++++++++++++++ source/objects/calendarobject/CalendarObject.h | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 source/objects/calendarobject/CalendarObject-Save.cpp diff --git a/source/objects/calendarobject/CalendarObject-Save.cpp b/source/objects/calendarobject/CalendarObject-Save.cpp new file mode 100644 index 0000000..a104384 --- /dev/null +++ b/source/objects/calendarobject/CalendarObject-Save.cpp @@ -0,0 +1,16 @@ +#include "CalendarObject.h" +#include "../../common/file.h" + +using namespace std; + +CalendarObjectSaveResult CalendarObject::SaveString(string *SaveStringData){ + + + +} + +CalendarObjectSaveResult CalendarObject::SaveFile(string SaveFilename){ + + + +} \ No newline at end of file diff --git a/source/objects/calendarobject/CalendarObject.h b/source/objects/calendarobject/CalendarObject.h index 3851ccc..7ec9f4c 100644 --- a/source/objects/calendarobject/CalendarObject.h +++ b/source/objects/calendarobject/CalendarObject.h @@ -97,6 +97,8 @@ class CalendarObject{ public: CalendarObjectLoadResult LoadFile(string LoadFilename); CalendarObjectLoadResult LoadString(string *LoadStringData); + CalendarObjectSaveResult SaveFile(string SaveFilename); + CalendarObjectSaveResult SaveString(string *SaveStringData); CalendarObjectValidResult ValidBaseObject(); void ProcessBaseData(); @@ -105,6 +107,7 @@ class CalendarObject{ virtual CalendarObjectValidResult ValidObject() { return CALENDAROBJECTVALID_OK; }; virtual void Clear() {}; + virtual void SaveObjectData() {}; // Object data. -- 2.39.5