Ignore:
Timestamp:
03/22/04 14:49:21 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

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

    r3183 r3574  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2002
     20!   Copyright: MAGIC Software Development, 2000-2004
    2121!
    2222!
     
    2424
    2525//////////////////////////////////////////////////////////////////////////////
    26 //                                                                          //
    27 // MParContainer                                                            //
    28 //                                                                          //
    29 // The MParContainer class is the base class for all MARS parameter         //
    30 // containers. At the moment it is almost the same than ROOT's TNamed.      //
    31 // A TNamed contains the essential elements (name, title)                   //
    32 // to identify a derived object in lists like our MParList or MTaskList.    //
    33 // The main difference is that the name and title isn't stored and read     //
    34 // to and from root files ("//!")                                           //
    35 //                                                                          //
     26//
     27// MParContainer
     28//
     29// The MParContainer class is the base class for all MARS parameter
     30// containers. At the moment it is almost the same than ROOT's TNamed.
     31// A TNamed contains the essential elements (name, title)
     32// to identify a derived object in lists like our MParList or MTaskList.
     33// The main difference is that the name and title isn't stored and read
     34// to and from root files ("//!")
     35//
     36// MParContainer has several enhancements compared to TNamed:
     37//  - GetDescriptor():        returns name and class type
     38//  - GetUniqueName():        returns a unique name (used in StreamPrimitive)
     39//  - SetLogStream(MLog *lg): Set a logging stream to which loggingis stored
     40//  - Reset():                Reset content of class in an eventloop
     41//  - IsReadyToSave():        The contents are ready to be saved to a file
     42//  - IsSavedAsPrimitive():   A unique name for this instance is already
     43//                            existing
     44//  - SetVariables():         Can be overloaded if the containers stores
     45//                            coefficients (to be used in fits)
     46//  - SetDisplay():           Set a display for redirecting graphical output
     47//  - GetNames():             Get Name/Title from instance and store it in
     48//                            a TObjArray (used to store the names of the
     49//                            conteiners in a file
     50//  - SetNames():             vice versa
     51//  - ReadEnv(), WriteEnv():  Function which is used for automatical setup
     52//    IsEnvDefined()          from a TEnv file
     53//
    3654//////////////////////////////////////////////////////////////////////////////
    3755#include "MParContainer.h"
  • trunk/MagicSoft/Mars/mbase/MParContainer.h

    r3183 r3574  
    2525
    2626class TEnv;
     27class TArrayD;
    2728class TDataMember;
    2829class TMethodCall;
     
    8384    virtual Bool_t        IsSortable() const    { return kTRUE; }
    8485
    85     virtual void        SetName(const char *name); // *MENU*
    86     virtual void        SetObject(const char *name, const char *title);
    87     virtual void        SetTitle(const char *title=""); // *MENU*
    88     virtual void        ls(Option_t *option="") const;
    89     virtual void        Print(Option_t *option="") const;
    90     virtual Int_t       Sizeof() const;
    91     virtual void        SavePrimitive(ofstream &out, Option_t *o="");
     86    virtual void   SetName(const char *name); // *MENU*
     87    virtual void   SetObject(const char *name, const char *title);
     88    virtual void   SetTitle(const char *title=""); // *MENU*
     89    virtual void   ls(Option_t *option="") const;
     90    virtual void   Print(Option_t *option="") const;
     91    virtual Int_t  Sizeof() const;
     92    virtual void   SavePrimitive(ofstream &out, Option_t *o="");
    9293
    9394    virtual MParContainer *New() const;
     
    99100    virtual void   EnableGraphicalOutput(Bool_t flag=kTRUE) { flag ? SetBit(kEnableGraphicalOutput) : ResetBit(kEnableGraphicalOutput);}
    100101    virtual Bool_t IsGraphicalOutputEnabled() const  { return TestBit(kEnableGraphicalOutput); }
     102    virtual void   SetVariables(const TArrayD &)     { AbstractMethod("SetVariables(const TArrayD&)"); }
    101103
    102104    virtual void SetDisplay(MStatusDisplay *d) { fDisplay = d; }
Note: See TracChangeset for help on using the changeset viewer.