xmlTag< X > Class Template Reference

XML tag class. More...

#include <ot_xml.h>

List of all members.

Public Member Functions

 xmlTag (ostream &o, int indent, const string &t)
 xmlTag (ostream &o, int indent, const string &t, const X &v)
 ~xmlTag (void)
 Destructor.
void addValue (const X &v)

Private Attributes

ostream & out
string tagName
string indent_str
bool indent


Detailed Description

template<class X>
class xmlTag< X >

XML tag class.

Constructor & Destructor Documentation

template<class X>
xmlTag< X >::xmlTag ( ostream &  o,
int  indent,
const string &  t 
) [inline]

Tag constructor

Parameters:
o The output stream
indent Indent spaces
t the tag name

References xmlTag< X >::indent_str, xmlTag< X >::out, and xmlTag< X >::tagName.

template<class X>
xmlTag< X >::xmlTag ( ostream &  o,
int  indent,
const string &  t,
const X &  v 
) [inline]

Tag constructor with value

Parameters:
o The output stream
indent Indent spaces
t The tag name
v The tag value

References xmlTag< X >::indent_str, xmlTag< X >::out, and xmlTag< X >::tagName.

template<class X>
xmlTag< X >::~xmlTag ( void   )  [inline]


Member Function Documentation

template<class X>
void xmlTag< X >::addValue ( const X &  v  )  [inline]

Write value into tag

Parameters:
v The tag value

References xmlTag< X >::indent_str, and xmlTag< X >::out.


Member Data Documentation

template<class X>
ostream& xmlTag< X >::out [private]

template<class X>
string xmlTag< X >::tagName [private]

template<class X>
string xmlTag< X >::indent_str [private]

template<class X>
bool xmlTag< X >::indent [private]

Referenced by xmlTag< X >::~xmlTag().


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

Generated on Sun May 4 12:42:45 2008 for OT_LIB 4.1 by  doxygen 1.5.5