#include <ot_lib.h>
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 |
ot_lib::xmlTag< X >::xmlTag | ( | ostream & | o, | |
int | indent, | |||
const string & | t | |||
) | [inline] |
Tag constructor
o | The output stream | |
indent | Indent spaces | |
t | the tag name |
ot_lib::xmlTag< X >::xmlTag | ( | ostream & | o, | |
int | indent, | |||
const string & | t, | |||
const X & | v | |||
) | [inline] |
Tag constructor with value
o | The output stream | |
indent | Indent spaces | |
t | The tag name | |
v | The tag value |
ot_lib::xmlTag< X >::~xmlTag | ( | void | ) | [inline] |
Destructor.
void ot_lib::xmlTag< X >::addValue | ( | const X & | v | ) | [inline] |
Write value into tag
v | The tag value |
ostream& ot_lib::xmlTag< X >::out [private] |
string ot_lib::xmlTag< X >::tagName [private] |
string ot_lib::xmlTag< X >::indent_str [private] |
bool ot_lib::xmlTag< X >::indent [private] |