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