#include <XMLFileOutput.h>
Inheritance diagram for hwdet::XMLValueElement< T >:
Public Member Functions | |
XMLValueElement (const Char *elem_name, const T elem_value) | |
Constructor with initialization. | |
XMLValueElement (const String &elem_name, const T elem_value) | |
Constructor with initialization. | |
virtual | ~XMLValueElement (void) |
Destructor. | |
T | GetNodeValue (void) const |
Get value assigned to the current node. | |
void | SetNodeValue (T new_value) |
String | GetNodeValueString (void) const |
Get string representign value of current node. | |
virtual void | AppendToStream (OStream &stream) const |
Append string representing current node to the given stream. | |
Protected Attributes | |
T | value |
Value of the node. |
hwdet::XMLValueElement< T >::XMLValueElement | ( | const Char * | elem_name, | |
const T | elem_value | |||
) | [inline] |
Constructor with initialization.
elem_name | Name of element. | |
elem_value | Value assigned to the element. |
hwdet::XMLValueElement< T >::XMLValueElement | ( | const String & | elem_name, | |
const T | elem_value | |||
) | [inline] |
Constructor with initialization.
elem_name | Name of element. | |
elem_value | Value assigned to the element. |
virtual hwdet::XMLValueElement< T >::~XMLValueElement | ( | void | ) | [inline, virtual] |
Destructor.
virtual void hwdet::XMLValueElement< T >::AppendToStream | ( | OStream & | stream | ) | const [inline, virtual] |
Append string representing current node to the given stream.
stream | Output stream to which current node's data will be appended. |
Reimplemented from hwdet::XMLElement.
T hwdet::XMLValueElement< T >::GetNodeValue | ( | void | ) | const [inline] |
Get value assigned to the current node.
String hwdet::XMLValueElement< T >::GetNodeValueString | ( | void | ) | const [inline] |
Get string representign value of current node.
void hwdet::XMLValueElement< T >::SetNodeValue | ( | T | new_value | ) | [inline] |
Set value of current node.
new_value | New value which will be assigned to the node. |
T hwdet::XMLValueElement< T >::value [protected] |
Value of the node.