#include <S11n.h>
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) |
Definition at line 17 of file S11n.h.
Referenced by S11n< T >::toXmlAttrValue().
Referenced by S11n< T >::fromXmlAttrValue().
| static int S11n< T >::toXml | ( | const T & | value, | |
| XmlElement * | element | |||
| ) | [static] |
| static int S11n< T >::fromXml | ( | const XmlElement * | element, | |
| T & | value | |||
| ) | [static] |
| 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().
| 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().
| int S11n< bool >::toXml | ( | const bool & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< bool >::fromXml | ( | const XmlElement * | element, | |
| bool & | value | |||
| ) |
| int S11n< char >::toXml | ( | const char & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< char >::fromXml | ( | const XmlElement * | element, | |
| char & | value | |||
| ) |
| int S11n< double >::toXml | ( | const double & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< double >::fromXml | ( | const XmlElement * | element, | |
| double & | value | |||
| ) |
| int S11n< int >::toXml | ( | const int & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< int >::fromXml | ( | const XmlElement * | element, | |
| int & | value | |||
| ) |
| int S11n< ObjectPtr >::toXml | ( | const ObjectPtr & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< ObjectPtr >::fromXml | ( | const XmlElement * | element, | |
| ObjectPtr & | value | |||
| ) |
| int S11n< VoidPtr >::toXml | ( | const VoidPtr & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< VoidPtr >::fromXml | ( | const XmlElement * | element, | |
| VoidPtr & | value | |||
| ) |
| int S11n< String >::toXml | ( | const String & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< String >::fromXml | ( | const XmlElement * | element, | |
| String & | value | |||
| ) |
| int S11n< unsigned int >::toXml | ( | const unsigned int & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< unsigned int >::fromXml | ( | const XmlElement * | element, | |
| unsigned int & | value | |||
| ) |
| 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().
| 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.
| 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().
| 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.
Definition at line 17 of file S11nDouble.cpp.
References ERROR_BACKTRACE(), FAILED(), OK, and String::toDouble().
| 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().
| 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.
Definition at line 17 of file S11nInt.cpp.
References ERROR_BACKTRACE(), FAILED(), OK, and String::toInt().
| 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().
| 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.
Definition at line 20 of file S11nObject.cpp.
References ERROR_BACKTRACE(), FAILED(), Object::get(), OK, and String::toLongLong().
| 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().
| 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.
Definition at line 17 of file S11nPointer.cpp.
References ERROR_BACKTRACE(), FAILED(), OK, and String::toUint().
| 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().
| 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.
| 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().
| int S11n< String >::fromXml | ( | const XmlElement * | element, | |
| String & | value | |||
| ) |
Definition at line 40 of file S11nString.cpp.
References CHECK_POINTER, XmlElement::innerData(), and OK.
Definition at line 17 of file S11nUint.cpp.
References ERROR_BACKTRACE(), FAILED(), OK, and String::toUint().
| 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().
| 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.
| int S11n< InetdItem >::toXml | ( | const InetdItem & | value, | |
| XmlElement * | element | |||
| ) |
| int S11n< InetdItem >::fromXml | ( | const XmlElement * | element, | |
| InetdItem & | value | |||
| ) |
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.
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().
| 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.
| 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.
1.5.1