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