#define ClassDef(name, id)
class for representing node attributes
MpdXMLAttrib()
default constructor
MpdXMLAttrib(TString name, TString value)
default constructor
void SetValue(TString val)
class for opening XML files
void CreateRootNode(TString name)
create new root node
virtual ~MpdXMLFile()
destroy object (and save xml file if needed and Close was not called)
MpdXMLFile(TString name="", TString mode="read")
std::unique_ptr< MpdXMLNode > fRootNode
MpdXMLNode * GetRootNode() const
void SetRootNode(MpdXMLNode *node)
set new root node, old node will be overwritten
void ExportNode(XMLNodePointer_t &nodePointer, TXMLEngine &engine, const MpdXMLNode &node) const
void Close()
close and write xml (if needed)
class for representing XML node
void AddAttrib(MpdXMLAttrib *attrib)
add attribute to this class
void Copy(TXMLNode *node)
copy data for node to this
MpdXMLNode & operator=(const MpdXMLNode &other)
assignement operator
Int_t GetNAttributes() const
MpdXMLNode * GetChild(Int_t index) const
MpdXMLNode * GetChild(TString name, Int_t count=0) const
search for node with given name
void AddChild(MpdXMLNode *node)
add child node to this node, node is now owned by parent node
MpdXMLAttrib * GetAttrib(TString name) const
Int_t GetNChildren() const
MpdXMLAttrib * GetAttrib(Int_t index) const
Int_t GetNChildren(TString name) const
search for child with given name
MpdXMLNode(const MpdXMLNode &other)
copy constructor
void SetValue(TString value)
MpdXMLNode(TString name="", TString value="")
default constructor
virtual void SetTitle(const char *title="")
const char * GetTitle() const override
virtual void SetName(const char *name)