Metadata of the histogram.
More...
#include <Histogram.h>
|
| using | Flags_t = std::underlying_type_t<EHistFlag> |
| |
|
| | HistogramMetadata ()=default |
| | Default constructor.
|
| |
| | HistogramMetadata (const std::string &msg) |
| | Constructor from the metadata string representation.
|
| |
| | ~HistogramMetadata ()=default |
| | Destructor.
|
| |
| bool | CheckFlags () const |
| | Checks if the histogram flags configuration is valid.
|
| |
| bool | GetFlag (EHistFlag key) const |
| | Get flag.
|
| |
| void | SetFlag (EHistFlag key, bool flag=true) |
| | Get flag.
|
| |
| std::string | ToString () const |
| | Converts the metadata to a string.
|
| |
|
| static std::pair< std::string, std::string > | SeparateNameAndMetadata (const std::string &msg) |
| | Separates a name and metadata of histogram.
|
| |
|
| static constexpr std::string_view | ksTsIdSuffix = "_ts_id" |
| | Suffix of additional histograms vs. TS index.
|
| |
|
| template<class Archive> |
| void | serialize (Archive &ar, const unsigned int) |
| | Serialization rule.
|
| |
Metadata of the histogram.
- Note
- To be sent with a configuration to the histogram server
Definition at line 65 of file Histogram.h.
◆ Flags_t
◆ HistogramMetadata() [1/2]
| cbm::algo::qa::HistogramMetadata::HistogramMetadata |
( |
| ) |
|
|
default |
◆ HistogramMetadata() [2/2]
| cbm::algo::qa::HistogramMetadata::HistogramMetadata |
( |
const std::string & | msg | ) |
|
|
inlineexplicit |
Constructor from the metadata string representation.
- Parameters
-
| msg | Metadata string representation |
Definition at line 76 of file Histogram.h.
◆ ~HistogramMetadata()
| cbm::algo::qa::HistogramMetadata::~HistogramMetadata |
( |
| ) |
|
|
default |
◆ CheckFlags()
| bool cbm::algo::qa::HistogramMetadata::CheckFlags |
( |
| ) |
const |
|
inline |
Checks if the histogram flags configuration is valid.
- Returns
- Is valid
Definition at line 88 of file Histogram.h.
◆ GetFlag()
| bool cbm::algo::qa::HistogramMetadata::GetFlag |
( |
EHistFlag | key | ) |
const |
|
inline |
Get flag.
- Parameters
-
| key | Flag key from the EHistFlag enumeration |
Definition at line 96 of file Histogram.h.
◆ SeparateNameAndMetadata()
| static std::pair< std::string, std::string > cbm::algo::qa::HistogramMetadata::SeparateNameAndMetadata |
( |
const std::string & | msg | ) |
|
|
inlinestatic |
◆ serialize()
template<class Archive>
| void cbm::algo::qa::HistogramMetadata::serialize |
( |
Archive & | ar, |
|
|
const unsigned int | ) |
|
inlineprivate |
◆ SetFlag()
| void cbm::algo::qa::HistogramMetadata::SetFlag |
( |
EHistFlag | key, |
|
|
bool | flag = true ) |
|
inline |
Get flag.
- Parameters
-
| key | Flag key from the EHistFlag enumeration |
| flag | Flag value |
Definition at line 101 of file Histogram.h.
◆ ToString()
| std::string cbm::algo::qa::HistogramMetadata::ToString |
( |
| ) |
const |
|
inline |
Converts the metadata to a string.
Current implementation of the metadata string: <flags> Future implementation with additional fields: <flags>;<...>;<...>;...;<...>
Definition at line 110 of file Histogram.h.
◆ boost::serialization::access
| friend class boost::serialization::access |
|
friend |
◆ fFlags
| Flags_t cbm::algo::qa::HistogramMetadata::fFlags {} |
|
private |
Flags collection for the histogram.
Definition at line 134 of file Histogram.h.
◆ ksTsIdSuffix
| std::string_view cbm::algo::qa::HistogramMetadata::ksTsIdSuffix = "_ts_id" |
|
staticconstexpr |
The documentation for this class was generated from the following file: