LDMX Software
Framework
include
Framework
Performance
Callback.h
1
#ifndef FRAMEWORK_PERFORMANCE_CALLBACK
2
#define FRAMEWORK_PERFORMANCE_CALLBACK
3
4
#include <string>
5
6
namespace
framework::performance {
7
15
enum class
Callback {
16
onProcessStart = 0,
17
onProcessEnd = 1,
18
onFileOpen = 2,
19
onFileClose = 3,
20
beforeNewRun = 4,
21
onNewRun = 5,
22
process = 6
23
};
24
28
constexpr
std::size_t to_index(Callback c) {
29
return
static_cast<
std::size_t
>
(c);
30
}
31
35
std::string to_name(Callback c);
36
37
}
// namespace framework::performance
38
39
#endif
Generated by
1.9.8