![]() |
The Gaudi Framework
v41r0 (bdbe7744)
|
Wrapper class for arbitrary monitoring objects. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/MonitoringHub.h>

Public Member Functions | |
| template<typename T> | |
| Entity (std::string component, std::string name, std::string type, T &ent) | |
| std::type_index | typeIndex () const |
| function to get internal type | |
| bool | operator== (Entity const &ent) const |
| operator== for comparison with an entity | |
| void * | id () const |
| unique identifier, actually mapped to internal pointer | |
Public Attributes | |
| std::string | component |
| name of the component owning the Entity | |
| std::string | name |
| name of the entity | |
| std::string | type |
| type of the entity, see comment above concerning its format and usage | |
Private Attributes | |
| void * | m_ptr { nullptr } |
| pointer to the actual data inside this Entity | |
| std::type_index | m_typeIndex |
| nlohmann::json(* | m_getJSON )(void const *) |
| function converting the internal data to json. | |
| void(* | m_reset )(void *) |
| function reseting internal data. | |
| void(* | m_mergeAndReset )(void *, void *) |
| function calling merge and reset on internal data with the internal data of another entity | |
Friends | |
| void | to_json (nlohmann::json &j, Gaudi::Monitoring::Hub::Entity const &e) |
| conversion to json via nlohmann library | |
| void | reset (Entity const &e) |
| function resetting internal data | |
| void | mergeAndReset (Entity const &ent, Entity const &other) |
| function calling merge and reset on internal data with the internal data of another entity | |
Wrapper class for arbitrary monitoring objects.
Mainly contains a pointer to the actual data with component, name and type metadata Any object can be used as internal data and wrapped into an Entity as long as they can be translated to json format. It is enough to make them aware to the nlohmann library through a dedicated to_json method.
another 2 free functions can be overloaded to adapt the behavior of an Entity for a given type T :
Definition at line 62 of file MonitoringHub.h.
|
inline |
Definition at line 65 of file MonitoringHub.h.
|
inline |
unique identifier, actually mapped to internal pointer
Definition at line 110 of file MonitoringHub.h.
|
inline |
operator== for comparison with an entity
Definition at line 108 of file MonitoringHub.h.
|
inline |
function calling merge and reset on internal data with the internal data of another entity
This function does not protect against usage with entities with different internal types The user should ensure that entities are compatible before calling this function
Definition at line 100 of file MonitoringHub.h.
|
friend |
function resetting internal data
Definition at line 93 of file MonitoringHub.h.
|
friend |
conversion to json via nlohmann library
Definition at line 89 of file MonitoringHub.h.
| std::string Gaudi::Monitoring::Hub::Entity::component |
name of the component owning the Entity
Definition at line 81 of file MonitoringHub.h.
|
private |
function converting the internal data to json.
Definition at line 120 of file MonitoringHub.h.
|
private |
function calling merge and reset on internal data with the internal data of another entity
Definition at line 124 of file MonitoringHub.h.
|
private |
pointer to the actual data inside this Entity
Definition at line 114 of file MonitoringHub.h.
|
private |
function reseting internal data.
Definition at line 122 of file MonitoringHub.h.
|
private |
Definition at line 118 of file MonitoringHub.h.
| std::string Gaudi::Monitoring::Hub::Entity::name |
name of the entity
Definition at line 83 of file MonitoringHub.h.
| std::string Gaudi::Monitoring::Hub::Entity::type |
type of the entity, see comment above concerning its format and usage
Definition at line 85 of file MonitoringHub.h.