ot_lib::xmlTag< X > Class Template Reference

XML tag class. More...

#include <ot_lib.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 ot_lib::xmlTag< X >

XML tag class.

Constructor & Destructor Documentation

template<class X>
ot_lib::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

template<class X>
ot_lib::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

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

Destructor.


Member Function Documentation

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

Write value into tag

Parameters:
v The tag value


Member Data Documentation

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

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

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

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


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