cxxtools::xml Namespace Reference

Classes

class  Attribute
 A class representing a single attribute of a tag from an XML document. More...
class  Characters
 A Character element (Node) of an XML document, containing the body's Text of a tag. More...
class  Comment
 A Comment element (Node) of an XML document, containing the comment's content. More...
class  DocTypeDeclaration
 A DocType element (Node) of an XML document. More...
class  EndDocument
 A Node which represents the end of the XML document. More...
class  EndElement
 An end element (Node) which represents a closing tag of an XML document. More...
class  EntityResolver
 Entity resolver class which associates entities to resolved entity values. More...
class  Namespace
 A Namespace element (Node) of an XML document. More...
class  NamespaceContext
 Manages all namespaces which are valid for a specific XML document. More...
class  Node
 The super-class for all specific Node type of an XML document. More...
class  ProcessingInstruction
 A ProcessingInstruction (PI) element (Node) of an XML document. More...
class  StartElement
 A start element (Node) which represents an opening tag of an XML document. More...
class  XmlOObject
 Wrapper object to easily print serializable objects as xml to a output stream. More...
class  XmlIObject
 Wrapper object to easily read objects as xml from a input stream. More...
class  XmlDeserializer
 Deserialize objects or object data to XML. More...
class  XmlError
 Exception that is thrown when a parse error occured. More...
class  XmlNoDocument
 Exception is thrown when trying to read a xml document but nothing was read. More...
class  XmlUnexpectedEndOfDocument
 Exception is thrown when trying to read a xml document but the underlying stream fails. More...
class  XmlFormatter
 Serialize objects or object data to XML. More...
class  XmlReader
 Reads XML as a Stream of XML Nodes. More...
class  XmlSerializer
 Serialize objects or object data to XML. More...
class  XmlWriter

Typedefs

typedef std::vector< AttributeAttributes

Functions

template<typename CharType , typename ObjectType >
std::basic_ostream< CharType > & operator<< (std::basic_ostream< CharType > &out, const XmlOObject< ObjectType > &object)
 The output operator for XmlOObject. It does the actual work.
template<typename ObjectType >
XmlOObject< ObjectType > Xml (const ObjectType &object, const std::string &name, bool beautify=false, bool useAttributes=true)
 Function, which creates a XmlOObject.
template<typename CharType , typename ObjectType >
std::basic_istream< CharType > & operator>> (std::basic_istream< CharType > &in, XmlIObject< ObjectType > object)
 The input operator for XmlIObject.
template<typename ObjectType >
XmlIObject< ObjectType > Xml (ObjectType &object)
 Creates a XmlIObject with a reference to a deserializable object.

Typedef Documentation

typedef std::vector<Attribute> cxxtools::xml::Attributes

Function Documentation

template<typename CharType , typename ObjectType >
std::basic_ostream<CharType>& cxxtools::xml::operator<< ( std::basic_ostream< CharType > &  out,
const XmlOObject< ObjectType > &  object 
)

The output operator for XmlOObject. It does the actual work.

template<typename CharType , typename ObjectType >
std::basic_istream<CharType>& cxxtools::xml::operator>> ( std::basic_istream< CharType > &  in,
XmlIObject< ObjectType >  object 
)

The input operator for XmlIObject.

It does the actual work. See XmlIObject for a usage example.

template<typename ObjectType >
XmlOObject<ObjectType> cxxtools::xml::Xml ( const ObjectType &  object,
const std::string &  name,
bool  beautify = false,
bool  useAttributes = true 
)

Function, which creates a XmlOObject.

This makes the syntactic sugar perfect. See the example at XmlOObject for its use.

template<typename ObjectType >
XmlIObject<ObjectType> cxxtools::xml::Xml ( ObjectType &  object)

Creates a XmlIObject with a reference to a deserializable object.

See XmlIObject for a usage example.