|
| DataMapper ()=default |
|
| DataMapper (const DataMapper &)=delete |
| Copy constructor. More...
|
|
DataMapper & | operator= (const DataMapper &)=delete |
| Copy assignment. More...
|
|
void | reset (const std::filesystem::path &fmu_resources) |
| Clears and repopulates internal data structures. More...
|
|
void | set_double (const std::int32_t value_ref, const double &value) |
|
void | get_double (const std::int32_t value_ref, double &value) const |
|
void | set_int (const std::int32_t value_ref, const std::int32_t &value) |
|
void | get_int (const std::int32_t value_ref, std::int32_t &value) const |
|
void | set_bool (const std::int32_t value_ref, const bool &value) |
|
void | get_bool (const std::int32_t value_ref, bool &value) const |
|
void | set_string (const std::int32_t value_ref, const std::string &value) |
|
void | get_string (const std::int32_t value_ref, std::string &value) const |
|
eprosima::xtypes::DynamicData & | data_ref (const std::string &topic, Direction read_write_param) |
|
const eprosima::xtypes::DynamicData & | data_ref (const std::string &topic, Direction read_write_param) const |
|
eprosima::xtypes::idl::Context & | idl_context () |
|
IndexOffsets | index_offsets (const std::string &topic, Direction read_write_param) const |
|
void | queue_for_key_parameter (const std::string &topic_name, const std::string &topic_type) |
|
void | process_key_queue () |
|
Types defined in IDL is mapped onto four FMU types, namely: Real, Integer, Boolean and String. Integer types with more than 32 bits are mapped to Real. The primitive types: uint32_t, int64_t, and uint64_t are all mapped to Real. Enumerations are mapped to Integer. All data are stored in xtypes::DynamicData. Each data member of DynamicData is directly written to or read from using visitor functions, which use references. The visitor functions are called from specialized setters and getters:
set_double(), get_double(), set_int(), get_int(), set_bool(), get_bool(), set_string(), get_string()