Ignore:
Timestamp:
12/03/04 20:11:31 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r4889 r5557  
    194194const char *MParContainer::GetDescriptor() const
    195195{
     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//
     204const char *MParContainer::GetDescriptor(const TObject &o)
     205{
    196206    //
    197207    // Because it returns a (const char*) we cannot return a casted
     
    200210    //
    201211    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();
    204214}
    205215
  • trunk/MagicSoft/Mars/mbase/MParContainer.h

    r4889 r5557  
    7373        ;
    7474    virtual void        FillBuffer(char *&buffer);
     75
     76    static const char *GetDescriptor(const TObject &o);
    7577
    7678    virtual const char   *GetDescriptor() const;
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r5498 r5557  
    17331733    const Int_t n = list.Write(name, kSingleKey);
    17341734
    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;
    17361736
    17371737    return n;
  • trunk/MagicSoft/Mars/mbase/MTaskEnv.h

    r4732 r5557  
    2424    Int_t  PostProcess();
    2525
    26     Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
    2726    Bool_t WriteEnv(TEnv &env, TString prefix, Bool_t print=kFALSE) const;
    2827
     
    3837    MTask *GetTask() { return fTask; }
    3938
     39    Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
     40
    4041    ClassDef(MTaskEnv, 0) // Task which can be setup from an environment file
    4142};
Note: See TracChangeset for help on using the changeset viewer.