Default implementation of ROOT based dictionary for ASCII I/O.
More...
#include <JRootDictionary.hh>
|
| JRootDictionary () |
| Default constructor.
|
|
template<class T > |
void | add () |
| Addition of class and container classes.
|
|
template<class T > |
void | operator() (const JType< T > &type) |
| Addition of class.
|
|
template<class T > |
void | operator() (const char *const name, const JType< T > &type) |
| Addition of class.
|
|
Default implementation of ROOT based dictionary for ASCII I/O.
Definition at line 35 of file JRootDictionary.hh.
◆ data_type
◆ JRootDictionary()
JROOT::JRootDictionary::JRootDictionary |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 43 of file JRootDictionary.hh.
43 :
44 JRootDictionary_t()
45 {
47 }
void handler(JType_t &object)
Apply ROOT types handler to given object.
◆ add()
template<class T >
void JROOT::JRootDictionary::add |
( |
| ) |
|
|
inline |
Addition of class and container classes.
Definition at line 54 of file JRootDictionary.hh.
55 {
57
58 for_each<typename JTYPELIST< T, std::vector<T> >::typelist>(*this);
59 }
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
◆ operator()() [1/2]
template<class T >
void JROOT::JRootDictionary::operator() |
( |
const JType< T > & | type | ) |
|
|
inline |
Addition of class.
- Parameters
-
Definition at line 68 of file JRootDictionary.hh.
69 {
70 const TDictionary* pDictionary = TDictionary::GetDictionary(typeid(T));
71
72 if (pDictionary != NULL)
73 (*this)(pDictionary->GetName(), type);
74 else
75 THROW(JException,
"ROOT TDictionary unknown data type.");
76 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
◆ operator()() [2/2]
template<class T >
void JROOT::JRootDictionary::operator() |
( |
const char *const | name, |
|
|
const JType< T > & | type ) |
|
inline |
Addition of class.
- Parameters
-
name | data name |
type | data type |
Definition at line 86 of file JRootDictionary.hh.
87 {
88 this->insert(value_type(name, new JObjectStreamer<T>()));
89 }
◆ getInstance()
Get unique instance of template class.
- Returns
- object
Definition at line 27 of file JSingleton.hh.
28 {
30
31 return value;
32 }
The documentation for this class was generated from the following file: