28 #ifndef _util_state_state_h 29 #define _util_state_state_h 35 #include <util/class/class.h> 41 class TranslateDataIn;
42 class TranslateDataOut;
102 const char *keyword);
104 const char *objectname,
105 const char *keyword = 0);
void save_object_state(StateOut &)
This can be used for saving state when the exact type of the object is known for both the save and th...
static SavableState * restore_state(StateIn &si)
Restores objects saved with save_state.
Serializes objects that derive from SavableState.
Definition: stateout.h:61
Classes which need runtime information about themselves and their relationship to other classes can v...
Definition: class.h:244
virtual void save_data_state(StateOut &)
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR ...
static SavableState * key_restore_state(StateIn &si, const char *keyword)
Like restore_state, but keyword is used to override values while restoring.
Restores objects that derive from SavableState.
Definition: statein.h:70
void save_state(StateOut &)
Save the state of the object as specified by the StateOut object.
virtual void save_vbase_state(StateOut &)
Save the virtual bases for the object.
Base class for objects that can save/restore state.
Definition: state.h:46