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