FairRoot
|
#include <FairXMLNode.h>
Public Member Functions | |
FairXMLNode (const FairXMLNode &other) | |
FairXMLNode (TString name="", TString value="") | |
FairXMLNode & | operator= (const FairXMLNode &other) |
void | Copy (TXMLNode *node) |
void | SetValue (TString value) |
void | AddChild (FairXMLNode *node) |
void | AddAttrib (FairXMLAttrib *attrib) |
Int_t | GetNChildren () const |
Int_t | GetNAttributes () const |
Int_t | GetNChildren (TString name) const |
TString | GetValue () const |
FairXMLAttrib * | GetAttrib (TString name) const |
FairXMLAttrib * | GetAttrib (Int_t index) const |
FairXMLNode * | GetChild (TString name, Int_t count=0) const |
FairXMLNode * | GetChild (Int_t index) const |
virtual | ~FairXMLNode () |
ClassDef (FairXMLNode, 1) | |
class for representing XML node
Definition at line 60 of file FairXMLNode.h.
FairXMLNode::FairXMLNode | ( | const FairXMLNode & | other | ) |
FairXMLNode::FairXMLNode | ( | TString | name = "" , |
TString | value = "" |
||
) |
default constructor
name | name of node |
value | value of node |
Definition at line 19 of file FairXMLNode.cxx.
|
virtual |
Definition at line 130 of file FairXMLNode.cxx.
void FairXMLNode::AddAttrib | ( | FairXMLAttrib * | attrib | ) |
|
inline |
add child node to this node, node is now owned by parent node
node | node to add |
Definition at line 98 of file FairXMLNode.h.
FairXMLNode::ClassDef | ( | FairXMLNode | , |
1 | |||
) |
void FairXMLNode::Copy | ( | TXMLNode * | node | ) |
FairXMLAttrib * FairXMLNode::GetAttrib | ( | TString | name | ) | const |
FairXMLAttrib * FairXMLNode::GetAttrib | ( | Int_t | index | ) | const |
FairXMLNode * FairXMLNode::GetChild | ( | TString | name, |
Int_t | count = 0 |
||
) | const |
search for node with given name
name | name of node |
count | number of node (if more than one with given name exist) |
Definition at line 106 of file FairXMLNode.cxx.
FairXMLNode * FairXMLNode::GetChild | ( | Int_t | index | ) | const |
index | child number |
Definition at line 126 of file FairXMLNode.cxx.
|
inline |
Definition at line 113 of file FairXMLNode.h.
|
inline |
Definition at line 108 of file FairXMLNode.h.
Int_t FairXMLNode::GetNChildren | ( | TString | name | ) | const |
search for child with given name
name | name of node |
Definition at line 94 of file FairXMLNode.cxx.
|
inline |
Definition at line 124 of file FairXMLNode.h.
FairXMLNode & FairXMLNode::operator= | ( | const FairXMLNode & | other | ) |
|
inline |
value | new value |
Definition at line 92 of file FairXMLNode.h.