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

An scoped XML writer object that inserts on construction an XML atribute to the last open XML element. More...

#include <XmlScoped.hxx>

List of all members.

Public Member Functions

template<typename T >
 XmlAttribute (const std::string &name, const T &content)
 Inserts on construction an attribute to the last open XML element.

Detailed Description

An scoped XML writer object that inserts on construction an XML atribute to the last open XML element.

Since the second parameter on the constructor is templatized, you can use as content anything with the insertion operator on ostream defined.

Definition at line 226 of file XmlScoped.hxx.


Constructor & Destructor Documentation

template<typename T >
CLAM::XmlAttribute::XmlAttribute ( const std::string &  name,
const T &  content 
) [inline]

Inserts on construction an attribute to the last open XML element.

Parameters:
name The name of the attribute
content An ostream insertable object that will compose the attribute content.
Precondition:
the name is a valid qualified name
There is an XML element open without any non attribute scoped element writen yet.
Bug:
Special chars are not escaped

Definition at line 241 of file XmlScoped.hxx.


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