#include <expat_serializer.hpp>
Public Types | |
typedef NodeType | node_type |
typedef expat_serializer < node_type > | this_type |
Public Member Functions | |
expat_serializer () | |
virtual | ~expat_serializer () |
virtual node_type * | deserialize (std::istream &src) |
Overridden to parse src using this object's grammar rules. | |
virtual bool | serialize (const node_type &src, std::ostream &dest) |
Writes src out to dest. | |
Static Public Member Functions | |
static bool | is_valid_xml_key (const std::string &s) |
Performs a "fast" check for XML key validity on s: if the first char is alpha or underscore, the function returns true, else it returns false. |
Definition at line 46 of file expat_serializer.hpp.
typedef NodeType s11n::io::expat_serializer< NodeType >::node_type |
Reimplemented from s11n::io::data_node_serializer< NodeType >.
Definition at line 49 of file expat_serializer.hpp.
typedef expat_serializer<node_type> s11n::io::expat_serializer< NodeType >::this_type |
Definition at line 69 of file expat_serializer.hpp.
s11n::io::expat_serializer< NodeType >::expat_serializer | ( | ) | [inline] |
Definition at line 71 of file expat_serializer.hpp.
References s11n::io::data_node_serializer< NodeType >::magic_cookie(), and MAGIC_COOKIE_EXPAT_XML.
virtual s11n::io::expat_serializer< NodeType >::~expat_serializer | ( | ) | [inline, virtual] |
Definition at line 76 of file expat_serializer.hpp.
static bool s11n::io::expat_serializer< NodeType >::is_valid_xml_key | ( | const std::string & | s | ) | [inline, static] |
Performs a "fast" check for XML key validity on s: if the first char is alpha or underscore, the function returns true, else it returns false.
Definition at line 56 of file expat_serializer.hpp.
virtual node_type* s11n::io::expat_serializer< NodeType >::deserialize | ( | std::istream & | src | ) | [inline, virtual] |
Overridden to parse src using this object's grammar rules.
Reimplemented from s11n::io::data_node_serializer< NodeType >.
Definition at line 81 of file expat_serializer.hpp.
virtual bool s11n::io::expat_serializer< NodeType >::serialize | ( | const node_type & | src, | |
std::ostream & | dest | |||
) | [inline, virtual] |
Writes src out to dest.
Reimplemented from s11n::io::data_node_serializer< NodeType >.
Definition at line 90 of file expat_serializer.hpp.