S11n< T > Class Template Reference

#include <S11n.h>

List of all members.

Public Member Functions

template<>
int toString (const bool &value, String &str)
template<>
int fromString (const String &str, bool &value)
template<>
int toXml (const bool &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, bool &value)
template<>
int toString (const char &value, String &str)
template<>
int fromString (const String &str, char &value)
template<>
int toXml (const char &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, char &value)
template<>
int toString (const double &value, String &str)
template<>
int fromString (const String &str, double &value)
template<>
int toXml (const double &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, double &value)
template<>
int toString (const int &value, String &str)
template<>
int fromString (const String &str, int &value)
template<>
int toXml (const int &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, int &value)
template<>
int toString (const ObjectPtr &value, String &str)
template<>
int fromString (const String &str, ObjectPtr &value)
template<>
int toXml (const ObjectPtr &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, ObjectPtr &value)
template<>
int toString (const VoidPtr &value, String &str)
template<>
int fromString (const String &str, VoidPtr &value)
template<>
int toXml (const VoidPtr &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, VoidPtr &value)
template<>
int toString (const String &value, String &str)
template<>
int fromString (const String &str, String &value)
template<>
int toXml (const String &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, String &value)
template<>
int toString (const unsigned int &value, String &str)
template<>
int fromString (const String &str, unsigned int &value)
template<>
int toXml (const unsigned int &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, unsigned int &value)
template<>
int toString (const bool &value, String &str)
template<>
int fromString (const String &str, bool &value)
template<>
int toXml (const bool &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, bool &value)
template<>
int toString (const char &value, String &str)
template<>
int fromString (const String &str, char &value)
template<>
int toXml (const char &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, char &value)
template<>
int toString (const double &value, String &str)
template<>
int fromString (const String &str, double &value)
template<>
int toXml (const double &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, double &value)
template<>
int toString (const int &value, String &str)
template<>
int fromString (const String &str, int &value)
template<>
int toXml (const int &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, int &value)
template<>
int toString (const ObjectPtr &value, String &str)
template<>
int fromString (const String &str, ObjectPtr &value)
template<>
int toXml (const ObjectPtr &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, ObjectPtr &value)
template<>
int toString (const VoidPtr &value, String &str)
template<>
int fromString (const String &str, VoidPtr &value)
template<>
int toXml (const VoidPtr &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, VoidPtr &value)
template<>
int toString (const String &value, String &str)
template<>
int fromString (const String &str, String &value)
template<>
int toXml (const String &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, String &value)
template<>
int toString (const unsigned int &value, String &str)
template<>
int fromString (const String &str, unsigned int &value)
template<>
int toXml (const unsigned int &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, unsigned int &value)
template<>
int toString (const InetdItem &value, String &str)
template<>
int fromString (const String &str, InetdItem &value)
template<>
int toXml (const InetdItem &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, InetdItem &value)
template<>
int toString (const InetdItem &value, String &str)
template<>
int fromString (const String &str, InetdItem &value)
template<>
int toXml (const InetdItem &value, XmlElement *element)
template<>
int fromXml (const XmlElement *element, InetdItem &value)

Static Public Member Functions

static int toString (const T &value, String &str)
static int fromString (const String &str, T &value)
static int toXml (const T &value, XmlElement *element)
static int fromXml (const XmlElement *element, T &value)

Static Private Member Functions

static int toXmlAttrValue (const T &value, XmlElement *element)
static int fromXmlAttrValue (const XmlElement *element, T &value)


Detailed Description

template<class T>
class S11n< T >

Definition at line 17 of file S11n.h.


Member Function Documentation

template<class T>
static int S11n< T >::toString ( const T &  value,
String str 
) [static]

Referenced by S11n< T >::toXmlAttrValue().

template<class T>
static int S11n< T >::fromString ( const String str,
T &  value 
) [static]

Referenced by S11n< T >::fromXmlAttrValue().

template<class T>
static int S11n< T >::toXml ( const T &  value,
XmlElement element 
) [static]

template<class T>
static int S11n< T >::fromXml ( const XmlElement element,
T &  value 
) [static]

template<class T>
int S11n< T >::toXmlAttrValue ( const T &  value,
XmlElement element 
) [static, private]

