Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::XMLNode Class Reference

#include <XMLNode.h>

Inheritance diagram for Hal::XMLNode:

Public Member Functions

 XMLNode (const XMLNode &other)
 
 XMLNode (TString name="", TString value="")
 
XMLNodeoperator= (const XMLNode &other)
 
void Copy (TXMLNode *node)
 
void SetValue (TString value)
 
void AddChild (XMLNode *node)
 
void AddAttrib (XMLAttrib *attrib)
 
Int_t GetNChildren () const
 
Int_t GetNAttributes () const
 
Int_t GetNChildren (TString name) const
 
TString GetValue () const
 
XMLAttribGetAttrib (TString name) const
 
XMLAttribGetAttrib (Int_t index) const
 
XMLNodeGetChild (TString name, Int_t count=0) const
 
XMLNodeGetChild (Int_t index) const
 
 ClassDef (XMLNode, 1)
 

Detailed Description

class for representing XML node

Definition at line 57 of file XMLNode.h.

Constructor & Destructor Documentation

◆ XMLNode() [1/2]

Hal::XMLNode::XMLNode ( const XMLNode & other)

copy constructor

Parameters
other

Definition at line 24 of file XMLNode.cxx.

◆ XMLNode() [2/2]

Hal::XMLNode::XMLNode ( TString name = "",
TString value = "" )

default constructor

Parameters
namename of node
valuevalue of node

Definition at line 19 of file XMLNode.cxx.

◆ ~XMLNode()

Hal::XMLNode::~XMLNode ( )
virtual

Definition at line 110 of file XMLNode.cxx.

Member Function Documentation

◆ AddAttrib()

void Hal::XMLNode::AddAttrib ( XMLAttrib * attrib)

add attribute to this class

Parameters
attrib

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
nodenode to add

Definition at line 94 of file XMLNode.h.

◆ Copy()

void Hal::XMLNode::Copy ( TXMLNode * node)

copy data for node to this

Parameters
node

Definition at line 48 of file XMLNode.cxx.

◆ GetAttrib() [1/2]

XMLAttrib * Hal::XMLNode::GetAttrib ( Int_t index) const
Parameters
indexindex of atrribute
Returns

Definition at line 108 of file XMLNode.cxx.

◆ GetAttrib() [2/2]

XMLAttrib * Hal::XMLNode::GetAttrib ( TString name) const
Parameters
namename of atribute
Returns

Definition at line 104 of file XMLNode.cxx.

◆ GetChild() [1/2]

XMLNode * Hal::XMLNode::GetChild ( Int_t index) const
Parameters
indexchild number
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
namename of node
countnumber 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
namename of node
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=()

XMLNode & Hal::XMLNode::operator= ( const XMLNode & other)

assignement operator

Parameters
node
Returns

Definition at line 33 of file XMLNode.cxx.

◆ SetValue()

void Hal::XMLNode::SetValue ( TString value)
inline
Parameters
valuenew value

Definition at line 88 of file XMLNode.h.


The documentation for this class was generated from the following files: