Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JRootLabel.hh
Go to the documentation of this file.
1#ifndef __JROOTLABEL__
2#define __JROOTLABEL__
3
4
5/**
6 * \author mdejong
7 */
8
9namespace JROOT {}
10namespace JPP { using namespace JROOT; }
11
12namespace 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
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for ROOT I/O.
Replica of structure JLANG::JLabel for data types with ROOT I/O.
Definition JRootLabel.hh:20
static const char * getName()
Get name of type.
Definition JRootLabel.hh:31
static int getVersion()
Version.
Definition JRootLabel.hh:40