Definition at line 40 of file S11n.h.

References CHECK_POINTER, ERROR_BACKTRACE(), FAILED(), OK, XmlElement::removeChildren(), XmlElement::setAttribute(), S11n< T >::toString(), and XML_ATTR_VALUE.

Referenced by S11n< T >::toXml().

template<class T>
int S11n< T >::fromXmlAttrValue ( const XmlElement element,
T &  value 
) [static, private]

Definition at line 60 of file S11n.h.

References XmlElement::attribute(), CHECK_POINTER, ERROR_BACKTRACE(), FAILED(), S11n< T >::fromString(), OK, and XML_ATTR_VALUE.

Referenced by S11n< T >::fromXml().

template<>
int S11n< bool >::toString ( const bool value,
String str 
)

template<>
int S11n< bool >::fromString ( const String str,
bool value 
)

template<>
int S11n< bool >::toXml ( const bool value,
XmlElement element 
)

template<>
int S11n< bool >::fromXml ( const XmlElement element,
bool value 
)

template<>
int S11n< char >::toString ( const char &  value,
String str 
)

template<>
int S11n< char >::fromString ( const String str,
char &  value 
)

template<>
int S11n< char >::toXml ( const char &  value,
XmlElement element 
)

template<>
int S11n< char >::fromXml ( const XmlElement element,
char &  value 
)

template<>
int S11n< double >::toString ( const double &  value,
String str 
)

template<>
int S11n< double >::fromString ( const String str,
double &  value 
)

template<>
int S11n< double >::toXml ( const double &  value,
XmlElement element 
)

template<>
int S11n< double >::fromXml ( const XmlElement element,
double &  value 
)

template<>
int S11n< int >::toString ( const int &  value,
String str 
)

template<>
int S11n< int >::fromString ( const String str,
int &  value 
)

template<>
int S11n< int >::toXml ( const int &  value,
XmlElement element 
)

template<>
int S11n< int >::fromXml ( const XmlElement element,
int &  value 
)

template<>
int S11n< ObjectPtr >::toString ( const ObjectPtr value,
String str 
)

template<>
int S11n< ObjectPtr >::fromString ( const String str,
ObjectPtr value 
)

template<>
int S11n< ObjectPtr >::toXml ( const ObjectPtr value,
XmlElement element 
)

template<>
int S11n< ObjectPtr >::fromXml ( const XmlElement element,
ObjectPtr value 
)

template<>
int S11n< VoidPtr >::toString ( const VoidPtr value,
String str 
)

template<>
int S11n< VoidPtr >::fromString ( const String str,
VoidPtr value 
)

template<>
int S11n< VoidPtr >::toXml ( const VoidPtr value,
XmlElement element 
)

template<>
int S11n< VoidPtr >::fromXml ( const XmlElement element,
VoidPtr value 
)

template<>
int S11n< String >::toString ( const String value,
String str 
)

template<>
int S11n< String >::fromString ( const String str,
String value 
)

template<>
int S11n< String >::toXml ( const String value,
XmlElement element 
)

template<>
int S11n< String >::fromXml ( const XmlElement element,
String value 
)

template<>
int S11n< unsigned int >::toString ( const unsigned int &  value,
String str 
)

template<>
int S11n< unsigned int >::fromString ( const String str,
unsigned int &  value 
)

template<>
int S11n< unsigned int >::toXml ( const unsigned int &  value,
XmlElement element 
)

template<>
int S11n< unsigned int >::fromXml ( const XmlElement element,
unsigned int &  value 
)

template<>
int S11n< bool >::toString ( const bool value,
String str 
)

Definition at line 12 of file S11nBool.cpp.

References OK, and String::setBool().

template<>
int S11n< bool >::fromString ( const String str,
bool value 
)

Definition at line 19 of file S11nBool.cpp.

References String::isTrue(), and OK.

template<>
int S11n< bool >::toXml ( const bool value,
XmlElement element 
)

Definition at line 26 of file S11nBool.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and S11n< T >::toXmlAttrValue().

template<>
int S11n< bool >::fromXml ( const XmlElement element,
bool value 
)

Definition at line 36 of file S11nBool.cpp.

