Changeset 8706 for trunk/MagicSoft/Mars/mfbase
- Timestamp:
- 08/24/07 13:58:50 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mfbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfbase/MFDataPhrase.cc
r8310 r8706 107 107 // the class description above. 108 108 // 109 MFDataPhrase::MFDataPhrase(const char *text, const char *name, const char *title) : f AllowEmpty(kFALSE)109 MFDataPhrase::MFDataPhrase(const char *text, const char *name, const char *title) : fData(NULL), fAllowEmpty(kFALSE) 110 110 { 111 111 fName = name ? name : gsDefName.Data(); 112 112 fTitle = title ? title : gsDefTitle.Data(); 113 114 if (!text) 115 return; 113 116 114 117 *fLog << inf << "Parsing filter rule... " << flush; … … 162 165 Int_t MFDataPhrase::Process() 163 166 { 164 if (fData) 165 fResult = fData->GetValue()>0.5; 167 fResult = fData ? fData->GetValue()>0.5 : fDefault; 166 168 167 169 return kTRUE; -
trunk/MagicSoft/Mars/mfbase/MFDataPhrase.h
r8091 r8706 18 18 MData *fData; 19 19 Bool_t fAllowEmpty; // Not a Bit to be stored 20 Bool_t fDefault; // Default for empty case 20 21 21 22 Bool_t fResult; //! … … 38 39 void SetAllowEmpty(Bool_t b=kTRUE) { fAllowEmpty = b; } 39 40 Bool_t IsAllowEmpty() const { return fAllowEmpty; } 41 42 void SetDefault(Bool_t b) { fDefault = b; } 43 Bool_t GetDefault() const { return fDefault; } 40 44 41 45 // MFilter
Note:
See TracChangeset
for help on using the changeset viewer.