Changeset 3574 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 03/22/04 14:49:21 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r3183 r3574 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@ uni-sw.gwdg.de>18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 220 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! … … 24 24 25 25 ////////////////////////////////////////////////////////////////////////////// 26 // // 27 // MParContainer // 28 // // 29 // The MParContainer class is the base class for all MARS parameter // 30 // containers. At the moment it is almost the same than ROOT's TNamed. // 31 // A TNamed contains the essential elements (name, title) // 32 // to identify a derived object in lists like our MParList or MTaskList. // 33 // The main difference is that the name and title isn't stored and read // 34 // to and from root files ("//!") // 35 // // 26 // 27 // MParContainer 28 // 29 // The MParContainer class is the base class for all MARS parameter 30 // containers. At the moment it is almost the same than ROOT's TNamed. 31 // A TNamed contains the essential elements (name, title) 32 // to identify a derived object in lists like our MParList or MTaskList. 33 // The main difference is that the name and title isn't stored and read 34 // to and from root files ("//!") 35 // 36 // MParContainer has several enhancements compared to TNamed: 37 // - GetDescriptor(): returns name and class type 38 // - GetUniqueName(): returns a unique name (used in StreamPrimitive) 39 // - SetLogStream(MLog *lg): Set a logging stream to which loggingis stored 40 // - Reset(): Reset content of class in an eventloop 41 // - IsReadyToSave(): The contents are ready to be saved to a file 42 // - IsSavedAsPrimitive(): A unique name for this instance is already 43 // existing 44 // - SetVariables(): Can be overloaded if the containers stores 45 // coefficients (to be used in fits) 46 // - SetDisplay(): Set a display for redirecting graphical output 47 // - GetNames(): Get Name/Title from instance and store it in 48 // a TObjArray (used to store the names of the 49 // conteiners in a file 50 // - SetNames(): vice versa 51 // - ReadEnv(), WriteEnv(): Function which is used for automatical setup 52 // IsEnvDefined() from a TEnv file 53 // 36 54 ////////////////////////////////////////////////////////////////////////////// 37 55 #include "MParContainer.h" -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r3183 r3574 25 25 26 26 class TEnv; 27 class TArrayD; 27 28 class TDataMember; 28 29 class TMethodCall; … … 83 84 virtual Bool_t IsSortable() const { return kTRUE; } 84 85 85 virtual void 86 virtual void 87 virtual void 88 virtual void 89 virtual void 90 virtual Int_t 91 virtual void 86 virtual void SetName(const char *name); // *MENU* 87 virtual void SetObject(const char *name, const char *title); 88 virtual void SetTitle(const char *title=""); // *MENU* 89 virtual void ls(Option_t *option="") const; 90 virtual void Print(Option_t *option="") const; 91 virtual Int_t Sizeof() const; 92 virtual void SavePrimitive(ofstream &out, Option_t *o=""); 92 93 93 94 virtual MParContainer *New() const; … … 99 100 virtual void EnableGraphicalOutput(Bool_t flag=kTRUE) { flag ? SetBit(kEnableGraphicalOutput) : ResetBit(kEnableGraphicalOutput);} 100 101 virtual Bool_t IsGraphicalOutputEnabled() const { return TestBit(kEnableGraphicalOutput); } 102 virtual void SetVariables(const TArrayD &) { AbstractMethod("SetVariables(const TArrayD&)"); } 101 103 102 104 virtual void SetDisplay(MStatusDisplay *d) { fDisplay = d; }
Note:
See TracChangeset
for help on using the changeset viewer.