References ERROR_BACKTRACE(), FAILED(), S11n< T >::fromXmlAttrValue(), and OK.

template<>
int S11n< char >::toString ( const char &  value,
String str 
)

Definition at line 10 of file S11nChar.cpp.

References OK.

template<>
int S11n< char >::fromString ( const String str,
char &  value 
)

Definition at line 18 of file S11nChar.cpp.

References OK.

template<>
int S11n< char >::toXml ( const char &  value,
XmlElement element 
)

Definition at line 25 of file S11nChar.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and S11n< T >::toXmlAttrValue().

template<>
int S11n< char >::fromXml ( const XmlElement element,
char &  value 
)

Definition at line 35 of file S11nChar.cpp.

References ERROR_BACKTRACE(), FAILED(), S11n< T >::fromXmlAttrValue(), and OK.

template<>
int S11n< double >::toString ( const double &  value,
String str 
)

Definition at line 10 of file S11nDouble.cpp.

References OK, and String::setNum().

template<>
int S11n< double >::fromString ( const String str,
double &  value 
)

Definition at line 17 of file S11nDouble.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and String::toDouble().

template<>
int S11n< double >::toXml ( const double &  value,
XmlElement element 
)

Definition at line 28 of file S11nDouble.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and S11n< T >::toXmlAttrValue().

template<>
int S11n< double >::fromXml ( const XmlElement element,
double &  value 
)

Definition at line 38 of file S11nDouble.cpp.

References ERROR_BACKTRACE(), FAILED(), S11n< T >::fromXmlAttrValue(), and OK.

template<>
int S11n< int >::toString ( const int &  value,
String str 
)

Definition at line 10 of file S11nInt.cpp.

References OK, and String::setNum().

template<>
int S11n< int >::fromString ( const String str,
int &  value 
)

Definition at line 17 of file S11nInt.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and String::toInt().

template<>
int S11n< int >::toXml ( const int &  value,
XmlElement element 
)

Definition at line 28 of file S11nInt.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and S11n< T >::toXmlAttrValue().

template<>
int S11n< int >::fromXml ( const XmlElement element,
int &  value 
)

Definition at line 38 of file S11nInt.cpp.

References ERROR_BACKTRACE(), FAILED(), S11n< T >::fromXmlAttrValue(), and OK.

template<>
int S11n< ObjectPtr >::toString ( const ObjectPtr value,
String str 
)

Definition at line 10 of file S11nObject.cpp.

References Object::id(), OK, and String::setNum().

template<>
int S11n< ObjectPtr >::fromString ( const String str,
ObjectPtr value 
)

Definition at line 20 of file S11nObject.cpp.

References ERROR_BACKTRACE(), FAILED(), Object::get(), OK, and String::toLongLong().

template<>
int S11n< ObjectPtr >::toXml ( const ObjectPtr value,
XmlElement element 
)

Definition at line 35 of file S11nObject.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and S11n< T >::toXmlAttrValue().

template<>
int S11n< ObjectPtr >::fromXml ( const XmlElement element,
ObjectPtr value 
)

Definition at line 45 of file S11nObject.cpp.

References ERROR_BACKTRACE(), FAILED(), S11n< T >::fromXmlAttrValue(), and OK.

template<>
int S11n< VoidPtr >::toString ( const VoidPtr value,
String str 
)

Definition at line 10 of file S11nPointer.cpp.

References OK, and String::setNum().

template<>
int S11n< VoidPtr >::fromString ( const String str,
VoidPtr value 
)

Definition at line 17 of file S11nPointer.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and String::toUint().

template<>
int S11n< VoidPtr >::toXml ( const VoidPtr value,
XmlElement element 
)

Definition at line 28 of file S11nPointer.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and S11n< T >::toXmlAttrValue().

template<>
int S11n< VoidPtr >::fromXml ( const XmlElement element,
VoidPtr value 
)

Definition at line 38 of file S11nPointer.cpp.

References ERROR_BACKTRACE(), FAILED(), S11n< T >::fromXmlAttrValue(), and OK.

template<>
int S11n< String >::toString ( const String value,
String str 
)

Definition at line 10 of file S11nString.cpp.

References OK.

template<>
int S11n< String >::fromString ( const String str,
String value 
)

