Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Storeable Class Referenceabstract

Interface for objects, that can be stored and restored to/from a file stream (binary). More...

#include <storeable.h>

Inheritance diagram for Storeable:

Public Member Functions

virtual ~Storeable ()
 
virtual bool store (FILE *f) const =0
 stores the object to the given file stream (ASCII preferred). More...
 
virtual bool restore (FILE *f)=0
 loads the object from the given file stream (ASCII preferred). More...
 
bool storeToFile (const char *filename) const
 Provided for convenience. More...
 
bool restoreFromFile (const char *filename)
 Provided for convenience. More...
 

Detailed Description

Interface for objects, that can be stored and restored to/from a file stream (binary).

Constructor & Destructor Documentation

virtual ~Storeable ( )
inlinevirtual

Member Function Documentation

bool restoreFromFile ( const char *  filename)

Provided for convenience.

restores the object from the file given by filename

bool storeToFile ( const char *  filename) const

Provided for convenience.

Stores the object into a new file with the given filename


The documentation for this class was generated from the following files: