Warning: include(php/utility.php): Failed to open stream: No such file or directory in /home/argos/argos3/doc/api/embedded/a00172.php on line 2

Warning: include(): Failed opening 'php/utility.php' for inclusion (include_path='.:/usr/lib64/php') in /home/argos/argos3/doc/api/embedded/a00172.php on line 2
The ARGoS Website

argos::CMemento Class Referenceabstract

The interface inherited by all classes whose state must be saved and restored. More...

#include <memento.h>

Public Member Functions

virtual ~CMemento ()
 Class destructor. More...
 
virtual void SaveState (CByteArray &c_buffer)=0
 Saves the state of the object to the given buffer. More...
 
virtual void LoadState (CByteArray &c_buffer)=0
 Restores the state of the object from the given buffer. More...
 

Detailed Description

The interface inherited by all classes whose state must be saved and restored.

Definition at line 27 of file memento.h.

Constructor & Destructor Documentation

virtual argos::CMemento::~CMemento ( )
inlinevirtual

Class destructor.

Definition at line 34 of file memento.h.

Member Function Documentation

virtual void argos::CMemento::LoadState ( CByteArray c_buffer)
pure virtual

Restores the state of the object from the given buffer.

The read data is removed from the buffer.

Parameters
c_bufferthe source buffer
virtual void argos::CMemento::SaveState ( CByteArray c_buffer)
pure virtual

Saves the state of the object to the given buffer.

Data is added to the buffer.

Parameters
c_bufferthe target buffer