|
The Sparta Modeling Framework
|
Wrapper class to add meta information to a counter definition. More...
#include <CounterBase.hpp>
Public Member Functions | |
| CounterBehaviorDetailed (CounterBehavior behavior) | |
| Construct a CounterBehaviorDetailed without meta data. | |
| CounterBehaviorDetailed (CounterBehavior behavior, const InstrumentationNode::MetadataPairs &meta_data) | |
| Construct a CounterBehaviorDetailed without meta data. | |
| operator CounterBehavior () const | |
| Casting operator to obtain the original behavior. | |
| const InstrumentationNode::MetadataPairs & | getMetadata () const |
| Get the meta data provided by the user. | |
Wrapper class to add meta information to a counter definition.
When defining the counter's behavior, this class enables the modeler to extend that behavior with meta information. During report generation to data serialization formats (like json, yaml, or SimDB) this information is included with the counter.
Usage:
The modeler is not required to provide any meta data information. As an example, the following works as well:
Definition at line 145 of file CounterBase.hpp.
|
inline |
Construct a CounterBehaviorDetailed without meta data.
| behavior | The CounterBehavior |
Definition at line 153 of file CounterBase.hpp.
|
inline |
Construct a CounterBehaviorDetailed without meta data.
| behavior | The CounterBehavior |
| meta_data | MetadataPairs to assign {("name", "value"}} |
Definition at line 162 of file CounterBase.hpp.
|
inline |
Get the meta data provided by the user.
Definition at line 172 of file CounterBase.hpp.
|
inline |
Casting operator to obtain the original behavior.
Definition at line 169 of file CounterBase.hpp.