Storeable Class Reference

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

#include <storeable.h>

Inherited by AbstractController, AbstractModel, Layer, OdeAgent, OdeRobot, Primitive, Matrix, and QLearning.

List of all members.

Public Member Functions

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

Detailed Description

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


Constructor & Destructor Documentation

virtual ~Storeable (  )  [inline, virtual]

Member Function Documentation

virtual bool restore ( FILE *  f  )  [pure virtual]
bool restoreFromFile ( const char *  filename  ) 

Provided for convenience.

restores the object from the file given by filename (binary)

virtual bool store ( FILE *  f  )  const [pure virtual]
bool storeToFile ( const char *  filename  )  const

Provided for convenience.

Stores the object into a new file with the given filename (binary)


The documentation for this class was generated from the following files:
Generated on Thu Jun 28 14:48:19 2012 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3