cxxtools::Settings Class Reference

#include <cxxtools/settings.h>

Inheritance diagram for cxxtools::Settings:
cxxtools::SerializationInfo

Public Member Functions

 Settings ()
void load (std::basic_istream< cxxtools::Char > &is)
void save (std::basic_ostream< cxxtools::Char > &os) const
template<typename T >
const bool getObject (T &type, const std::string &name) const
template<typename T >
const void setObject (const T &type, const std::string &name)
- Public Member Functions inherited from cxxtools::SerializationInfo
 SerializationInfo ()
 SerializationInfo (const SerializationInfo &si)
 ~SerializationInfo ()
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 setValue (const String &value)
 Serialization of flat data-types.
void setValue (const std::string &value)
void setValue (const char *value)
void setValue (Char value)
void setValue (wchar_t value)
void setValue (bool value)
void setValue (char value)
void setValue (unsigned char value)
void setValue (short value)
void setValue (unsigned short value)
void setValue (int value)
void setValue (unsigned int value)
void setValue (long value)
void setValue (unsigned long value)
void setValue (float value)
void setValue (double value)
void setValue (long double value)
void setNull ()
void getValue (String &value) const
 Deserialization of flat data-types.
void getValue (std::string &value) const
void getValue (Char &value) const
void getValue (wchar_t &value) const
void getValue (bool &value) const
void getValue (char &value) const
void getValue (signed char &value) const
void getValue (unsigned char &value) const
void getValue (short &value) const
void getValue (unsigned short &value) const
void getValue (int &value) const
void getValue (unsigned int &value) const
void getValue (long &value) const
void getValue (unsigned long &value) const
void getValue (float &value) const
void getValue (double &value) const
void getValue (long double &value) const
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.
const SerializationInfogetMember (unsigned idx) const
 Deserialization of member data.
template<typename T >
bool getMember (const std::string &name, T &value) const
 Deserialization of member data.
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 ()
void swap (SerializationInfo &si)
bool isNull () const
bool isString () const
bool isString8 () const
bool isChar () const
bool isBool () const
bool isInt () const
bool isUInt () const
bool isFloat () const
void dump (std::ostream &out, const std::string &praefix=std::string()) const

Additional Inherited Members

- Public Types inherited from cxxtools::SerializationInfo
enum  Category { Void = 0, Value = 1, Object = 2, Array = 6 }
typedef long int_type
typedef unsigned long unsigned_type
- Protected Member Functions inherited from cxxtools::SerializationInfo
void setParent (SerializationInfo &si)

Constructor & Destructor Documentation

cxxtools::Settings::Settings ( )

Member Function Documentation

template<typename T >
const bool cxxtools::Settings::getObject ( T &  type,
const std::string &  name 
) const
inline
void cxxtools::Settings::load ( std::basic_istream< cxxtools::Char > &  is)
void cxxtools::Settings::save ( std::basic_ostream< cxxtools::Char > &  os) const
template<typename T >
const void cxxtools::Settings::setObject ( const T &  type,
const std::string &  name 
)
inline

The documentation for this class was generated from the following file: