BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
MpdXMLNode Class Reference

class for representing XML node More...

#include <MpdXMLNode.h>

Inheritance diagram for MpdXMLNode:
Collaboration diagram for MpdXMLNode:

Public Member Functions

 MpdXMLNode (const MpdXMLNode &other)
 copy constructor
 MpdXMLNode (TString name="", TString value="")
 default constructor
MpdXMLNode & operator= (const MpdXMLNode &other)
 assignement operator
void Copy (TXMLNode *node)
 copy data for node to this
void SetValue (TString value)
void AddChild (MpdXMLNode *node)
 add child node to this node, node is now owned by parent node
void AddAttrib (MpdXMLAttrib *attrib)
 add attribute to this class
Int_t GetNChildren () const
Int_t GetNAttributes () const
Int_t GetNChildren (TString name) const
 search for child with given name
TString GetValue () const
MpdXMLAttrib * GetAttrib (TString name) const
MpdXMLAttrib * GetAttrib (Int_t index) const
MpdXMLNode * GetChild (TString name, Int_t count=0) const
 search for node with given name
MpdXMLNode * GetChild (Int_t index) const
virtual ~MpdXMLNode ()
Public Member Functions inherited from TNamed
 TNamed ()
 TNamed (const char *name, const char *title)
 TNamed (const TNamed &named)
 TNamed (const TString &name, const TString &title)
virtual ~TNamed ()
void Clear (Option_t *option="") override
TObject * Clone (const char *newname="") const override
Int_t Compare (const TObject *obj) const override
void Copy (TObject &named) const override
virtual void FillBuffer (char *&buffer)
const char * GetName () const override
const char * GetTitle () const override
ULong_t Hash () const override
TClass * IsA () const override
Bool_t IsSortable () const override
void ls (Option_t *option="") const override
TNamed & operator= (const TNamed &rhs)
void Print (Option_t *option="") const override
virtual void SetName (const char *name)
virtual void SetNameTitle (const char *name, const char *title)
virtual void SetTitle (const char *title="")
virtual Int_t Sizeof () const
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
R__ALWAYS_INLINE Bool_t IsZombie () const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Private Attributes

TList fChildren
TList fAttrib

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Static Public Member Functions inherited from TNamed
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
Protected Member Functions inherited from TNamed
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Protected Attributes inherited from TNamed
TString fName
TString fTitle
Protected Attributes inherited from TObject
 kOnlyPrepStep

Detailed Description

Definition at line 55 of file MpdXMLNode.h.

Constructor & Destructor Documentation

◆ MpdXMLNode() [1/2]

MpdXMLNode::MpdXMLNode ( const MpdXMLNode & other)
Parameters
other

Definition at line 24 of file MpdXMLNode.cxx.

References MpdXMLNode(), fAttrib, fChildren, GetAttrib(), GetChild(), TCollection::GetEntries(), TNamed::GetName(), GetValue(), and i.

Referenced by MpdXMLNode(), AddChild(), Copy(), GetChild(), GetChild(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MpdXMLNode() [2/2]

MpdXMLNode::MpdXMLNode ( TString name = "",
TString value = "" )
Parameters
namename of node
valuevalue of node

Definition at line 17 of file MpdXMLNode.cxx.

References TNamed::TNamed(), fAttrib, and fChildren.

Here is the call graph for this function:

◆ ~MpdXMLNode()

MpdXMLNode::~MpdXMLNode ( )
virtual

Definition at line 134 of file MpdXMLNode.cxx.

Member Function Documentation

◆ AddAttrib()

void MpdXMLNode::AddAttrib ( MpdXMLAttrib * attrib)
Parameters
attrib

Definition at line 82 of file MpdXMLNode.cxx.

References fAttrib, GetAttrib(), and TNamed::GetName().

Here is the call graph for this function:

◆ AddChild()

void MpdXMLNode::AddChild ( MpdXMLNode * node)
inline
Parameters
nodenode to add

Definition at line 93 of file MpdXMLNode.h.

References MpdXMLNode(), and fChildren.

Here is the call graph for this function:

◆ Copy()

void MpdXMLNode::Copy ( TXMLNode * node)
Parameters
node

Definition at line 52 of file MpdXMLNode.cxx.

References MpdXMLNode(), TList::At(), Copy(), fAttrib, fChildren, TXMLNode::GetAttributes(), TXMLNode::GetChildren(), TCollection::GetEntries(), TXMLAttr::GetName(), TXMLNode::GetNextNode(), TXMLNode::GetNodeName(), TXMLNode::GetText(), TXMLAttr::GetValue(), TXMLNode::HasAttributes(), TXMLNode::HasChildren(), TXMLNode::HasNextNode(), i, TNamed::SetName(), and TNamed::SetTitle().

Referenced by Copy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAttrib() [1/2]

MpdXMLAttrib * MpdXMLNode::GetAttrib ( Int_t index) const
Parameters
indexindex of atrribute
Returns

Definition at line 129 of file MpdXMLNode.cxx.

References fAttrib.

◆ GetAttrib() [2/2]

MpdXMLAttrib * MpdXMLNode::GetAttrib ( TString name) const
Parameters
namename of atribute
Returns

Definition at line 119 of file MpdXMLNode.cxx.

References fAttrib.

Referenced by MpdXMLNode(), AddAttrib(), MpdXMLFile::ExportNode(), MpdEventManager::LoadXMLDetector(), MpdEventManager::LoadXMLSettings(), and operator=().

Here is the caller graph for this function:

◆ GetChild() [1/2]

MpdXMLNode * MpdXMLNode::GetChild ( Int_t index) const
Parameters
indexchild number
Returns
child at given position

Definition at line 124 of file MpdXMLNode.cxx.

References MpdXMLNode(), and fChildren.

Here is the call graph for this function:

◆ GetChild() [2/2]

MpdXMLNode * MpdXMLNode::GetChild ( TString name,
Int_t count = 0 ) const
Parameters
namename of node
countnumber of node (if more than one with given name exist)
Returns
node

Definition at line 104 of file MpdXMLNode.cxx.

References MpdXMLNode(), fChildren, GetChild(), TNamed::GetName(), and i.

Referenced by MpdXMLNode(), MpdXMLFile::ExportNode(), GetChild(), GetNChildren(), MpdEventManager::LoadXMLDetector(), MpdEventManager::LoadXMLSettings(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNAttributes()

Int_t MpdXMLNode::GetNAttributes ( ) const
inline
Returns
number of attributes

Definition at line 108 of file MpdXMLNode.h.

References fAttrib.

◆ GetNChildren() [1/2]

Int_t MpdXMLNode::GetNChildren ( ) const
inline
Returns
number of childen nodes

Definition at line 103 of file MpdXMLNode.h.

References fChildren.

Referenced by MpdXMLFile::ExportNode(), GetNChildren(), MpdEventManager::LoadXMLDetector(), and MpdEventManager::LoadXMLSettings().

Here is the caller graph for this function:

◆ GetNChildren() [2/2]

Int_t MpdXMLNode::GetNChildren ( TString name) const
Parameters
namename of node
Returns
number of node with given name

Definition at line 92 of file MpdXMLNode.cxx.

References GetChild(), TNamed::GetName(), GetNChildren(), and i.

Here is the call graph for this function:

◆ GetValue()

TString MpdXMLNode::GetValue ( ) const
inline
Returns
value of node

Definition at line 119 of file MpdXMLNode.h.

References TNamed::GetTitle().

Referenced by MpdXMLNode(), MpdXMLFile::ExportNode(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

MpdXMLNode & MpdXMLNode::operator= ( const MpdXMLNode & other)
Parameters
other
Returns

Definition at line 35 of file MpdXMLNode.cxx.

References MpdXMLNode(), fAttrib, fChildren, GetAttrib(), GetChild(), TCollection::GetEntries(), TNamed::GetName(), GetValue(), i, TNamed::SetName(), and SetValue().

Here is the call graph for this function:

◆ SetValue()

void MpdXMLNode::SetValue ( TString value)
inline
Parameters
valuenew value

Definition at line 87 of file MpdXMLNode.h.

References TNamed::SetTitle().

Referenced by operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fAttrib

TList MpdXMLNode::fAttrib
private

◆ fChildren

TList MpdXMLNode::fChildren
private

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