CLAM-Development  1.4.0
Public Member Functions

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 168 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 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: