Ignore:
Timestamp:
10/26/01 10:11:30 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r967 r991  
    3232
    3333#pragma link C++ class MClone;
     34#pragma link C++ class MPrint;
    3435
    3536#pragma link C++ class MReadTree;
  • trunk/MagicSoft/Mars/mbase/MClone.cc

    r967 r991  
    6969    *fTitle = title ? title : "Task to clone a parameter container for later usage";
    7070
    71     fClone        = NULL;
    72     fParContainer = NULL;
     71    fClone  = NULL;
     72    fObject = NULL;
    7373}
    7474
     
    7777//  Constructor. Remembers the name to search for in the parameter list.
    7878//
    79 MClone::MClone(const char *par, const char *name, const char *title)
     79MClone::MClone(const char *obj, const char *name, const char *title)
    8080{
    8181    Init(name, title);
    8282
    83     fParContainerName = par;
     83    fObjName = obj;
    8484}
    8585
     
    8888//  Constructor. Remember the pointer of the object which has to be cloned.
    8989//
    90 MClone::MClone(const MParContainer *par, const char *name, const char *title)
     90MClone::MClone(const TObject *obj, const char *name, const char *title)
    9191{
    9292    Init(name, title);
    9393
    94     fParContainer = par;
     94    fObject = obj;
    9595}
    9696
     
    114114    // The pointer is already given by the user.
    115115    //
    116     if (fParContainer)
     116    if (fObject)
    117117        return kTRUE;
    118118
     
    120120    // Try to find the parameter container with the given name in the list
    121121    //
    122     fParContainer = (MParContainer*)pList->FindObject(fParContainerName);
    123     if (fParContainer)
     122    fObject = pList->FindObject(fObjName);
     123    if (fObject)
    124124        return kTRUE;
    125125
     
    127127    // If it couldn't get found stop Eventloop
    128128    //
    129     *fLog << dbginf << fParContainerName << " not found... aborting." << endl;
     129    *fLog << dbginf << fObjName << " not found... aborting." << endl;
    130130    return kFALSE;
    131131}
     
    165165    // Clone the given parameter container
    166166    //
    167     fClone = fParContainer->Clone();
     167    fClone = fObject->Clone();
    168168
    169169    return kTRUE;
  • trunk/MagicSoft/Mars/mbase/MClone.h

    r961 r991  
    1515{
    1616private:
    17     const MParContainer *fParContainer; // pointer to container which has to be cloned
    18     TString fParContainerName;          // given name to search for in the parameterlist
     17    const TObject *fObject; // pointer to container which has to be cloned
     18    TString fObjName;       // given name to search for in the parameterlist
    1919
    20     TObject* fClone;                    // pointer to the cloned object. deletion is handled by MClone
     20    TObject* fClone;        // pointer to the cloned object. deletion is handled by MClone
    2121
    2222    void Init(const char *name, const char *title);
    2323
    2424public:
    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);
    2727    ~MClone();
    2828
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r988 r991  
    8383
    8484    fVetoList = new TArrayC;
     85
    8586    //
    8687    // open the input stream
  • trunk/MagicSoft/Mars/mbase/Makefile

    r959 r991  
    4747           MArrayS.cc \
    4848           MTime.cc \
    49            MLog.cc \
    5049           MHtml.cc \
    5150           MClone.cc \
     51           MPrint.cc \
     52           MLog.cc \
    5253           MLogManip.cc
    5354
Note: See TracChangeset for help on using the changeset viewer.