Jpp  18.5.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
static const char * getName()
Get name of type.
Definition: JRootLabel.hh:31
Replica of structure JLANG::JLabel for data types with ROOT I/O.
Definition: JRootLabel.hh:20
static int getVersion()
Version.
Definition: JRootLabel.hh:40