Container for resource profiling attributes. More...
#include <kanzi/core.ui/resource/resource_profiling_attributes.hpp>
Public Types | |
typedef string | AttributeName |
Attribute name type. More... | |
typedef map< AttributeName, Value > | AttributesContainer |
Attributes container indexed with attribute name. More... | |
typedef variant< monostate, bool, uint64_t, string > | Value |
Attribute value type. More... | |
Public Member Functions | |
void | appendAttribute (string_view name, const Value &value) |
Appends a new attribute. More... | |
const AttributesContainer & | getAttributesContainer () const |
Gets the attributes container. More... | |
Container for resource profiling attributes.
Each resource profiling attribute has a unique name.
typedef variant<monostate, bool, uint64_t, string> kanzi::ResourceProfilingAttributes::Value |
Attribute value type.
typedef string kanzi::ResourceProfilingAttributes::AttributeName |
Attribute name type.
Attributes container indexed with attribute name.
|
inline |
Gets the attributes container.
void kanzi::ResourceProfilingAttributes::appendAttribute | ( | string_view | name, |
const Value & | value | ||
) |
Appends a new attribute.
name
already exists.name | The name of the new attribute. |
value | The value of the new attribute. |