1 #ifndef oo_ObjProperties_H__
2 #define oo_ObjProperties_H__
40 bool write(FILE* f,
bool bin,
unsigned int fg)
const;
42 bool read(FILE* f,
bool bin,
unsigned int fg);
48 char const*
ctype()
const;
50 std::string
type()
const;
55 #endif // oo_ObjProperties_H__
ObjBase * create() const
回傳一個new出來的物件, 預設implement為直接回傳 NULL
ObjProperties & properties() const
char const * ctype() const
用C-style string回傳這個class的type name
bool propertyDel(std::string name)
一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能
bool propertyAdd(std::string name, ObjBase *obj, bool autoRemove)
bool read(FILE *f, bool bin, unsigned int fg)
將物件從檔案讀出, 預設implement為直接回傳 false
size_t propertySize() const
std::string type() const
用std::string回傳這個class的type name
ObjBase * copyFrom(ObjBase const *b)
複製, 預設使用operator=
bool write(FILE *f, bool bin, unsigned int fg) const
將物件寫入檔案, 預設implement為直接回傳 false
bool propertyEmpty() const
ObjBase const * property(std::string name) const