5 #include <KVINDRARunListReader.h>
8 #include <KVRunListLine.h>
39 KVINDRARunListReader::~KVINDRARunListReader()
64 if (fRunsStream.is_open()) {
67 "Opened file %s for reading",
filename);
72 "Cannot open file %s for reading",
filename);
89 if (fRunsStream.is_open()) {
112 if (!fRunsStream.is_open()) {
114 "No file open for reading");
117 if (!fRunsStream.good()) {
119 "File %s is not good for reading", fRunsFile.Data());
122 fLine.ReadLine(fRunsStream);
124 if (!fRunsStream.good())
127 if (fLine.BeginsWith(
"Version")) {
129 if (sscanf(fLine.Data(),
"Version=%d", &fVersion) == 1) {
135 else if (!fLine.BeginsWith(fComment)) {
136 fLineReader->SetLine(fLine);
137 fLineReader->BreakLineIntoFields(fSeparator);
141 fLineReader->Clear();
165 if (!strcmp(t,
"")) {
167 if (!fRunsStream.is_open()) {
169 "No runlist file open for reading");
183 while (ReadRLLine()) {
185 if (fLineReader->GoodRunLine()) {
190 fLineReader->Clear();
211 fLineReader->Print();
234 Int_t trig = fLineReader->GetTrigger(field, fmt);
235 if (trig < 0 && fLineReader->HasFieldValue(field))
236 cout <<
"...apparently on line " << GetRLLineNumber() << endl;
237 return (trig < 0 ? fTrigger : fTrigger = trig);
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
TClass * IsA() const override
char * Form(const char *fmt,...)
Utitlity base class for reading INDRA runlist files.
virtual void GoodRunLine()
Bool_t OpenRLFile(const Char_t *)
void ReadRunList(const Char_t *name="")
Int_t GetRunListTrigger(const Char_t *field, const Char_t *fmt)
Base class for reading runlists for experiments ,.