Changeset 991 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 10/26/01 10:11:30 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r967 r991 32 32 33 33 #pragma link C++ class MClone; 34 #pragma link C++ class MPrint; 34 35 35 36 #pragma link C++ class MReadTree; -
trunk/MagicSoft/Mars/mbase/MClone.cc
r967 r991 69 69 *fTitle = title ? title : "Task to clone a parameter container for later usage"; 70 70 71 fClone 72 f ParContainer= NULL;71 fClone = NULL; 72 fObject = NULL; 73 73 } 74 74 … … 77 77 // Constructor. Remembers the name to search for in the parameter list. 78 78 // 79 MClone::MClone(const char * par, const char *name, const char *title)79 MClone::MClone(const char *obj, const char *name, const char *title) 80 80 { 81 81 Init(name, title); 82 82 83 f ParContainerName = par;83 fObjName = obj; 84 84 } 85 85 … … 88 88 // Constructor. Remember the pointer of the object which has to be cloned. 89 89 // 90 MClone::MClone(const MParContainer *par, const char *name, const char *title)90 MClone::MClone(const TObject *obj, const char *name, const char *title) 91 91 { 92 92 Init(name, title); 93 93 94 f ParContainer = par;94 fObject = obj; 95 95 } 96 96 … … 114 114 // The pointer is already given by the user. 115 115 // 116 if (f ParContainer)116 if (fObject) 117 117 return kTRUE; 118 118 … … 120 120 // Try to find the parameter container with the given name in the list 121 121 // 122 f ParContainer = (MParContainer*)pList->FindObject(fParContainerName);123 if (f ParContainer)122 fObject = pList->FindObject(fObjName); 123 if (fObject) 124 124 return kTRUE; 125 125 … … 127 127 // If it couldn't get found stop Eventloop 128 128 // 129 *fLog << dbginf << f ParContainerName << " not found... aborting." << endl;129 *fLog << dbginf << fObjName << " not found... aborting." << endl; 130 130 return kFALSE; 131 131 } … … 165 165 // Clone the given parameter container 166 166 // 167 fClone = f ParContainer->Clone();167 fClone = fObject->Clone(); 168 168 169 169 return kTRUE; -
trunk/MagicSoft/Mars/mbase/MClone.h
r961 r991 15 15 { 16 16 private: 17 const MParContainer *fParContainer; // pointer to container which has to be cloned18 TString f ParContainerName;// given name to search for in the parameterlist17 const TObject *fObject; // pointer to container which has to be cloned 18 TString fObjName; // given name to search for in the parameterlist 19 19 20 TObject* fClone; 20 TObject* fClone; // pointer to the cloned object. deletion is handled by MClone 21 21 22 22 void Init(const char *name, const char *title); 23 23 24 24 public: 25 MClone(const char * par,const char *name=NULL, const char *title=NULL);26 MClone(const MParContainer *par, const char *name=NULL, const char *title=NULL);25 MClone(const char *obj, const char *name=NULL, const char *title=NULL); 26 MClone(const TObject *obj, const char *name=NULL, const char *title=NULL); 27 27 ~MClone(); 28 28 -
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r988 r991 83 83 84 84 fVetoList = new TArrayC; 85 85 86 // 86 87 // open the input stream -
trunk/MagicSoft/Mars/mbase/Makefile
r959 r991 47 47 MArrayS.cc \ 48 48 MTime.cc \ 49 MLog.cc \50 49 MHtml.cc \ 51 50 MClone.cc \ 51 MPrint.cc \ 52 MLog.cc \ 52 53 MLogManip.cc 53 54
Note:
See TracChangeset
for help on using the changeset viewer.