hwdet::XMLValueElement< T > Class Template Reference

Node in XML file which contains value of given type. More...

#include <XMLFileOutput.h>

Inheritance diagram for hwdet::XMLValueElement< T >:

hwdet::XMLElement

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.
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

value
 Value of the node.

Detailed Description

template<typename T>
class hwdet::XMLValueElement< T >

Node in XML file which contains value of given type.


Constructor & Destructor Documentation

template<typename T>
hwdet::XMLValueElement< T >::XMLValueElement ( const Char elem_name,
const T  elem_value 
) [inline]

Constructor with initialization.

Parameters:
elem_name Name of element.
elem_value Value assigned to the element.

template<typename T>
hwdet::XMLValueElement< T >::XMLValueElement ( const String elem_name,
const T  elem_value 
) [inline]

Constructor with initialization.

Parameters:
elem_name Name of element.
elem_value Value assigned to the element.

template<typename T>
virtual hwdet::XMLValueElement< T >::~XMLValueElement ( void   )  [inline, virtual]

Destructor.


Member Function Documentation

template<typename T>
virtual void hwdet::XMLValueElement< T >::AppendToStream ( OStream stream  )  const [inline, virtual]

Append string representing current node to the given stream.

Parameters:
stream Output stream to which current node's data will be appended.

Reimplemented from hwdet::XMLElement.

template<typename T>
T hwdet::XMLValueElement< T >::GetNodeValue ( void   )  const [inline]

Get value assigned to the current node.

Returns:
Value assigned to the node.

template<typename T>
String hwdet::XMLValueElement< T >::GetNodeValueString ( void   )  const [inline]

Get string representign value of current node.

Returns:
String representign value of current node.

template<typename T>
void hwdet::XMLValueElement< T >::SetNodeValue ( new_value  )  [inline]

Set value of current node.

Parameters:
new_value New value which will be assigned to the node.


Field Documentation

template<typename T>
T hwdet::XMLValueElement< T >::value [protected]

Value of the node.


The documentation for this class was generated from the following file:
Generated on Tue Dec 19 17:43:53 2006 for Detector for Windows by  doxygen 1.4.7