source: trunk/MagicSoft/Mars/mbase/MParEnv.h@ 9457

Last change on this file since 9457 was 9268, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 813 bytes
Line 
1#ifndef MARS_MParEnv
2#define MARS_MParEnv
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MParEnv : public MParContainer
9{
10private:
11 MParContainer *fCont; // Pointer to the paremetr container
12
13 TString fClassName; // Name of the Class fCont must inherit from
14 Bool_t fIsOwner; // Flag whether MParEnv owns fCont
15
16 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
17
18public:
19 MParEnv(const char *name=NULL, const char *title=NULL);
20 ~MParEnv();
21
22 void SetCont(MParContainer *c=0);
23 MParContainer *GetCont() const { return fCont; }
24
25 Bool_t SetClassName(const char *cls="MParContainer");
26
27 void Print(Option_t *o="") const;
28
29 ClassDef(MParEnv, 1) // A wrapper container which allows to set a new container from the resource file
30};
31
32#endif
Note: See TracBrowser for help on using the repository browser.