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

#include <XmlScoped.hxx>

List of all members.


Detailed Description

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

Definition at line 168 of file XmlScoped.hxx.


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.

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 177 of file XmlScoped.hxx.

References CLAM::XmlWriteContext::OpenElement().

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 189 of file XmlScoped.hxx.

References CLAM::XmlWriteContext::CloseElement().


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

Generated on Tue Aug 12 22:33:50 2008 for CLAM by  doxygen 1.5.5