kanzi::ResourceProfilingAttributes Class Reference

Container for resource profiling attributes. More...

#include <kanzi/core.ui/resource/resource_profiling_attributes.hpp>

Public Types

typedef variant< monostate, bool, uint64_t, string > Value
 Attribute value type. More...
 
typedef string AttributeName
 Attribute name type. More...
 
typedef map< AttributeName, ValueAttributesContainer
 Attributes container indexed with attribute name. More...
 

Public Member Functions

const AttributesContainergetAttributesContainer () const
 Gets the attributes container. More...
 
void appendAttribute (string_view name, const Value &value)
 Appends a new attribute. More...
 

Detailed Description

Container for resource profiling attributes.

Each resource profiling attribute has a unique name.

Member Typedef Documentation

typedef variant<monostate, bool, uint64_t, string> kanzi::ResourceProfilingAttributes::Value

Attribute value type.

Attribute name type.

Attributes container indexed with attribute name.

Member Function Documentation

const AttributesContainer& kanzi::ResourceProfilingAttributes::getAttributesContainer ( ) const
inline

Gets the attributes container.

Returns
The attribute values container.
void kanzi::ResourceProfilingAttributes::appendAttribute ( string_view  name,
const Value value 
)

Appends a new attribute.

Note
This function throws an exception if an attribute with name already exists.
Parameters
nameThe name of the new attribute.
valueThe value of the new attribute.

The documentation for this class was generated from the following file: