![]() |
The Gaudi Framework
v37r0 (b608885e)
|
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 More... | |
| bool | operator== (void *ent) |
| operator== for comparison with raw pointer More... | |
| bool | operator== (Entity const &ent) |
| operator== for comparison with an entity More... | |
| void * | id () const |
| unique identifier, actually mapped to internal pointer More... | |
Public Attributes | |
| std::string | component |
| name of the component owning the Entity More... | |
| std::string | name |
| name of the entity More... | |
| std::string | type |
| type of the entity, see comment above concerning its format and usage More... | |
Private Attributes | |
| void * | m_ptr { nullptr } |
| pointer to the actual data inside this Entity More... | |
| std::type_index(* | m_typeIndex )(const void *) |
| function to get internal type. More... | |
| nlohmann::json(* | m_getJSON )(Entity const &) |
| function converting the internal data to json. More... | |
| void(* | m_reset )(Entity &) |
| function reseting internal data. More... | |
| void(* | m_mergeAndReset )(Entity &, Entity &) |
| function calling merge and reset on internal data with the internal data of another entity More... | |
Friends | |
| void | to_json (nlohmann::json &j, Gaudi::Monitoring::Hub::Entity const &e) |
| conversion to json via nlohmann library More... | |
| void | reset (Entity &e) |
| function resetting internal data More... | |
| void | mergeAndReset (Entity &ent, Entity &other) |
| function calling merge and reset on internal data with the internal data of another entity More... | |
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 100 of file MonitoringHub.h.
|
inline |
Definition at line 103 of file MonitoringHub.h.
|
inline |
unique identifier, actually mapped to internal pointer
Definition at line 146 of file MonitoringHub.h.
|
inline |
|
inline |
|
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 134 of file MonitoringHub.h.
|
friend |
function resetting internal data
Definition at line 127 of file MonitoringHub.h.
|
friend |
| std::string Gaudi::Monitoring::Hub::Entity::component |
name of the component owning the Entity
Definition at line 117 of file MonitoringHub.h.
|
private |
function converting the internal data to json.
Definition at line 157 of file MonitoringHub.h.
function calling merge and reset on internal data with the internal data of another entity
Definition at line 161 of file MonitoringHub.h.
|
private |
pointer to the actual data inside this Entity
Definition at line 150 of file MonitoringHub.h.
|
private |
function reseting internal data.
Definition at line 159 of file MonitoringHub.h.
|
private |
function to get internal type.
Definition at line 155 of file MonitoringHub.h.
| std::string Gaudi::Monitoring::Hub::Entity::name |
name of the entity
Definition at line 119 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 121 of file MonitoringHub.h.