|
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 |