1#ifndef __KVFILEREADER_H
2#define __KVFILEREADER_H
172 return "CommentLine";
178 return "ParamMismatch";
225 Error(
"OpenFileToRead",
"Failed to open file %s", _filename.
Data());
254 if (!pattern.IsNull())
272 if (!pattern.IsNull())
343 return items[pos].c_str();
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
R__EXTERN TSystem * gSystem
Base class for KaliVeda framework.
Handle reading columns of numeric data in text files.
KVString GetCurrentLine()
ReadStatus
status returned by each method used to read a line in the file
@ ParamMismatch
the number of parameters read from line does not correspond to expectations
@ CommentLine
last line read was a comment line
@ EndOfFile
end of file reached
@ EmptyLine
last line read was empty (only whitespace)
@ OK
successful read and import of parameters from line
ReadStatus ReadLineAndCheck(Int_t nexpect, const KVString &pattern)
Bool_t PreparForReadingAgain()
Int_t GetNlineRead() const
ReadStatus ReadLine(const KVString &pattern="")
KVFileReader(const KVString &comments="")
Double_t GetDoubleReadPar(Int_t pos) const
void Clear(Option_t *="")
ReadStatus ReadLineAndAdd(const KVString &pattern="")
Int_t GetIntReadPar(Int_t pos) const
Int_t GetNparRead() const
void StoreParameters(const KVString &pattern)
KVString GetReadStatus(ReadStatus s)
KVString GetReadPar(Int_t pos) const
void AddParameters(const KVString &pattern)
ReadStatus ReuseLineAndCheck(Int_t nexpect, const KVString &pattern)
std::vector< std::string > items
Bool_t OpenFileToRead(const KVString &filename)
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
void RemoveAllExtraWhiteSpace()
KVString Next(Bool_t strip_whitespace=kFALSE) const
virtual void Error(const char *method, const char *msgfmt,...) const
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
std::istream & ReadLine(std::istream &str, Bool_t skipWhite=kTRUE)
virtual char * ExpandPathName(const char *path)