OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment.
Loading...
Searching...
No Matches
OMSFileSystem.h
Go to the documentation of this file.
1#ifndef _OMS_FILESYSTEM_H_
2#define _OMS_FILESYSTEM_H_
3
4#include <filesystem>
5namespace filesystem = std::filesystem;
6
7
8#define OMS_RECURSIVE_DIRECTORY_ITERATOR(path) (filesystem::recursive_directory_iterator{path})
9
10filesystem::path naive_uncomplete(const filesystem::path& path, const filesystem::path& base);
11filesystem::path oms_unique_path(const std::string& prefix);
12void oms_copy_file(const filesystem::path& from, const filesystem::path& to);
13filesystem::path oms_canonical(const filesystem::path& p);
14filesystem::path oms_absolute(const filesystem::path& p);
15filesystem::path oms_temp_directory_path(void);
16
17#endif
void oms_copy_file(const filesystem::path &from, const filesystem::path &to)
Definition OMSFileSystem.cpp:89
filesystem::path naive_uncomplete(const filesystem::path &path, const filesystem::path &base)
Definition OMSFileSystem.cpp:46
filesystem::path oms_temp_directory_path(void)
Definition OMSFileSystem.cpp:122
filesystem::path oms_unique_path(const std::string &prefix)
Definition OMSFileSystem.cpp:77
filesystem::path oms_canonical(const filesystem::path &p)
Definition OMSFileSystem.cpp:103
filesystem::path oms_absolute(const filesystem::path &p)
Definition OMSFileSystem.cpp:117