Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
Interface for objects, that can be stored and restored to/from a file stream (binary). More...
#include <storeable.h>
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... | |
Interface for objects, that can be stored and restored to/from a file stream (binary).
|
inlinevirtual |
|
pure virtual |
loads the object from the given file stream (ASCII preferred).
Implemented in Primitive, OdeRobot, Matrix, MutualInformationController, MultiLayerFFNN, AbstractControllerAdapter, DerLinUnivers, OdeAgent, use_java_controller, AbstractMultiController, UniversalController, ESN, Elman, QLearning, AbstractIAFController, Sox, MultiReinforce, PiMax, OneControllerPerChannel, SeMoX, Braitenberg, SoML, ModelWithMemoryAdapter, SineController, DerPseudoSensor, ReplayController, SplitControl, DerLinInvert, InvertMotorNStep, OneLayerFFNN, DerBigController, InvertMotorBigModel, SoxExpand, ClassicReinforce, RemoteControlled, SOM, DerController, NeuralGas, DerInf, FFNNController, BasicController, InvertNChannelController, MotorBabbler, InvertMotorSpace, Sos, Layer, and SwitchController.
bool restoreFromFile | ( | const char * | filename | ) |
Provided for convenience.
restores the object from the file given by filename
|
pure virtual |
stores the object to the given file stream (ASCII preferred).
Implemented in Primitive, OdeRobot, Matrix, MutualInformationController, MultiLayerFFNN, DerLinUnivers, AbstractControllerAdapter, OdeAgent, use_java_controller, AbstractMultiController, UniversalController, ESN, Elman, QLearning, AbstractIAFController, Sox, MultiReinforce, PiMax, OneControllerPerChannel, SeMoX, Braitenberg, SoML, ModelWithMemoryAdapter, DerPseudoSensor, ReplayController, SplitControl, DerLinInvert, InvertMotorNStep, OneLayerFFNN, SineController, DerBigController, InvertMotorBigModel, SOM, SoxExpand, ClassicReinforce, DerController, NeuralGas, RemoteControlled, DerInf, FFNNController, BasicController, InvertNChannelController, MotorBabbler, InvertMotorSpace, Sos, Layer, and SwitchController.
bool storeToFile | ( | const char * | filename | ) | const |
Provided for convenience.
Stores the object into a new file with the given filename