From e623dcc4464ff0ffc10a2484eec12fbb461a354e Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 13 Jan 2016 21:44:52 +0000 Subject: [PATCH] Added initial version of CalendarObject. --- .../objects/calendarobject/CalendarObject.cpp | 9 ++++++ .../objects/calendarobject/CalendarObject.h | 28 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 source/objects/calendarobject/CalendarObject.cpp create mode 100644 source/objects/calendarobject/CalendarObject.h diff --git a/source/objects/calendarobject/CalendarObject.cpp b/source/objects/calendarobject/CalendarObject.cpp new file mode 100644 index 0000000..00f13c8 --- /dev/null +++ b/source/objects/calendarobject/CalendarObject.cpp @@ -0,0 +1,9 @@ +#include "CalendarObject.h" + +CalendarObjectLoadResult CalendarObject::LoadFile(){ + +} + +CalendarObjectLoadResult CalendarObject::LoadString(){ + +} \ No newline at end of file diff --git a/source/objects/calendarobject/CalendarObject.h b/source/objects/calendarobject/CalendarObject.h new file mode 100644 index 0000000..1233fa1 --- /dev/null +++ b/source/objects/calendarobject/CalendarObject.h @@ -0,0 +1,28 @@ +#include +#include + +enum CalendarObjectLoadResult { + CALENDAROBJECTLOAD_UNITTESTFAIL = -1, + CALENDAROBJECTLOAD_OK, + CALENDAROBJECTLOAD_MISSING, + CALENDAROBJECTLOAD_INVALIDFORMAT, + CALENDAROBJECTLOAD_CANNOTOPEN +}; + +enum CalendarObjectValidResult{ + CALENDAROBJECTVALID_UNITTESTFAIL = -1, + CALENDAROBJECTVALID_OK, + CALENDAROBJECTVALID_INVALIDFORMAT +}; + +class CalendarObject{ + + CalendarObjectLoadResult LoadFile(); + CalendarObjectLoadResult LoadString(); + + // Setup virtual subroutines for use by objects + // inheriting from CalendarObject later on. + + virtual CalendarObjectValidResult ValidObject() {}; + +}; -- 2.39.5