Kanzi 3.9.10
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.
 
typedef map< AttributeName, ValueAttributesContainer
 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 AttributesContainergetAttributesContainer () const
 Gets the attributes container.
 

Detailed Description

Container for resource profiling attributes.

Each resource profiling attribute has a unique name.

Member Typedef Documentation

◆ Value

Attribute value type.

◆ AttributeName

◆ 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: