Changeset 5557 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 12/03/04 20:11:31 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r4889 r5557 194 194 const char *MParContainer::GetDescriptor() const 195 195 { 196 return GetDescriptor(*this); 197 } 198 199 // -------------------------------------------------------------------------- 200 // 201 // Returns the name of the object. If the name of the object is not the 202 // class name it returns the object name and in []-brackets the class name. 203 // 204 const char *MParContainer::GetDescriptor(const TObject &o) 205 { 196 206 // 197 207 // Because it returns a (const char*) we cannot return a casted … … 200 210 // 201 211 MString desc; 202 desc.Print("%s [%s]", fName.Data(),ClassName());203 return fName==ClassName() ?ClassName() : desc.Data();212 desc.Print("%s [%s]", o.GetName(), o.ClassName()); 213 return (TString)o.GetName()==o.ClassName() ? o.ClassName() : desc.Data(); 204 214 } 205 215 -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r4889 r5557 73 73 ; 74 74 virtual void FillBuffer(char *&buffer); 75 76 static const char *GetDescriptor(const TObject &o); 75 77 76 78 virtual const char *GetDescriptor() const; -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r5498 r5557 1733 1733 const Int_t n = list.Write(name, kSingleKey); 1734 1734 1735 *fLog << inf << "MStatusDisplay: " << n << " keys written to file as key " << name << "." << endl;1735 //*fLog << inf << "MStatusDisplay: " << n << " keys written to file as key " << name << "." << endl; 1736 1736 1737 1737 return n; -
trunk/MagicSoft/Mars/mbase/MTaskEnv.h
r4732 r5557 24 24 Int_t PostProcess(); 25 25 26 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);27 26 Bool_t WriteEnv(TEnv &env, TString prefix, Bool_t print=kFALSE) const; 28 27 … … 38 37 MTask *GetTask() { return fTask; } 39 38 39 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 40 40 41 ClassDef(MTaskEnv, 0) // Task which can be setup from an environment file 41 42 };
Note:
See TracChangeset
for help on using the changeset viewer.