| Line | |
|---|
| 1 | #ifndef MARS_MReport
|
|---|
| 2 | #define MARS_MReport
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MParContainer
|
|---|
| 5 | #include "MParContainer.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MTime;
|
|---|
| 9 | class MParList;
|
|---|
| 10 |
|
|---|
| 11 | class MReport : public MParContainer
|
|---|
| 12 | {
|
|---|
| 13 | private:
|
|---|
| 14 | const TString fIdentifier; //!
|
|---|
| 15 |
|
|---|
| 16 | Byte_t fState;
|
|---|
| 17 | MTime *fTime; //!
|
|---|
| 18 |
|
|---|
| 19 | ULong_t Hash() const { return fIdentifier.Hash(); }
|
|---|
| 20 | Bool_t InterpreteHeader(TString &str);
|
|---|
| 21 |
|
|---|
| 22 | public:
|
|---|
| 23 | MReport(const char *id) : fIdentifier(id), fState(0xff), fTime(0) { }
|
|---|
| 24 |
|
|---|
| 25 | virtual Bool_t SetupReading(MParList &plist);
|
|---|
| 26 | virtual Bool_t InterpreteBody(TString &str);
|
|---|
| 27 |
|
|---|
| 28 | Bool_t Interprete(TString &str);
|
|---|
| 29 | Bool_t CheckIdentifier(TString &str) const
|
|---|
| 30 | {
|
|---|
| 31 | if (!str.BeginsWith(fIdentifier))
|
|---|
| 32 | return kFALSE;
|
|---|
| 33 |
|
|---|
| 34 | str.Remove(0, fIdentifier.Length());
|
|---|
| 35 | str = str.Strip(TString::kBoth);
|
|---|
| 36 |
|
|---|
| 37 | return kTRUE;
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | const TString &GetIdentifier() const { return fIdentifier; }
|
|---|
| 41 |
|
|---|
| 42 | ClassDef(MReport, 1) // Base class for control reports
|
|---|
| 43 | };
|
|---|
| 44 |
|
|---|
| 45 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.