aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/oo/ObjProperties.h
diff options
context:
space:
mode:
authorcathook <b01902109@csie.ntu.edu.tw>2014-06-01 13:56:57 +0800
committercathook <b01902109@csie.ntu.edu.tw>2014-06-01 13:56:57 +0800
commitd5052f1c296dddf51b3e83d59bf3e3c1952cb2d0 (patch)
tree16f7920c5079e0aefcf9509d2dbab59c464d42bd /meowpp/oo/ObjProperties.h
parentbd58f63900410ec4764031f2e6de2d75e91434b3 (diff)
downloadmeow-d5052f1c296dddf51b3e83d59bf3e3c1952cb2d0.tar
meow-d5052f1c296dddf51b3e83d59bf3e3c1952cb2d0.tar.gz
meow-d5052f1c296dddf51b3e83d59bf3e3c1952cb2d0.tar.bz2
meow-d5052f1c296dddf51b3e83d59bf3e3c1952cb2d0.tar.lz
meow-d5052f1c296dddf51b3e83d59bf3e3c1952cb2d0.tar.xz
meow-d5052f1c296dddf51b3e83d59bf3e3c1952cb2d0.tar.zst
meow-d5052f1c296dddf51b3e83d59bf3e3c1952cb2d0.zip
big chnage
Diffstat (limited to 'meowpp/oo/ObjProperties.h')
-rw-r--r--meowpp/oo/ObjProperties.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/meowpp/oo/ObjProperties.h b/meowpp/oo/ObjProperties.h
new file mode 100644
index 0000000..1d1ac64
--- /dev/null
+++ b/meowpp/oo/ObjProperties.h
@@ -0,0 +1,55 @@
+#ifndef oo_ObjProperties_H__
+#define oo_ObjProperties_H__
+
+#include "ObjBase.h"
+
+#include <cstdlib>
+
+namespace meow {
+
+template<size_t SID>
+
+//! 目前擺爛中
+class ObjProperties: public ObjBase {
+private:
+public:
+ ObjProperties();
+
+ ObjProperties(ObjProperties const& p);
+
+ virtual ~ObjProperties();
+
+ size_t propertySize() const;
+
+ bool propertyEmpty() const;
+
+ void propertyClear();
+
+ ObjBase const* property(std::string name) const;
+
+ ObjBase* property(std::string name);
+
+ bool propertyAdd(std::string name, ObjBase* obj, bool autoRemove);
+
+ bool propertyDel(std::string name);
+
+ ObjProperties& properties() const;
+
+ ObjProperties& properties(ObjProperties const& p);
+
+ bool write(FILE* f, bool bin, unsigned int fg) const;
+
+ bool read(FILE* f, bool bin, unsigned int fg);
+
+ ObjBase* create() const;
+
+ ObjBase* copyFrom(ObjBase const* b);
+
+ char const* ctype() const;
+
+ std::string type() const;
+};
+
+}
+
+#endif // oo_ObjProperties_H__