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

#include <XMLNode.h>

Inheritance diagram for Hal::XMLFile:

Public Member Functions

 XMLFile (TString name="", TString mode="read")
 
void CreateRootNode (TString name)
 
void SetRootNode (XMLNode *node)
 
XMLNodeGetRootNode () const
 
void Close ()
 
virtual ~XMLFile ()
 
 ClassDef (XMLFile, 1)
 

Detailed Description

class for opening XML files

Definition at line 153 of file XMLNode.h.

Constructor & Destructor Documentation

◆ XMLFile()

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

Definition at line 114 of file XMLNode.cxx.

◆ ~XMLFile()

Hal::XMLFile::~XMLFile ( )
virtual

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

Definition at line 158 of file XMLNode.cxx.

Member Function Documentation

◆ Close()

void Hal::XMLFile::Close ( )

close and write xml (if needed)

Definition at line 132 of file XMLNode.cxx.

◆ CreateRootNode()

void Hal::XMLFile::CreateRootNode ( TString name)

create new root node

Parameters
namename of new node

Definition at line 128 of file XMLNode.cxx.

◆ GetRootNode()

XMLNode * Hal::XMLFile::GetRootNode ( ) const
inline
Returns
root node

Definition at line 180 of file XMLNode.h.

◆ SetRootNode()

void Hal::XMLFile::SetRootNode ( XMLNode * node)

set new root node, old node will be overwritten

Parameters
noderoot node

Definition at line 130 of file XMLNode.cxx.


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