Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::ResourceProfilingAttributes Class Reference

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, ValueAttributesContainer
 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 AttributesContainergetAttributesContainer () const
 Gets the attributes container. More...
 

Detailed Description

Container for resource profiling attributes.

Each resource profiling attribute has a unique name.

Member Typedef Documentation

◆ Value

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

Attribute value type.

◆ AttributeName

Attribute name type.

◆ AttributesContainer

Attributes container indexed with attribute name.

Member Function Documentation

◆ getAttributesContainer()

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

Gets the attributes container.

Returns
The attribute values container.

◆ appendAttribute()

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: