EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGenericParAsciiFileIo Class Reference

#include <EicRoot/blob/master/parbase/FairGenericParAsciiFileIo.h>

+ Inheritance diagram for FairGenericParAsciiFileIo:
+ Collaboration diagram for FairGenericParAsciiFileIo:

Public Member Functions

 FairGenericParAsciiFileIo (std::fstream *f=0)
 
 ~FairGenericParAsciiFileIo ()
 
Bool_t init (FairParSet *)
 
Int_t write (FairParSet *)
 
- Public Member Functions inherited from FairDetParAsciiFileIo
 FairDetParAsciiFileIo (std::fstream *f)
 
virtual ~FairDetParAsciiFileIo ()
 
- Public Member Functions inherited from FairDetParIo
 FairDetParIo ()
 
virtual ~FairDetParIo ()
 
void setInputNumber (Int_t n)
 
Int_t getInputNumber ()
 

Private Member Functions

 ClassDef (FairGenericParAsciiFileIo, 0) Bool_t readGenericSet(FairParGenericSet *pPar)
 
Int_t writeGenericSet (FairParGenericSet *pPar)
 
template<class type >
const UChar_t * readData (type, const Char_t *, TString &, Int_t &)
 
template<class type >
void writeData (type *, Int_t)
 

Additional Inherited Members

- Protected Member Functions inherited from FairDetParAsciiFileIo
Bool_t findContainer (const Text_t *name)
 pointer to ascii file
 
Bool_t checkAllFound (Int_t *, Int_t)
 
void writeHeader (const Text_t *, const Text_t *context="", const Text_t *author="", const Text_t *description="")
 
void writeComment (FairParSet *)
 
void readComment (const Char_t *, FairParSet *)
 
- Protected Attributes inherited from FairDetParAsciiFileIo
TString fHeader
 
TString sepLine
 header of container output in file
 
std::fstream * pFile
 comment line
 

Detailed Description

Definition at line 10 of file FairGenericParAsciiFileIo.h.

View newest version in sPHENIX GitHub at line 10 of file FairGenericParAsciiFileIo.h

Constructor & Destructor Documentation

FairGenericParAsciiFileIo::FairGenericParAsciiFileIo ( std::fstream *  f = 0)
FairGenericParAsciiFileIo::~FairGenericParAsciiFileIo ( )
inline

Definition at line 14 of file FairGenericParAsciiFileIo.h.

View newest version in sPHENIX GitHub at line 14 of file FairGenericParAsciiFileIo.h

Member Function Documentation

FairGenericParAsciiFileIo::ClassDef ( FairGenericParAsciiFileIo  ,
 
)
private
Bool_t FairGenericParAsciiFileIo::init ( FairParSet pPar)
virtual

Reimplemented from FairDetParIo.

Definition at line 31 of file FairGenericParAsciiFileIo.cxx.

View newest version in sPHENIX GitHub at line 31 of file FairGenericParAsciiFileIo.cxx

References FairDetParAsciiFileIo::pFile.

template<class type >
const UChar_t * FairGenericParAsciiFileIo::readData ( type  t,
const Char_t *  format,
TString &  line,
Int_t &  length 
)
private

Definition at line 59 of file FairGenericParAsciiFileIo.cxx.

View newest version in sPHENIX GitHub at line 59 of file FairGenericParAsciiFileIo.cxx

References d, Acts::UnitConstants::m, FairDetParAsciiFileIo::pFile, Acts::UnitConstants::s, and t.

Int_t FairGenericParAsciiFileIo::write ( FairParSet pPar)
virtual

Reimplemented from FairDetParIo.

Definition at line 47 of file FairGenericParAsciiFileIo.cxx.

View newest version in sPHENIX GitHub at line 47 of file FairGenericParAsciiFileIo.cxx

References FairDetParAsciiFileIo::pFile, and writeGenericSet().

+ Here is the call graph for this function:

template<class type >
void FairGenericParAsciiFileIo::writeData ( type *  val,
Int_t  nParams 
)
private

Definition at line 104 of file FairGenericParAsciiFileIo.cxx.

View newest version in sPHENIX GitHub at line 104 of file FairGenericParAsciiFileIo.cxx

References k, and FairDetParAsciiFileIo::pFile.

Referenced by writeGenericSet().

+ Here is the caller graph for this function:

Int_t FairGenericParAsciiFileIo::writeGenericSet ( FairParGenericSet pPar)
private

Definition at line 248 of file FairGenericParAsciiFileIo.cxx.

View newest version in sPHENIX GitHub at line 248 of file FairGenericParAsciiFileIo.cxx

References FairParamObj::getLength(), FairParamList::getList(), FairParamObj::getNumParams(), FairParSet::getParamContext(), FairParamObj::getParamType(), FairParamObj::getParamValue(), FairParamObj::isBasicType(), FairDetParAsciiFileIo::pFile, FairParGenericSet::putParams(), FairDetParAsciiFileIo::sepLine, FairParSet::setChanged(), conf::version, FairDetParAsciiFileIo::writeComment(), and writeData().

Referenced by write().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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