Changeset 2589 for trunk/MagicSoft


Ignore:
Timestamp:
12/02/03 15:09:21 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2587 r2589  
    1313     - renamed nonsens fErrors to fCounter
    1414     - fixed usage of fDisplay
     15
     16   * mbase/MTask.h:
     17     - added static member functions AddDerialNumber to simplify
     18       using different Serial numbers.
    1519
    1620
     
    740744       formal compatibility with the overloaded method of the mother
    741745       class TH1 *MH::GetHistByName(TString name)
     746
    742747
    743748
  • trunk/MagicSoft/Mars/mbase/MTask.h

    r2470 r2589  
    7373    virtual void PrintStatistics(const Int_t lvl=0, Bool_t title=kFALSE) const;
    7474
     75    static TString AddSerialNumber(const char *str, UInt_t num) { TString s(str); if (num==0) return s; s += ";"; s += num; return s; }
     76    static TString AddSerialNumber(const TString &str, UInt_t num) { return AddSerialNumber((const char*)str, num); }
     77    TString AddSerialNumber(const char *str) const { return AddSerialNumber(str, fSerialNumber); }
     78    TString AddSerialNumber(const TString &str) const { return AddSerialNumber(str, fSerialNumber); }
     79
    7580    virtual void SetSerialNumber(Byte_t num) { fSerialNumber = num; }
    7681    Byte_t  GetSerialNumber() const { return fSerialNumber; }
    77     TString AddSerialNumber(const char *str) const { TString s(str); if (fSerialNumber==0) return s; s += ";"; s += fSerialNumber; return s; }
    78     TString AddSerialNumber(const TString &str) const { return AddSerialNumber((const char*)str); }
    7982
    8083    const char *GetDescriptor() const;
Note: See TracChangeset for help on using the changeset viewer.