Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

SerializationInfo Class Reference

Represents arbitrary types during serialization.

#include <cxxtools/serializationinfo.h>

List of all members.

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)
SerializationInfoparent ()
const SerializationInfoparent () 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.
SerializationInfoaddReference (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>
toValue () const
 Deserialization of flat data-types.
template<typename T>
void toValue (T &value) const
 Deserialization of flat data-types.
const cxxtools::StringtoString () const
 Deserialization of flat member data-types.
template<typename T>
SerializationInfoaddValue (const std::string &name, const T &value)
 Serialization of flat member data-types.
SerializationInfoaddMember (const std::string &name)
 Serialization of member data.
const SerializationInfogetMember (const std::string &name) const
 Deserialization of member data.
template<typename 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 SerializationInfofindMember (const std::string &name) const
 Find member data by name.
SerializationInfofindMember (const std::string &name)
 Find member data by name.
size_t memberCount () const
Iterator begin ()
Iterator end ()
ConstIterator begin () const
ConstIterator end () const
SerializationInfooperator= (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>
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


Member Function Documentation

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.

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6