powerd++  0.4.4
version.hpp
Go to the documentation of this file.
1 
7 #ifndef _POWERDXX_VERSION_HPP_
8 #define _POWERDXX_VERSION_HPP_
9 
10 #include "utility.hpp" /* utility::to_value() */
11 
12 #include <cstdint> /* uint64_t, uint8_t */
13 
17 namespace version {
18 
22 char const * const LOADREC_FEATURES = "usr.app.powerdxx.loadrec.features";
23 
27 typedef uint64_t flag_t;
28 
32 enum class LoadrecBits {
34 };
35 
39 namespace literals {
40 
49 constexpr flag_t operator ""_FREQ_TRACKING(unsigned long long int value) {
50  return static_cast<flag_t>(value > 0) <<
52 }
53 
54 } /* namespace literals */
55 
56 } /* namespace version */
57 
58 #endif /* _POWERDXX_VERSION_HPP_ */
version::LOADREC_FEATURES
const char *const LOADREC_FEATURES
The pseudo MIB name for the load recording feature flags.
Definition: version.hpp:22
version
Version information constants and types.
Definition: version.hpp:17
version::LoadrecBits::FREQ_TRACKING
@ FREQ_TRACKING
Record clock frequencies per frame.
utility::to_value
constexpr VT to_value(ET const op)
Casts an enum to its underlying value.
Definition: utility.hpp:85
version::LoadrecBits
LoadrecBits
Feature flags for load recordings.
Definition: version.hpp:32
utility.hpp
Implements generally useful functions.
version::flag_t
uint64_t flag_t
The data type to use for feature flags.
Definition: version.hpp:27