#include <cxxtools/serializationinfo.h>
Public Types | |
| enum | Category { Void = 0, Value = 1, Object = 2, Array = 6, Reference = 8 } |
Public Member Functions | |
| SerializationInfo (const SerializationInfo &si) | |
| void | reserve (size_t n) |
| Category | category () const |
| void | setCategory (Category cat) |
| SerializationInfo * | parent () |
| const SerializationInfo * | parent () const |
| const std::string & | typeName () const |
| void | setTypeName (const std::string &type) |
| const std::string & | name () const |
| void | setName (const std::string &name) |
| void | setId (const std::string &id) |
| const std::string & | id () const |
| void | setReference (void *ref) |
| Serialization of weak pointers. | |
| SerializationInfo & | addReference (const std::string &name, void *ref) |
| Serialization of weak pointers. | |
| template<typename T> | |
| void | toReference (T *&type) const |
| Deserialization of weak pointers. | |
| template<typename T> | |
| void | getReference (const std::string &name, T *&type) const |
| Deserialization of weak member pointers. | |
| void * | fixupAddr () const |
| const std::type_info & | fixupInfo () const |
| template<typename T> | |
| void | setValue (const T &value) |
| Serialization of flat data-types. | |
| template<typename T> | |
| T | toValue () const |
| Deserialization of flat data-types. | |
| template<typename T> | |
| void | toValue (T &value) const |
| Deserialization of flat data-types. | |
| const cxxtools::String & | toString () const |
| Deserialization of flat member data-types. | |
| template<typename T> | |
| SerializationInfo & | addValue (const std::string &name, const T &value) |
| Serialization of flat member data-types. | |
| SerializationInfo & | addMember (const std::string &name) |
| Serialization of member data. | |
| const SerializationInfo & | getMember (const std::string &name) const |
| Deserialization of member data. | |
| template<typename T> | |
| T | getValue (const std::string &name) const |
| Deserialization of flat child value types. | |
| template<typename T> | |
| void | getValue (const std::string &name, T &value) const |
| Deserialization of flat child value types. | |
| const SerializationInfo * | findMember (const std::string &name) const |
| Find member data by name. | |
| SerializationInfo * | findMember (const std::string &name) |
| Find member data by name. | |
| size_t | memberCount () const |
| Iterator | begin () |
| Iterator | end () |
| ConstIterator | begin () const |
| ConstIterator | end () const |
| SerializationInfo & | operator= (const SerializationInfo &si) |
| void | clear () |
Protected Member Functions | |
| void | getReference (void *&type, const std::type_info &ti) const |
| void | setParent (SerializationInfo &si) |
Friends | |
| template<typename T> | |
| T | getValue (const std::string &name, SerializationInfo *si) |
| Compiler workaround. This is needed for some compilers (GCC 3.x) to allow access to method 'T getValue(const std::string& name) const' below. | |
Classes | |
| class | ConstIterator |
| class | Iterator |
| const SerializationInfo* findMember | ( | const std::string & | name | ) | const |
This method returns the data for an object with the name name. or null if it is not present.
| SerializationInfo* findMember | ( | const std::string & | name | ) |
This method returns the data for an object with the name name. or null if it is not present.