s11n::io::expat_serializer< NodeType > Class Template Reference

expat_serializer is an XML-based Serializer, using libexpat to read it's data. More...

#include <expat_serializer.hpp>

Inheritance diagram for s11n::io::expat_serializer< NodeType >:
s11n::io::data_node_serializer< NodeType >

List of all members.

Public Types

typedef NodeType node_type
typedef expat_serializer
< node_type
this_type

Public Member Functions

 expat_serializer ()
virtual ~expat_serializer ()
virtual node_typedeserialize (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.

Detailed Description

template<typename NodeType>
class s11n::io::expat_serializer< NodeType >

expat_serializer is an XML-based Serializer, using libexpat to read it's data.

Definition at line 46 of file expat_serializer.hpp.


Member Typedef Documentation

template<typename NodeType >
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.

template<typename NodeType >
typedef expat_serializer<node_type> s11n::io::expat_serializer< NodeType >::this_type

Definition at line 69 of file expat_serializer.hpp.


Constructor & Destructor Documentation

template<typename NodeType >
s11n::io::expat_serializer< NodeType >::expat_serializer (  )  [inline]
template<typename NodeType >
virtual s11n::io::expat_serializer< NodeType >::~expat_serializer (  )  [inline, virtual]

Definition at line 76 of file expat_serializer.hpp.


Member Function Documentation

template<typename NodeType >
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.

template<typename NodeType >
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.

template<typename NodeType >
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.


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

Generated on Sat Mar 20 12:29:25 2010 for libs11n-1.2.10 by  doxygen 1.6.1