4 #ifndef __KVFILEREADER_H
5 #define __KVFILEREADER_H
28 unique_ptr<TObjArray>
toks;
68 Error(
"OpenFileToRead",
"Echec dans l ouverture du fichier %s", filename.
Data());
144 Int_t ne = tamp->GetEntries();
147 for (
Int_t kk = 0; kk < ne; kk += 1)
toks->Add(tamp->RemoveAt(kk));
152 return toks->GetEntries();
#define ClassDef(name, id)
Base class for KaliVeda framework.
Handle reading text files.
Int_t ReadLineAndCheck(Int_t nexpect, const Char_t *pattern)
KVString GetCurrentLine()
void ReadLineAndAdd(const Char_t *pattern)
Int_t ReuseLineAndCheck(Int_t nexpect, const Char_t *pattern)
Bool_t PreparForReadingAgain()
TString GetReadPar(Int_t pos)
unique_ptr< TObjArray > toks
Bool_t OpenFileToRead(KVString filename)
KVFileReader()
Default constructor.
virtual void Copy(TObject &) const
void StoreParameters(const Char_t *pattern)
void Clear(Option_t *="")
Clear object properties : name, type/title, number, label.
void ReadLine(const Char_t *pattern)
Double_t GetDoubleReadPar(Int_t pos)
Int_t GetIntReadPar(Int_t pos)
void AddParameters(const Char_t *pattern)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void RemoveAllExtraWhiteSpace()
virtual void Error(const char *method, const char *msgfmt,...) const
const char * Data() const
std::istream & ReadLine(std::istream &str, Bool_t skipWhite=kTRUE)