#include <XMLLogPrinter.h>
Public Member Functions | |
XMLNode (const std::tstring &name) | |
Constructor. Creates a XMLNode with provided name. | |
XMLNode & | AddSubNode (const std::tstring &name) |
Adds a new XMLNode with provided name as a sub node of this node, and returns a reference to it. | |
void | AddAttribute (const std::tstring &name, const std::tstring &value) |
Adds a new attribute to this node. | |
void | PrintOn (std::tostringstream &stream, unsigned int indentLevel=0) |
Prints this node in XML format. | |
Private Attributes | |
std::tstring | m_name |
Name of the node. | |
std::vector< XMLNode > | m_subNodes |
Vector of child XML nodes. | |
std::vector< std::pair < std::tstring, std::tstring > > | m_attributes |
Vector of attributes. Each pair contains the name and the value of the attribute. |
Definition at line 37 of file XMLLogPrinter.h.
void PrintOn | ( | std::tostringstream & | stream, | |
unsigned int | indentLevel = 0 | |||
) | [inline] |
Prints this node in XML format.
stream | Stream on which the node should be printed. | |
indentLevel | Indicates how much should the output be indented. Each increment of this parameter adds four spaces before each line of the output. |
Definition at line 170 of file XMLLogPrinter.h.
References XMLNode::m_attributes, XMLNode::m_name, and XMLNode::m_subNodes.
Referenced by XMLLogPrinter::DoFormatMessage().