#include <statisticservice.h>
|
| void | registerStatistic (BuildId buildId, const std::string &sName, Any::Type type, const StatisticProperties &properties, const std::string &sDescription, Statistic *pStatistic) |
| |
| void | registerTable (BuildId buildId, const std::string &sName, const StatisticProperties &properties, const std::string &sDescription, StatisticTablePublisher *pStatisticTablePublisher, std::function< void(StatisticTablePublisher *)> clearFunc) |
| |
| std::map< std::string, EMANE::Any > | queryStatistic (BuildId, const std::vector< std::string > &names) const |
| |
| void | clearStatistic (BuildId, const std::vector< std::string > &names) const |
| |
| std::map< std::string, std::pair< StatisticTableLabels, StatisticTableValues > > | queryTable (BuildId, const std::vector< std::string > &names) const |
| |
| void | clearTable (BuildId, const std::vector< std::string > &names) const |
| |
| StatisticManifest | getStatisticManifest (BuildId id) const |
| |
| StatisticTableManifest | getTableManifest (BuildId id) const |
| |
Definition at line 56 of file statisticservice.h.
◆ StatisticService()
| EMANE::StatisticService::StatisticService |
( |
| ) |
|
|
protecteddefault |
◆ clearStatistic()
| void EMANE::StatisticService::clearStatistic |
( |
BuildId |
buildId, |
|
|
const std::vector< std::string > & |
names |
|
) |
| const |
◆ clearTable()
| void EMANE::StatisticService::clearTable |
( |
BuildId |
buildId, |
|
|
const std::vector< std::string > & |
names |
|
) |
| const |
◆ destroy()
Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.
Definition at line 67 of file singleton.h.
◆ getStatisticManifest()
◆ getTableManifest()
◆ instance()
Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.
- Returns
- A pointer to T
Definition at line 56 of file singleton.h.
◆ queryStatistic()
| std::map< std::string, EMANE::Any > EMANE::StatisticService::queryStatistic |
( |
BuildId |
buildId, |
|
|
const std::vector< std::string > & |
names |
|
) |
| const |
◆ queryTable()
◆ registerStatistic()
Register a statistic and take ownership
- Parameters
-
| buildId | Build Id of the registering component |
| sName | Name of the statistic |
| type | Any type of the statistic |
| properties | Statistic properties |
| sDescription | Statistic description |
| pStatistic | Pointer to the statistic |
- Exceptions
-
Definition at line 38 of file statisticservice.cc.
◆ registerTable()
Register a statistic table and take ownership
- Parameters
-
| buildId | Build Id of the registering component |
| sName | Name of the statistic table |
| properties | Statistic properties |
| sDescription | Statistic table description |
| pStatisticTablePublisher | Pointer to the statistic table publisher |
| clearFunc | Function object to excute as part of clear |
- Exceptions
-
Definition at line 78 of file statisticservice.cc.
The documentation for this class was generated from the following files: