Ignore:
Timestamp:
06/15/08 20:10:34 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

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

    r8484 r8961  
    5656
    5757using namespace std;
     58
     59// --------------------------------------------------------------------------
     60//
     61// Initialize the MStatusArray from an MStatusDisplay. Note, the contents
     62// still owned by MStatusDisplay and will vanish if the display changes
     63// or is deleted without further notice.
     64//
     65MStatusArray::MStatusArray(const MStatusDisplay &d) : TObjArray()
     66{
     67    d.FillArray(*this);
     68}
    5869
    5970// --------------------------------------------------------------------------
     
    256267void MStatusArray::Print(Option_t *option) const
    257268{
    258     const TString opt(option);
    259 
    260     PrintObjectsInPad(this, opt);
     269    gLog << all;
     270
     271    PrintObjectsInPad(this, TString(option));
    261272}
    262273
  • trunk/MagicSoft/Mars/mbase/MStatusArray.h

    r8299 r8961  
    2828public:
    2929    MStatusArray() : TObjArray() { }
     30    MStatusArray(const MStatusDisplay &d);
    3031
    3132    TObject *DisplayIn(Option_t *o=0) const;         // *MENU*
     
    3940
    4041    void Print(Option_t *o="") const;
    41     void Print(Option_t *wildcard, Option_t *) const
    42     {
    43         Print(wildcard);
    44     }
     42    void Print(const Option_t *o, Option_t *) const { Print(o); }
    4543
    4644    TObject *FindObject(const char *object, const char *base) const;
Note: See TracChangeset for help on using the changeset viewer.