|
Public Types |
| enum | {
typesafe,
readable,
binary,
compact,
automatic
} |
Public Methods |
| | ISerial (int mode=automatic) |
| | Constructor.
|
| virtual | ~ISerial () |
| void | init () |
| | operator const void * () const |
| | Returns a null value if an error has occured, or a non-null value if deserialization has succeeded.
|
| Status | stat () |
| | Returns an error description if some aspect of serialization has failed.
|
| void | set_error (const string &s) |
| | Indicates that an aspect of serialization has failed and sets the error description.
|
| template<class T> ISerial & | operator>> (T &t) |
| | Deserializes a T.
|
| template<class T> ISerial & | insert_into (T &t) |
| | Deserializes all remaining elements in the stream, inserting them into into t.
|
| template<class T> ISerial & | push_back_into (T &t) |
| | Deserializes all remaining elements in the stream, appending them into into t.
|
Protected Methods |
| | ISerial (const ISerial &) |
| ISerial & | operator= (const ISerial &) |
| virtual int | peek ()=0 |
| virtual int | get ()=0 |
| virtual bool | get (char *ch, unsigned int len)=0 |
| template<typename T> void | default_unfreeze (ptr< T > &t) |
| template<typename T> void | default_unfreeze (T &t) |
| void | default_unfreeze (string &s) |
| void | default_unfreeze (dynbuf &s) |
| template<typename T, typename U> void | default_unfreeze (pair< T, U > &p) |
| template<typename Container, typename Data> void | default_unfreeze_container (Container &c) |
| template<typename T> void | default_unfreeze (vector< T > &t) |
| template<typename T, typename U> void | default_unfreeze (map< T, U > &t) |
| template<typename T> void | default_unfreeze (set< T > &t) |
| template<typename T> void | read_compact_signed (T &out) |
| template<typename T> void | read_compact_unsigned (T &out) |
| ISerial & | check_type (const char *type) |
| ISerial & | check_type (const char *type, unsigned int &actual_length) |
| string | read_string (unsigned int length) |
| template<class T> T | read_scalar (unsigned int length) |
Protected Attributes |
| Status | st |
| int | mode |
Static Protected Attributes |
| const int | eof = -1 |