Jpp
software
JROOT
JRootLabel.hh
Go to the documentation of this file.
1
#ifndef __JROOTLABEL__
2
#define __JROOTLABEL__
3
4
5
/**
6
* \author mdejong
7
*/
8
9
namespace
JROOT
{}
10
namespace
JPP
{
using namespace
JROOT
; }
11
12
namespace
JROOT
{
13
14
/**
15
* Replica of structure JLANG::JLabel for data types with ROOT I/O.
16
* The methods JRootLabel::getName and JRootLabel::getVersion defer
17
* the return value to the Class[NV]Def implementations.
18
*/
19
template
<
int
__ID,
class
T>
20
struct
JRootLabel
{
21
22
/**
23
* Type identifier.
24
*/
25
static
const
int
ID
= __ID;
26
27
28
/**
29
* Get name of type.
30
*/
31
static
inline
const
char
*
getName
()
32
{
33
return
T::Class_Name();
34
}
35
36
37
/**
38
* Version.
39
*/
40
static
inline
int
getVersion
()
41
{
42
return
T::Class_Version();
43
}
44
};
45
}
46
47
#endif
JROOT
Auxiliary classes and methods for ROOT I/O.
Definition:
JAbstractStreamer.hh:13
JROOT::JRootLabel::getName
static const char * getName()
Get name of type.
Definition:
JRootLabel.hh:31
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JROOT::JRootLabel::getVersion
static int getVersion()
Version.
Definition:
JRootLabel.hh:40
ID
Definition:
raw_data_converter.cpp:43
JROOT::JRootLabel
Replica of structure JLANG::JLabel for data types with ROOT I/O.
Definition:
JRootLabel.hh:20
Generated by
1.8.16