Last change
on this file since 114 was
114,
checked in by moretto, 11 years ago
|
actual version of ESAF at CCin2p3
|
File size:
877 bytes
|
Line | |
---|
1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: StringsFileParser.hh 1608 2005-03-21 17:24:53Z thea $ |
---|
3 | // Daniel De Marco created Jan, 28 2002 |
---|
4 | |
---|
5 | #ifndef __STRINGSFILEPARSER_HH_ |
---|
6 | #define __STRINGSFILEPARSER_HH_ |
---|
7 | |
---|
8 | #include <string> |
---|
9 | #include <list> |
---|
10 | #include <iostream> |
---|
11 | #include <fstream> |
---|
12 | |
---|
13 | #include "euso.hh" |
---|
14 | #include "EsafMsgSource.hh" |
---|
15 | |
---|
16 | class StringsFileParser : public EsafMsgSource { |
---|
17 | public: |
---|
18 | StringsFileParser(const string &fn); |
---|
19 | virtual ~StringsFileParser(); |
---|
20 | |
---|
21 | list<list<string> > &GetLines(); |
---|
22 | |
---|
23 | inline virtual Bool_t IsZombie() { return fZombie; } |
---|
24 | |
---|
25 | protected: |
---|
26 | inline virtual void MakeZombie() { fZombie = kTRUE; } |
---|
27 | |
---|
28 | list<list<string> > fLines; |
---|
29 | string fFileName; |
---|
30 | |
---|
31 | Bool_t fZombie; |
---|
32 | |
---|
33 | ClassDef(StringsFileParser,0) |
---|
34 | }; |
---|
35 | |
---|
36 | inline list<list<string> > &StringsFileParser::GetLines() { |
---|
37 | return fLines; |
---|
38 | } |
---|
39 | #endif /* __STRINGSFILEPARSER_HH_ */ |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.