dds-fmu 0.5.1
DDS-FMU communication integration
auxiliaries.hpp
1#pragma once
2
3/*
4 Copyright 2023, SINTEF Ocean
5 This Source Code Form is subject to the terms of the Mozilla Public
6 License, v. 2.0. If a copy of the MPL was not distributed with this
7 file, You can obtain one at http://mozilla.org/MPL/2.0/.
8*/
9
10#include <filesystem>
11#include <string>
12#include <vector>
13
14#include <xtypes/idl/idl.hpp>
15
19namespace ddsfmu {
20
24namespace config {
25
26
40std::string generate_uuid(
41 const std::vector<std::filesystem::path>& uuid_files,
42 const std::vector<std::string>& strings = std::vector<std::string>());
43
55std::vector<std::filesystem::path> get_uuid_files(
56 const std::filesystem::path& fmu_root, bool skip_modelDescription = true);
57
58
71eprosima::xtypes::idl::Context load_fmu_idls(
72 const std::filesystem::path& resource_path, bool print = false,
73 const std::string& main_idl = "dds-fmu.idl");
74
75}
76}
eprosima::xtypes::idl::Context load_fmu_idls(const std::filesystem::path &resource_path, bool print, const std::string &main_idl)
Load idl file and parse into xtypes context.
Definition: auxiliaries.cpp:90
std::vector< std::filesystem::path > get_uuid_files(const std::filesystem::path &fmu_root, bool skip_modelDescription)
Given FMU root, returns a list of file paths to be used to generate uuid.
Definition: auxiliaries.cpp:64
std::string generate_uuid(const std::vector< std::filesystem::path > &uuid_files, const std::vector< std::string > &strings)
Creates a uuid from a list of files and list of strings.
Definition: auxiliaries.cpp:31
Definition: auxiliaries.cpp:26