#include <PndSttParAsciiFileIo.h>
Definition at line 12 of file PndSttParAsciiFileIo.h.
 
      
        
          | PndSttParAsciiFileIo::PndSttParAsciiFileIo | ( | std::fstream * |  | ) |  | 
      
 
 
  
  | 
        
          | PndSttParAsciiFileIo::~PndSttParAsciiFileIo | ( |  | ) |  |  | inline | 
 
 
      
        
          | Bool_t PndSttParAsciiFileIo::init | ( | FairParSet * | pPar | ) |  | 
      
 
Definition at line 29 of file PndParAsciiFileIo.cxx.
References name, and read().
   32   const  Text_t* 
name=pPar->GetName();
 
   33    cout << 
"-I- Ascii Io init() " << pPar->GetName() <<   endl;
 
   38     cerr<<
"initialization of "<<name<<
" not possible from file!"<<endl;
 
   41   cerr<<
"no input file open"<<endl;
 
Bool_t read(T *, Int_t *, Bool_t needsClear=kFALSE)
 
 
 
template<class T > 
      
        
          | Bool_t PndSttParAsciiFileIo::read | ( | T * | pPar, | 
        
          |  |  | Int_t * | set, | 
        
          |  |  | Bool_t | needsClear = kFALSE | 
        
          |  | ) |  |  | 
      
 
Definition at line 60 of file PndParAsciiFileIo.cxx.
References Bool_t, buf, name, and printf().
Referenced by init().
   69   const  Text_t* 
name=pPar->GetName();
 
   70   if (!findContainer(name)) 
return kFALSE;
 
   71   if (needsClear) pPar->clear();
 
   72   const Int_t maxbuf=155;
 
   74   while (!pFile->eof()) {
 
   75     pFile->getline(buf, maxbuf);
 
   76     if (buf[0]==
'#') 
break;
 
   77     if (buf[0]!=
'/' && buf[0]!=
'\0')
 
   80         pPar->readline(buf,set,pFile);
 
   82   pPar->setInputVersion(1,inputNumber);
 
   86    printf(
"%s initialized from Ascii file\n",name);
 
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
 
 
 
      
        
          | Int_t PndSttParAsciiFileIo::write | ( | FairParSet * | pPar | ) |  | 
      
 
Definition at line 45 of file PndParAsciiFileIo.cxx.
References name, and writeFile2().
   50         const  Text_t* 
name=pPar->GetName();
 
   53         cerr<<name<<
" could not be written to Ascii file"<<endl;
 
   56     cerr<<
"no output file open"<<endl;
 
 
 
 
template<class T > 
      
        
          | Int_t PndSttParAsciiFileIo::writeFile2 | ( | T * | pPar | ) |  | 
      
 
 
The documentation for this class was generated from the following files: