|
enum | { COUNTER_NOT_PRESENT = 2,
COUNTER_EXISTS = 4,
COUNTER_REMOVED = 3
} |
|
enum | { COUNTER_NOT_PRESENT = 2,
COUNTER_EXISTS = 4,
COUNTER_REMOVED = 3
} |
|
typedef StatEntity | Counter |
| the actual type of counter More...
|
|
typedef Stat | CountObject |
| Ease the manipulation of counters in a way, that they behave like objects: Avoid: Counter* cnt = ...; ++(*cnt);. More...
|
|
typedef std::vector< CountObject > | Counters |
| the actual type of vectors of initialized counters More...
|
|
typedef StatEntity | Counter |
| the actual type of counter More...
|
|
typedef Stat | CountObject |
| Ease the manipulation of counters in a way, that they behave like objects: Avoid: Counter* cnt = ...; ++(*cnt);. More...
|
|
typedef std::vector< CountObject > | Counters |
| the actual type of vectors of initialized counters More...
|
|
enum | Status {
SUCCESS = 1,
NO_INTERFACE,
VERSMISMATCH,
LAST_ERROR,
SUCCESS = 1,
NO_INTERFACE,
VERSMISMATCH,
LAST_ERROR
} |
| Return status. More...
|
|
enum | Status {
SUCCESS = 1,
NO_INTERFACE,
VERSMISMATCH,
LAST_ERROR,
SUCCESS = 1,
NO_INTERFACE,
VERSMISMATCH,
LAST_ERROR
} |
| Return status. More...
|
|
using | iid = Gaudi::InterfaceId< IInterface, 0, 0 > |
| Interface ID. More...
|
|
using | ext_iids = Gaudi::interface_list< iid > |
| Extra interfaces. More...
|
|
using | iid = Gaudi::InterfaceId< IInterface, 0, 0 > |
| Interface ID. More...
|
|
using | ext_iids = Gaudi::interface_list< iid > |
| Extra interfaces. More...
|
|
|
| DeclareInterfaceID (ICounterSvc, 4, 0) |
| InterfaceID. More...
|
|
virtual Counter * | get (const std::string &group, const std::string &name) const =0 |
| Access an existing counter object. More...
|
|
virtual Counters | get (const std::string &group) const =0 |
| get all counters form the given group: More...
|
|
virtual StatusCode | create (const std::string &group, const std::string &name, longlong initial_value, Counter *&refpCounter)=0 |
| Create a new counter object. More...
|
|
virtual CountObject | create (const std::string &group, const std::string &name, longlong initial_value=0)=0 |
| If the counter object exists already, a std::runtime_error exception is thrown. More...
|
|
virtual StatusCode | remove (const std::string &group, const std::string &name)=0 |
| Remove a counter object. More...
|
|
virtual StatusCode | remove (const std::string &group)=0 |
| Remove all counters of a given group. More...
|
|
virtual StatusCode | print (const std::string &group, const std::string &name, Printout &printer) const =0 |
| Print counter value. More...
|
|
virtual StatusCode | print (const std::string &group, Printout &printer) const =0 |
| If no such counter exists the return code is COUNTER_NOT_PRESENT Note: This call is not direct access. More...
|
|
virtual StatusCode | print (const Counter *pCounter, Printout &printer) const =0 |
| Print counter value. More...
|
|
virtual StatusCode | print (const CountObject &pCounter, Printout &printer) const =0 |
| Print counter value. More...
|
|
virtual StatusCode | print (Printout &printer) const =0 |
|
virtual StatusCode | defaultPrintout (MsgStream &log, const Counter *pCounter) const =0 |
| Default Printout for counters. More...
|
|
| DeclareInterfaceID (ICounterSvc, 4, 0) |
| InterfaceID. More...
|
|
virtual Counter * | get (const std::string &group, const std::string &name) const =0 |
| Access an existing counter object. More...
|
|
virtual Counters | get (const std::string &group) const =0 |
| get all counters form the given group: More...
|
|
virtual StatusCode | create (const std::string &group, const std::string &name, longlong initial_value, Counter *&refpCounter)=0 |
| Create a new counter object. More...
|
|
virtual CountObject | create (const std::string &group, const std::string &name, longlong initial_value=0)=0 |
| If the counter object exists already, a std::runtime_error exception is thrown. More...
|
|
virtual StatusCode | remove (const std::string &group, const std::string &name)=0 |
| Remove a counter object. More...
|
|
virtual StatusCode | remove (const std::string &group)=0 |
| Remove all counters of a given group. More...
|
|
virtual StatusCode | print (const std::string &group, const std::string &name, Printout &printer) const =0 |
| Print counter value. More...
|
|
virtual StatusCode | print (const std::string &group, Printout &printer) const =0 |
| If no such counter exists the return code is COUNTER_NOT_PRESENT Note: This call is not direct access. More...
|
|
virtual StatusCode | print (const Counter *pCounter, Printout &printer) const =0 |
| Print counter value. More...
|
|
virtual StatusCode | print (const CountObject &pCounter, Printout &printer) const =0 |
| Print counter value. More...
|
|
virtual StatusCode | print (Printout &printer) const =0 |
|
virtual StatusCode | defaultPrintout (MsgStream &log, const Counter *pCounter) const =0 |
| Default Printout for counters. More...
|
|
virtual void * | i_cast (const InterfaceID &) const =0 |
| main cast function More...
|
|
virtual std::vector< std::string > | getInterfaceNames () const =0 |
| Returns a vector of strings containing the names of all the implemented interfaces. More...
|
|
virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. More...
|
|
virtual unsigned long | release ()=0 |
| Release Interface instance. More...
|
|
virtual unsigned long | refCount () const =0 |
| Current reference count. More...
|
|
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
| Set the void** to the pointer to the requested interface of the instance. More...
|
|
virtual | ~IInterface ()=default |
| Virtual destructor. More...
|
|
virtual void * | i_cast (const InterfaceID &) const =0 |
| main cast function More...
|
|
virtual std::vector< std::string > | getInterfaceNames () const =0 |
| Returns a vector of strings containing the names of all the implemented interfaces. More...
|
|
virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. More...
|
|
virtual unsigned long | release ()=0 |
| Release Interface instance. More...
|
|
virtual unsigned long | refCount () const =0 |
| Current reference count. More...
|
|
virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
| Set the void** to the pointer to the requested interface of the instance. More...
|
|
virtual | ~IInterface ()=default |
| Virtual destructor. More...
|
|
Create / access multi purpose counters.
Counter Creation:
obj++;
obj += 10;
if ( svc->create("AlgName","NumExecuted",0, m_counter).isSuccess() )
{
obj++;
}
Counter access:
if ( m_counter ) {....}
try {
obj++;
}
catch(std::invalid_argument e) {
...handle exception ...
}
- Author
- Markus Frank
-
modified by Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Version
- 3.0
Definition at line 75 of file ICounterSvc.h.