source: trunk/MagicSoft/include-Classes/MRawFormat/MParContainer.h@ 1567

Last change on this file since 1567 was 491, checked in by magicsol, 24 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MPARCONTAINER_H
2#define MPARCONTAINER_H
3
4//////////////////////////////////////////////////////////////////////////
5// //
6// TNamed //
7// //
8// The basis for a named object (name, title). //
9// //
10//////////////////////////////////////////////////////////////////////////
11#include <iostream.h> // cout
12
13#ifndef ROOT_TObject
14#include <TObject.h>
15#endif
16#ifndef ROOT_TString
17#include <TString.h>
18#endif
19
20class MParContainer : public TObject
21{
22 private:
23 void Init(const char *name, const char *title)
24 {
25 fName = new TString;
26 (*fName) = name;
27 fTitle = new TString;
28 (*fTitle) = title;
29 }
30 protected:
31 TString *fName; //! object identifier
32 TString *fTitle; //! object title
33
34 public:
35 MParContainer(const char *name="", const char *title="") { Init(name, title); }
36 MParContainer(const TString &name, const TString &title) { Init(name, title); }
37 MParContainer(const MParContainer &named);
38 MParContainer& operator=(const MParContainer& rhs);
39 virtual ~MParContainer() {
40 //delete fName; delete fTitle;
41 }
42 virtual Int_t Compare(TObject *obj);
43 virtual void Copy(TObject &named);
44 virtual void FillBuffer(char *&buffer);
45 virtual const char *GetName() const {return fName->Data();}
46 virtual const char *GetTitle() const {return fTitle->Data();}
47 virtual ULong_t Hash() { return fName->Hash(); }
48 virtual Bool_t IsSortable() const { return kTRUE; }
49 virtual void SetName(const char *name); // *MENU*
50 virtual void SetObject(const char *name, const char *title);
51 virtual void SetTitle(const char *title=""); // *MENU*
52 virtual void ls(Option_t *option="");
53 virtual void Print(Option_t *option="");
54 virtual Int_t Sizeof() const;
55
56 ClassDef(MParContainer, 1) //The basis for Parameter Containers
57};
58
59#endif
60
61
Note: See TracBrowser for help on using the repository browser.