28#ifndef _util_state_state_h
29#define _util_state_state_h
35#include <util/class/class.h>
46class SavableState:
public DescribedClass {
49 SavableState(
const SavableState&);
53 SavableState& operator=(
const SavableState&);
55 virtual ~SavableState();
102 const char *keyword);
103 static SavableState* dir_restore_state(
StateIn& si,
104 const char *objectname,
105 const char *keyword = 0);
virtual void save_vbase_state(StateOut &)
Save the virtual bases for the object.
SavableState(StateIn &)
Each derived class StateIn CTOR handles the restore corresponding to calling save_object_state,...
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 * key_restore_state(StateIn &si, const char *keyword)
Like restore_state, but keyword is used to override values while restoring.
static SavableState * restore_state(StateIn &si)
Restores objects saved with save_state.
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 ...
void save_state(StateOut &)
Save the state of the object as specified by the StateOut object.
Restores objects that derive from SavableState.
Definition statein.h:70
Serializes objects that derive from SavableState.
Definition stateout.h:61
Convert data from other formats.
Definition translate.h:188
Convert data to other formats.
Definition translate.h:154