#include <string>
#include <iostream>
+#include <fstream>
+#include <sstream>
+#include <vector>
enum CalendarObjectLoadResult {
CALENDAROBJECTLOAD_UNITTESTFAIL = -1,
class CalendarObject{
- CalendarObjectLoadResult LoadFile();
- CalendarObjectLoadResult LoadString();
-
- // Setup virtual subroutines for use by objects
- // inheriting from CalendarObject later on.
-
- virtual CalendarObjectValidResult ValidObject() {};
+ public:
+ CalendarObjectLoadResult LoadFile(std::string LoadFilename);
+ CalendarObjectLoadResult LoadString(std::string *LoadStringData);
+ CalendarObjectValidResult ValidBaseObject();
+
+ // Setup virtual subroutines for use by objects
+ // inheriting from CalendarObject later on.
+
+ virtual CalendarObjectValidResult ValidObject() { return CALENDAROBJECTVALID_OK; };
+ virtual void Clear() {};
+ virtual void ProcessData() {};
+
+ protected:
+
+ private:
+ std::vector<std::string> ObjectName;
+ std::vector<std::string> ObjectData;
};