summaryrefslogtreecommitdiff
path: root/orkbasecxx/Object.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2005-10-20 13:40:58 +0000
committerHenri Herscher <henri@oreka.org>2005-10-20 13:40:58 +0000
commit7e1d63dd9fd149e4934bf77095c8610fac786b04 (patch)
tree5fe486a1b0300c3b84fb559107a868e5cc2c95da /orkbasecxx/Object.h
parent467768fc956fc3e5a253373f26c71c681b31b6b8 (diff)
First checkin
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@2 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/Object.h')
-rw-r--r--orkbasecxx/Object.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/orkbasecxx/Object.h b/orkbasecxx/Object.h
new file mode 100644
index 0000000..ba8128e
--- /dev/null
+++ b/orkbasecxx/Object.h
@@ -0,0 +1,56 @@
+/*
+ * Oreka -- A media capture and retrieval platform
+ *
+ * Copyright (C) 2005, orecx LLC
+ *
+ * http://www.orecx.com
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License.
+ * Please refer to http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+#ifndef __OBJECT_H__
+#define __OBJECT_H__
+
+#include "OrkBase.h"
+#include "boost/shared_ptr.hpp"
+#include "xercesc/dom/DOMNode.hpp"
+
+class Serializer;
+class Object;
+
+using namespace XERCES_CPP_NAMESPACE;
+
+typedef boost::shared_ptr<Object> ObjectRef;
+
+#define OBJECT_TYPE_TAG "type"
+
+/** An Object is the equivalent of a Java Object
+*/
+class DLL_IMPORT_EXPORT Object
+{
+public:
+ virtual void Define(Serializer* s) = 0;
+ virtual void Validate() = 0;
+
+ CStdString SerializeSingleLine();
+ void DeSerializeSingleLine(CStdString& input);
+
+ void SerializeDom(XERCES_CPP_NAMESPACE::DOMDocument* doc);
+ void DeSerializeDom(DOMNode* doc);
+
+ CStdString SerializeUrl();
+ void DeSerializeUrl(CStdString& input);
+
+ virtual CStdString GetClassName() = 0;
+ virtual ObjectRef NewInstance() = 0;
+
+ virtual ObjectRef Process() = 0;
+};
+
+
+
+#endif
+