FairRoot
|
#include <FairXMLNode.h>
Public Member Functions | |
FairXMLFile (TString name="", TString mode="read") | |
void | CreateRootNode (TString name) |
void | SetRootNode (FairXMLNode *node) |
FairXMLNode * | GetRootNode () const |
void | Close () |
virtual | ~FairXMLFile () |
ClassDef (FairXMLFile, 1) | |
class for opening XML files
Definition at line 157 of file FairXMLNode.h.
FairXMLFile::FairXMLFile | ( | TString | name = "" , |
TString | mode = "read" |
||
) |
name | name of xml file |
mode | if "READ" or "read" - only read file, otherwise create /overwrite file |
Definition at line 134 of file FairXMLNode.cxx.
|
virtual |
destroy object (and save xml file if needed and Close was not called)
Definition at line 185 of file FairXMLNode.cxx.
FairXMLFile::ClassDef | ( | FairXMLFile | , |
1 | |||
) |
void FairXMLFile::Close | ( | ) |
close and write xml (if needed)
Definition at line 154 of file FairXMLNode.cxx.
void FairXMLFile::CreateRootNode | ( | TString | name | ) |
create new root node
name | name of new node |
Definition at line 150 of file FairXMLNode.cxx.
|
inline |
Definition at line 185 of file FairXMLNode.h.
void FairXMLFile::SetRootNode | ( | FairXMLNode * | node | ) |
set new root node, old node will be overwritten
node | root node |
Definition at line 152 of file FairXMLNode.cxx.