CLASS  5.1
Fuel Cycle Simulator
CLASSObject.hxx
Go to the documentation of this file.
1 
2 #ifndef _CLASSOBJECT_
3 #define _CLASSOBJECT_
4 
5 
15 #include <string>
16 #include <fstream>
17 
18 #include "CLASSLogger.hxx"
19 
20 #include "TNamed.h"
21 
22 using namespace std;
23 
24 //-----------------------------------------------------------------------------//
26 
35 //________________________________________________________________________
36 
37 
38 
39 class CLASSObject : public TNamed
40 {
41 public :
46 
47  //{
49 
52  CLASSObject();
53  //}
54 
55  //{
57 
63  //}
65 
70 
71  virtual CLASSObject* Clone() { return new CLASSObject(*this); }
72  //}
74 
75 
80 
81 
82 #ifndef __ROOTCLING__
83  void SetLog(CLASSLogger* log) { fLog = log;}
84  CLASSLogger* GetLog() { return fLog; }
85 #endif
86 
87 
88  using TNamed::SetName;
89  using TNamed::GetName;
90 protected :
91 #ifndef __ROOTCLING__
93 #endif
94 
95 
96 private :
97 
98  ClassDef(CLASSObject,0);
99 };
100 
101 #endif
102 
Definition: CLASSBackEndDict.cxx:37
virtual CLASSObject * Clone()
Correct way to copy a CLASSObject in case of derivation.
Definition: CLASSObject.hxx:71
Header file for CLASSLogger class.
Object to handle output messages.
Definition: CLASSLogger.hxx:144
void SetLog(CLASSLogger *log)
Set the CLASSLogger.
Definition: CLASSObject.hxx:83
Define common proporties of all objects.
Definition: CLASSObject.hxx:39
CLASSLogger * GetLog()
Return the Pointer to the Log.
Definition: CLASSObject.hxx:84
CLASSLogger * fLog
Pointer to the Log.
Definition: CLASSObject.hxx:92