    

 ## On this page

  

 

 # kpi\_message\_converter

 Last update: 16.07.2025 

<a id="l00001" name="l00001"></a> 1 

<a id="l00005" name="l00005"></a> 5 

<a id="l00006" name="l00006"></a> 6\#pragma once

<a id="l00007" name="l00007"></a> 7 

<a id="l00008" name="l00008"></a> 8\#include "core/kpi/kpi\_message\_converter/i\_kpi\_message\_converter.h"

<a id="l00009" name="l00009"></a> 9 

<a id="l00014" name="l00014"></a> 14namespace [simulation\_framework](namespacesimulation__framework.xhtml)

<a id="l00015" name="l00015"></a> 15{

<a id="l00016" name="l00016"></a> 16namespace [core](namespacecore.xhtml)

<a id="l00017" name="l00017"></a> 17{

<a id="l00018" name="l00018"></a> 18namespace [kpi](namespacekpi.xhtml)

<a id="l00019" name="l00019"></a> 19{

<a id="l00020" name="l00020"></a> 20 

<a id="l00022" name="l00022"></a> 22 

<a id="l00027" name="l00027"></a>[ 27](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml)class [KpiMessageConverter](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml) : public [IKpiMessageConverter](classsimulation__framework_1_1core_1_1kpi_1_1IKpiMessageConverter.xhtml)

<a id="l00028" name="l00028"></a> 28{

<a id="l00029" name="l00029"></a> 29 public:

<a id="l00030" name="l00030"></a>[ 30](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml#a89ef06109941dddab49e4f134858ff9e) rtidds::KpiMessage [ConvertToDds](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml#a89ef06109941dddab49e4f134858ff9e)(const KpiMessage&amp; [kpi\_msgs](classsimulation__framework_1_1core_1_1Topic.xhtml)) override;

<a id="l00031" name="l00031"></a>[ 31](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml#a2ebb41223306f090d84657aeb770cbd8) KpiMessage [DecodeFromDds](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml#a2ebb41223306f090d84657aeb770cbd8)(const rtidds::KpiMessage&amp; [kpi\_msgs](classsimulation__framework_1_1core_1_1Topic.xhtml)) override;

<a id="l00032" name="l00032"></a> 32};



<a id="l00033" name="l00033"></a> 33 

<a id="l00034" name="l00034"></a> 34} // namespace kpi

<a id="l00035" name="l00035"></a> 35} // namespace core

<a id="l00036" name="l00036"></a> 36} // namespace simulation\_framework

[simulation\_framework::core::Topic](classsimulation__framework_1_1core_1_1Topic.xhtml)

This is the concrete Topic class that can be used for creation of a communication channel with given ...

**Definition** [topic.h:38](topic_8h_source.xhtml#l00037)



[simulation\_framework::core::kpi::IKpiMessageConverter](classsimulation__framework_1_1core_1_1kpi_1_1IKpiMessageConverter.xhtml)

Interface for converting KPI messages between different formats.

**Definition** [i\_kpi\_message\_converter.h:29](i__kpi__message__converter_8h_source.xhtml#l00028)



[simulation\_framework::core::kpi::KpiMessageConverter](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml)

class KpiMessageConverter

**Definition** [kpi\_message\_converter.h:28](kpi__message__converter_8h_source.xhtml#l00027)



[simulation\_framework::core::kpi::KpiMessageConverter::DecodeFromDds](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml#a2ebb41223306f090d84657aeb770cbd8)

KpiMessage DecodeFromDds(const rtidds::KpiMessage &amp;kpi_msgs) override

Decodes a DDS-specific message into a KpiMessage.



[simulation\_framework::core::kpi::KpiMessageConverter::ConvertToDds](classsimulation__framework_1_1core_1_1kpi_1_1KpiMessageConverter.xhtml#a89ef06109941dddab49e4f134858ff9e)

rtidds::KpiMessage ConvertToDds(const KpiMessage &amp;kpi_msgs) override

Converts a KpiMessage to a DDS-specific message format.



[core](namespacecore.xhtml)

The namespace for all core functionalities under namespace simulation_framework.



[kpi](namespacekpi.xhtml)

The namespace for kpi definition and corresponding APIs under namespace simulation_framework::evaluat...



[simulation\_framework](namespacesimulation__framework.xhtml)

The top namespace for simulation framework.