#include <XMLNode.h>
class for representing XML node
Definition at line 57 of file XMLNode.h.
◆ XMLNode() [1/2]
Hal::XMLNode::XMLNode |
( |
const XMLNode & | other | ) |
|
copy constructor
- Parameters
-
Definition at line 24 of file XMLNode.cxx.
◆ XMLNode() [2/2]
Hal::XMLNode::XMLNode |
( |
TString | name = "", |
|
|
TString | value = "" ) |
default constructor
- Parameters
-
name | name of node |
value | value of node |
Definition at line 19 of file XMLNode.cxx.
◆ ~XMLNode()
Hal::XMLNode::~XMLNode |
( |
| ) |
|
|
virtual |
◆ AddAttrib()
void Hal::XMLNode::AddAttrib |
( |
XMLAttrib * | attrib | ) |
|
add attribute to this class
- Parameters
-
Definition at line 75 of file XMLNode.cxx.
◆ AddChild()
void Hal::XMLNode::AddChild |
( |
XMLNode * | node | ) |
|
|
inline |
add child node to this node, node is now owned by parent node
- Parameters
-
Definition at line 94 of file XMLNode.h.
◆ Copy()
void Hal::XMLNode::Copy |
( |
TXMLNode * | node | ) |
|
copy data for node to this
- Parameters
-
Definition at line 48 of file XMLNode.cxx.
◆ GetAttrib() [1/2]
XMLAttrib * Hal::XMLNode::GetAttrib |
( |
Int_t | index | ) |
const |
◆ GetAttrib() [2/2]
XMLAttrib * Hal::XMLNode::GetAttrib |
( |
TString | name | ) |
const |
◆ GetChild() [1/2]
XMLNode * Hal::XMLNode::GetChild |
( |
Int_t | index | ) |
const |
- Parameters
-
- Returns
- child at given position
Definition at line 106 of file XMLNode.cxx.
◆ GetChild() [2/2]
XMLNode * Hal::XMLNode::GetChild |
( |
TString | name, |
|
|
Int_t | count = 0 ) const |
search for node with given name
- Parameters
-
name | name of node |
count | number of node (if more than one with given name exist) |
- Returns
- node
Definition at line 93 of file XMLNode.cxx.
◆ GetNAttributes()
Int_t Hal::XMLNode::GetNAttributes |
( |
| ) |
const |
|
inline |
- Returns
- number of attributes
Definition at line 109 of file XMLNode.h.
◆ GetNChildren() [1/2]
Int_t Hal::XMLNode::GetNChildren |
( |
| ) |
const |
|
inline |
- Returns
- number of childen nodes
Definition at line 104 of file XMLNode.h.
◆ GetNChildren() [2/2]
Int_t Hal::XMLNode::GetNChildren |
( |
TString | name | ) |
const |
search for child with given name
- Parameters
-
- Returns
- number of node with given name
Definition at line 84 of file XMLNode.cxx.
◆ GetValue()
TString Hal::XMLNode::GetValue |
( |
| ) |
const |
|
inline |
- Returns
- value of node
Definition at line 120 of file XMLNode.h.
◆ operator=()
assignement operator
- Parameters
-
- Returns
Definition at line 33 of file XMLNode.cxx.
◆ SetValue()
void Hal::XMLNode::SetValue |
( |
TString | value | ) |
|
|
inline |
The documentation for this class was generated from the following files: