|
libmoost
|
Anything that inherits from this type guarantees that it can be persisted to/loaded from a stream. More...
#include <persistable.h>

Public Member Functions | |
| virtual void | read (std::istream &source)=0 |
| load state from source | |
| virtual void | write (std::ostream &dest, int indent=0) const =0 |
| persist state to dest | |
| virtual void | set_default ()=0 |
| if this object can be used without deserializing (otherwise throw) | |
| virtual | ~persistable () |
| dtor | |
Anything that inherits from this type guarantees that it can be persisted to/loaded from a stream.
Definition at line 35 of file persistable.h.
| virtual moost::configurable::persistable::~persistable | ( | ) | [inline, virtual] |
dtor
Definition at line 45 of file persistable.h.
| virtual void moost::configurable::persistable::read | ( | std::istream & | source | ) | [pure virtual] |
| virtual void moost::configurable::persistable::set_default | ( | ) | [pure virtual] |
if this object can be used without deserializing (otherwise throw)
Implemented in moost::configurable::binding< bool >, moost::configurable::binder, moost::configurable::indexed_binder< T >, moost::configurable::indexed_binder< AddressConfigurable >, moost::configurable::binding< std::string >, and moost::configurable::binding< T >.
| virtual void moost::configurable::persistable::write | ( | std::ostream & | dest, |
| int | indent = 0 |
||
| ) | const [pure virtual] |