Definition at line 17 of file S11nString.cpp.

References OK.

template<>
int S11n< String >::toXml ( const String value,
XmlElement element 
)

Definition at line 24 of file S11nString.cpp.

References CHECK_POINTER, ERROR_BACKTRACE(), FAILED(), OK, XmlElement::removeChildren(), and XmlElement::setInnerData().

template<>
int S11n< String >::fromXml ( const XmlElement element,
String value 
)

Definition at line 40 of file S11nString.cpp.

References CHECK_POINTER, XmlElement::innerData(), and OK.

template<>
int S11n< unsigned int >::toString ( const unsigned int &  value,
String str 
)

Definition at line 10 of file S11nUint.cpp.

References OK, and String::setNum().

template<>
int S11n< unsigned int >::fromString ( const String str,
unsigned int &  value 
)

Definition at line 17 of file S11nUint.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and String::toUint().

template<>
int S11n< unsigned int >::toXml ( const unsigned int &  value,
XmlElement element 
)

Definition at line 28 of file S11nUint.cpp.

References ERROR_BACKTRACE(), FAILED(), OK, and S11n< T >::toXmlAttrValue().

template<>
int S11n< unsigned int >::fromXml ( const XmlElement element,
unsigned int &  value 
)

Definition at line 38 of file S11nUint.cpp.

References ERROR_BACKTRACE(), FAILED(), S11n< T >::fromXmlAttrValue(), and OK.

template<>
int S11n< InetdItem >::toString ( const InetdItem value,
String str 
)

template<>
int S11n< InetdItem >::fromString ( const String str,
InetdItem value 
)

template<>
int S11n< InetdItem >::toXml ( const InetdItem value,
XmlElement element 
)

template<>
int S11n< InetdItem >::fromXml ( const XmlElement element,
InetdItem value 
)

template<>
int S11n< InetdItem >::toString ( const InetdItem value,
String str 
)

Definition at line 13 of file S11nInetdItem.cpp.

References InetdItem::allow, InetdItem::deny, INETD_ITEM_DELIMITER, InetdItem::login, String::number(), OK, InetdItem::password, InetdItem::port, and InetdItem::service.

template<>
int S11n< InetdItem >::fromString ( const String str,
InetdItem value 
)

Definition at line 25 of file S11nInetdItem.cpp.

References InetdItem::allow, CSTRING(), InetdItem::deny, ERROR, ERROR_BACKTRACE(), FAILED(), INETD_ITEM_DELIMITER, InetdItem::login, MSG_CONFIG_WRONG_FORMAT, OK, InetdItem::password, InetdItem::port, InetdItem::service, and Parser::split().

template<>
int S11n< InetdItem >::toXml ( const InetdItem value,
XmlElement element 
)

Definition at line 62 of file S11nInetdItem.cpp.

References InetdItem::allow, XmlElement::appendChild(), CHECK_POINTER, InetdItem::deny, ERROR_BACKTRACE(), FAILED(), InetdItem::login, String::number(), OK, InetdItem::password, InetdItem::port, XmlElement::removeChildren(), InetdItem::service, XML_ATTR_VALUE, XML_TAG_ALLOW, XML_TAG_DENY, XML_TAG_LOGIN, XML_TAG_PASSWORD, XML_TAG_PORT, and XML_TAG_SERVICE.

template<>
int S11n< InetdItem >::fromXml ( const XmlElement element,
InetdItem value 
)

Definition at line 86 of file S11nInetdItem.cpp.

References InetdItem::allow, XmlElement::attribute(), CHECK_POINTER, XmlElement::children(), InetdItem::clear(), InetdItem::deny, String::equals(), ERROR_BACKTRACE(), FAILED(), XmlElement::innerData(), InetdItem::login, OK, InetdItem::password, InetdItem::port, InetdItem::service, XmlElement::tag(), String::toUint(), XML_ATTR_NAME, XML_TAG_ALLOW, XML_TAG_DENY, XML_TAG_LOGIN, XML_TAG_PASSWORD, XML_TAG_PORT, and XML_TAG_SERVICE.


The documentation for this class was generated from the following file:
Generated on Thu Sep 6 20:13:48 2007 for Pylon Application Platform by  doxygen 1.5.1