CLAM::XmlElement Class Reference
[Scoped XML: A quick way to write XML (write only)]

An scoped XML writer object that opens a new element on construction and closes it on destruction. More...

#include <XmlScoped.hxx>

List of all members.

Public Member Functions

 XmlElement (const std::string &name)
 Opens on construction an XML element on the current XML writting context.
 ~XmlElement ()
 Closes by destruction the element opened by the constructor.

Detailed Description

An scoped XML writer object that opens a new element on construction and closes it on destruction.

Definition at line 166 of file XmlScoped.hxx.


Constructor & Destructor Documentation

CLAM::XmlElement::XmlElement ( const std::string &  name  )  [inline]

Opens on construction an XML element on the current XML writting context.

Precondition:
the name is a valid qualified name
Bug:
Special chars are not escaped

Definition at line 175 of file XmlScoped.hxx.

CLAM::XmlElement::~XmlElement (  )  [inline]

Closes by destruction the element opened by the constructor.

Precondition:
all elements created inbetween have been created on the stack so the LIFO order is mantained.

Definition at line 187 of file XmlScoped.hxx.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3