Skip to main content

AVxcelerate Simulation Framework 2026 R1 SP01

File fmu_config.h

Last update: 22.04.2026

Location: core/lifecycle/fmu_activity/fmu_config.h

Classes

Namespaces

Includes

  • core/export/simfwk_core_export.h

Included by

Source



#ifndef SIMFWK_CORE_LIFECYCLE_FMUACTIVITY_FMUCONFIG_H
#define SIMFWK_CORE_LIFECYCLE_FMUACTIVITY_FMUCONFIG_H

#include "core/export/simfwk_core_export.h"
#include <cstdint>
#include <map>
#include <set>
#include <string>
#include <variant>
#include <vector>

namespace simulation_framework
{
namespace core
{
namespace lifecycle
{

using FmuInOutType = std::variant<bool, int, double, std::string, std::vector<uint8_t>>;
using FmuInOutMap = std::map<std::string, FmuInOutType>;
using FmuTopicToVarNames = std::map<std::string, std::set<std::string>>;
using FmuTopicToVarMap = std::map<std::string, FmuInOutMap>;
using FmuMessageToVarNames = std::map<std::string, std::string>;
using FmuVarToMessageNames = std::map<std::string, std::string>;

struct SIMFWK_CORE_API FmuConfig
{
    enum class MessageType
    {
        kFmuMessage,
        kGenericBytesMessage
    };

    std::string path;

    FmuTopicToVarNames topics_to_inputs{};

    FmuTopicToVarNames topics_to_init_params{};

    FmuTopicToVarNames topics_to_outputs{};

    FmuMessageToVarNames message_to_var_name{};

    FmuVarToMessageNames var_to_message_name{};

    std::map<std::string, MessageType> topic_to_message_type{};
};

}  // namespace lifecycle
}  // namespace core
}  // namespace simulation_framework

#endif  // SIMFWK_CORE_LIFECYCLE_FMUACTIVITY_FMUCONFIG_H

Connect with Ansys