FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairXMLFile Class Reference

#include <FairXMLNode.h>

Inheritance diagram for FairXMLFile:

Public Member Functions

 FairXMLFile (TString name="", TString mode="read")
 
void CreateRootNode (TString name)
 
void SetRootNode (FairXMLNode *node)
 
FairXMLNodeGetRootNode () const
 
void Close ()
 
virtual ~FairXMLFile ()
 
 ClassDef (FairXMLFile, 1)
 

Detailed Description

class for opening XML files

Definition at line 157 of file FairXMLNode.h.

Constructor & Destructor Documentation

FairXMLFile::FairXMLFile ( TString  name = "",
TString  mode = "read" 
)
Parameters
namename of xml file
modeif "READ" or "read" - only read file, otherwise create /overwrite file

Definition at line 134 of file FairXMLNode.cxx.

FairXMLFile::~FairXMLFile ( )
virtual

destroy object (and save xml file if needed and Close was not called)

Definition at line 185 of file FairXMLNode.cxx.

Member Function Documentation

FairXMLFile::ClassDef ( FairXMLFile  ,
 
)
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

Parameters
namename of new node

Definition at line 150 of file FairXMLNode.cxx.

FairXMLNode* FairXMLFile::GetRootNode ( ) const
inline
Returns
root node

Definition at line 185 of file FairXMLNode.h.

void FairXMLFile::SetRootNode ( FairXMLNode node)

set new root node, old node will be overwritten

Parameters
noderoot node

Definition at line 152 of file FairXMLNode.cxx.


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