14#include <rapidxml/rapidxml.hpp>
15#include <xtypes/idl/idl.hpp>
31void name_generator(std::string& name,
const eprosima::xtypes::DynamicData::ReadableNode& rnode);
45std::string
print_xml(
const rapidxml::xml_document<>& doc);
59 rapidxml::xml_document<>& doc,
const std::filesystem::path& template_xml,
60 std::vector<char>& buffer);
73 rapidxml::xml_document<>& doc,
const std::filesystem::path& ddsfmu_mapping,
74 std::vector<char>& buffer);
86 const rapidxml::xml_document<>& doc,
const std::filesystem::path& fmu_root);
100 rapidxml::xml_document<>& doc, rapidxml::xml_node<>* model_variables_node,
101 const std::string& name,
const std::string& causality,
const std::uint32_t& value_ref,
115 rapidxml::xml_document<>& doc, rapidxml::xml_node<>* root,
const std::uint32_t& num_outputs);
void write_model_description(const rapidxml::xml_document<> &doc, const std::filesystem::path &fmu_root)
Writes contents of xml document to modelDescription.xml.
Definition: model-descriptor.cpp:76
void model_structure_outputs_generator(rapidxml::xml_document<> &doc, rapidxml::xml_node<> *root, const std::uint32_t &num_outputs)
Create <Outputs> tag with necessary <Unknown>
Definition: model-descriptor.cpp:190
ScalarVariableType
Primitive type kinds in FMI.
Definition: model-descriptor.hpp:36
void load_template_xml(rapidxml::xml_document<> &doc, const std::filesystem::path &template_xml, std::vector< char > &buffer)
Loads template modelDescription.xml.
Definition: model-descriptor.cpp:29
void model_variable_generator(rapidxml::xml_document<> &doc, rapidxml::xml_node<> *parent, const std::string &name, const std::string &causality, const std::uint32_t &value_ref, const ddsfmu::config::ScalarVariableType &type)
Constructs a <ScalarVariable> tag to be used in <ModelVariables> of the modelDescription....
Definition: model-descriptor.cpp:125
std::string print_xml(const rapidxml::xml_document<> &doc)
Prints xml document as string.
Definition: model-descriptor.cpp:21
void name_generator(std::string &name, const eprosima::xtypes::DynamicData::ReadableNode &rnode)
Finds structured name for a given node.
Definition: model-descriptor.cpp:87
void load_ddsfmu_mapping(rapidxml::xml_document<> &doc, const std::filesystem::path &ddsfmu_mapping, std::vector< char > &buffer)
Loads mapping between dds topics and fmu signal references ddsfmu_mapping.
Definition: model-descriptor.cpp:61
Definition: auxiliaries.cpp:26