Jpp
software
JROOT
JClassStreamer.hh
Go to the documentation of this file.
1
#ifndef __JROOT__JCLASSSTREAMER__
2
#define __JROOT__JCLASSSTREAMER__
3
4
#include "TObject.h"
5
6
#ifndef __CINT__
7
#include "
JROOT/JRootDictionary.hh
"
8
#endif
9
10
/**
11
* \author mdejong
12
*/
13
14
namespace
JROOT
{}
15
namespace
JPP
{
using namespace
JROOT
; }
16
17
namespace
JROOT
{
18
19
20
/**
21
* Auxiliary class to add the I/O capabilities of the given template class to the general JRootDictionary class.
22
*/
23
template
<
class
T>
24
struct
JClassStreamer
25
{
26
#ifdef __CINT__
27
/**
28
* This type definition is needed for compatibility with cint.
29
*/
30
typedef
TObject
JObject
;
31
#else
32
/**
33
* This class adds the I/O capabilities of the given template class to the general JRootDictionary class.
34
*/
35
struct
JObject
:
36
public
TObject
37
{
38
JObject
()
39
{
40
JRootDictionary::getInstance
().add<T>();
41
}
42
};
43
#endif
44
};
45
}
46
47
#endif
JROOT::JClassStreamer
Auxiliary class to add the I/O capabilities of the given template class to the general JRootDictionar...
Definition:
JClassStreamer.hh:24
TObject
Definition:
JRoot.hh:19
JROOT
Auxiliary classes and methods for ROOT I/O.
Definition:
JAbstractStreamer.hh:13
JROOT::JClassStreamer::JObject
This class adds the I/O capabilities of the given template class to the general JRootDictionary class...
Definition:
JClassStreamer.hh:35
JROOT::JClassStreamer::JObject::JObject
JObject()
Definition:
JClassStreamer.hh:38
JLANG::JSingleton::getInstance
static data_type & getInstance()
Get unique instance of template class.
Definition:
JSingleton.hh:27
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JRootDictionary.hh
Generated by
1.8.16