Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JRoot.hh
Go to the documentation of this file.
1 #ifndef __JROOT__
2 #define __JROOT__
3 
4 /**
5  * \file
6  * This include file serves the purpose of hiding ROOT dependencies
7  * and circumphere namespace problems when using rootcint.
8  * \author mdejong
9  */
10 
11 
12 /**
13  * Auxiliary classes and methods for ROOT I/O.
14  */
15 namespace JROOT {}
16 
17 #ifndef ClassDef
18 
19 struct TObject {};
20 
21 struct TBuffer {
22 
23  bool IsReading() { return false; }
24 
25  template<class T>
26  TBuffer& operator<<(const T&) { return *this; }
27 
28  template<class T>
29  TBuffer& operator>>(T&) { return *this; }
30 };
31 
32 #define ClassDef(name, version) static const char* Class_Name() { return #name; }
33 #define ClassDefNV(name, version) static const char* Class_Name() { return #name; }
34 #define ClassDefT(name, version) static const char* Class_Name() { return #name; }
35 #define ClassDefT2(name, template) static const char* Class_Name() { return #name; }
36 
37 #define ClassImp(name)
38 #define ClassImpT(name, template)
39 
40 #endif
41 
42 #ifdef __CINT__
43 
44 namespace std {} using namespace std;
45 namespace JLANG {} using namespace JLANG;
46 namespace JMATH {} using namespace JMATH;
47 namespace JIO {} using namespace JIO;
48 namespace JGEOMETRY2D {} using namespace JGEOMETRY2D;
49 namespace JGEOMETRY3D {} using namespace JGEOMETRY3D;
50 namespace KM3NETDAQ {} using namespace KM3NETDAQ;
51 namespace JSIRENE {} using namespace JSIRENE;
52 namespace JDETECTOR {} using namespace JDETECTOR;
53 namespace JUTC {} using namespace JUTC;
54 namespace JUTM {} using namespace JUTM;
55 namespace JTRIGGER {} using namespace JTRIGGER;
56 namespace JPHYSICS {} using namespace JPHYSICS;
57 namespace JTOOLS {} using namespace JTOOLS;
58 namespace JSUPPORT {} using namespace JSUPPORT;
59 
60 #endif
61 
62 
63 #endif
TBuffer & operator<<(const T &)
Definition: JRoot.hh:26
Definition: JRoot.hh:19
bool IsReading()
Definition: JRoot.hh:23
Definition: JRoot.hh:21
do set_variable OUTPUT_DIRECTORY $WORKDIR T
TBuffer & operator>>(T &)
Definition: JRoot.hh:29