10 #ifndef CORAL_FMI_IMPORTER_HPP 11 #define CORAL_FMI_IMPORTER_HPP 17 #include <boost/filesystem.hpp> 19 #include <coral/config.h> 24 struct fmi_xml_context_t;
25 typedef fmi_xml_context_t fmi_import_context_t;
69 const boost::filesystem::path& cachePath);
82 Importer(
const boost::filesystem::path& cachePath);
117 void PrunePtrCaches();
124 boost::filesystem::path m_fmuDir;
125 boost::filesystem::path m_workDir;
133 #endif // header guard
void CleanCache()
Removes unused files and directories from the FMU cache.
An RAII object that creates a unique directory on construction and recursively deletes it again on de...
Definition: filesystem.hpp:27
static std::shared_ptr< Importer > Create()
Creates a new FMU importer that uses a temporary cache directory.
fmi_import_context_t * FmilibHandle() const
Returns a pointer to the underlying FMI Library import context.
Imports and caches FMUs.
Definition: importer.hpp:56
std::string LastErrorMessage()
Returns the last FMI Library error message.
Definition: variable_io.hpp:28
std::shared_ptr< FMU > Import(const boost::filesystem::path &fmuPath)
Imports and loads an FMU.