38 virtual bool store(FILE* f)
const = 0;
42 virtual bool restore(FILE* f) = 0;
bool storeToFile(const char *filename) const
Provided for convenience.
Definition: storeable.cpp:27
Interface for objects, that can be stored and restored to/from a file stream (binary).
Definition: storeable.h:33
bool restoreFromFile(const char *filename)
Provided for convenience.
Definition: storeable.cpp:35
virtual ~Storeable()
Definition: storeable.h:35
virtual bool store(FILE *f) const =0
stores the object to the given file stream (ASCII preferred).
virtual bool restore(FILE *f)=0
loads the object from the given file stream (ASCII preferred).