aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/oo/ObjBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp/oo/ObjBase.h')
-rw-r--r--meowpp/oo/ObjBase.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/meowpp/oo/ObjBase.h b/meowpp/oo/ObjBase.h
index 2c8cb70..3aa99d7 100644
--- a/meowpp/oo/ObjBase.h
+++ b/meowpp/oo/ObjBase.h
@@ -1,6 +1,8 @@
#ifndef oo_ObjBase_H__
#define oo_ObjBase_H__
+#include <cstdio>
+
#include <typeinfo>
#include <string>
@@ -11,7 +13,11 @@ namespace meow{
public:
virtual ~ObjBase(){ }
//
- virtual ObjBase* create() const = 0;
+ virtual bool read (FILE* f, bool bin, unsigned int fg){ return false; }
+ virtual bool write(FILE* f, bool bin, unsigned int fg){ return false; }
+ //
+ virtual ObjBase* create() const{ return NULL; }
+ //
virtual char const* ctype() const{
static char const* ptr = typeid(*this).name();
return ptr;