Go to the documentation of this file.
15 #include <nlohmann/json.hpp>
48 ,
m_reset{[](
void* ptr ) {
reinterpret_cast<T*
>( ptr )->
reset(); }}
49 ,
m_getJSON{[](
const void* ptr ) {
return reinterpret_cast<const T*
>( ptr )->
toJSON(); }} {}
90 [ent](
auto sink ) { sink->registerEntity(
std::move( ent ) ); } );
Interface reporting services must implement.
std::string name
name of the entity
bool operator==(Entity const &ent)
operator== for comparison with an entity
bool operator==(void *ent)
operator== for comparison with raw pointer
std::deque< Sink * > m_sinks
std::deque< Entity > m_entities
virtual void removeEntity(Entity const &ent)=0
virtual void registerEntity(Entity ent)=0
double * begin(CLHEP::HepVector &v)
void removeSink(Sink *sink)
void reset()
function resetting internal data
void registerEntity(std::string c, std::string n, std::string t, T &ent)
void removeEntity(T &ent)
void registerEntity(Entity ent)
json(* m_getJSON)(const void *)
function converting the internal data to json.
void * m_ptr
pointer to the actual data inside this Entity
json toJSON() const
function giving access to internal data in json format
Entity(std::string component, std::string name, std::string type, T &ent)
Central entity in a Gaudi application that manages monitoring objects (i.e.
Wrapper class for arbitrary monitoring objects.
void(* m_reset)(void *)
function reseting internal data.
std::string type
type of the entity, see comment above concerning its format and usage
std::string component
name of the component owning the Entity