Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added ValidBaseObject check and implemented virtual Clear and ProcessData objects
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 17 Jan 2016 09:50:45 +0000 (09:50 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 17 Jan 2016 09:50:45 +0000 (09:50 +0000)
source/objects/calendarobject/CalendarObject.h

index 1233fa1..96c3771 100644 (file)
@@ -1,5 +1,8 @@
 #include <string>
 #include <iostream>
+#include <fstream>
+#include <sstream>
+#include <vector>
 
 enum CalendarObjectLoadResult {
     CALENDAROBJECTLOAD_UNITTESTFAIL = -1,
@@ -17,12 +20,22 @@ enum CalendarObjectValidResult{
 
 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;
   
 };
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy