Auxiliary class to handle version management of given class at opening of a ROOT file.
More...
#include <JRootSupportkit.hh>
|
| static void | execute (TFile *file) |
| | Execute action.
|
| |
|
| static const bool | has_method = JTEST(test<T>(NULL)) |
| | true if class has policy method actionAtFileOpen; else false
|
| |
|
| template<class U > |
| static JTrue | test (JTypecheck< void(*)(int), &U::actionAtFileOpen > *) |
| |
| static void | execute (TFile *file, std::true_type option) |
| | Execute action.
|
| |
| static void | execute (TFile *file, std::false_type option) |
| | Execute action.
|
| |
| static JFalse | test (...) |
| | default false
|
| |
template<class T>
class JROOT::JActionAtFileOpen< T >
Auxiliary class to handle version management of given class at opening of a ROOT file.
Definition at line 32 of file JRootSupportkit.hh.
◆ test() [1/2]
template<class T >
template<class U >
◆ execute() [1/3]
Execute action.
This implementation transfers the action to the given class.
- Parameters
-
| file | pointer to file |
| option | true |
Definition at line 48 of file JRootSupportkit.hh.
49 {
51 }
int getStreamerVersion(TFile *file, const char *const name)
Get ROOT streamer version of class with given name.
◆ execute() [2/3]
Execute action.
This implementation does nothing.
- Parameters
-
| file | pointer to file |
| option | false |
Definition at line 62 of file JRootSupportkit.hh.
◆ execute() [3/3]
Execute action.
- Parameters
-
Definition at line 75 of file JRootSupportkit.hh.
76 {
77 execute(file, std::bool_constant<has_method>());
78 }
static void execute(TFile *file, std::true_type option)
Execute action.
◆ test() [2/2]
template<class T >
| static JFalse JLANG::JTest::test |
( |
| ... | ) |
|
|
staticprivate |
◆ has_method
true if class has policy method actionAtFileOpen; else false
Definition at line 67 of file JRootSupportkit.hh.
The documentation for this class was generated from the following file: