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>
5 namespace 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);
12 void 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
oms_copy_file
void oms_copy_file(const filesystem::path &from, const filesystem::path &to)
Definition OMSFileSystem.cpp:89
naive_uncomplete
filesystem::path naive_uncomplete(const filesystem::path &path, const filesystem::path &base)
Definition OMSFileSystem.cpp:46
oms_temp_directory_path
filesystem::path oms_temp_directory_path(void)
Definition OMSFileSystem.cpp:122
oms_unique_path
filesystem::path oms_unique_path(const std::string &prefix)
Definition OMSFileSystem.cpp:77
oms_canonical
filesystem::path oms_canonical(const filesystem::path &p)
Definition OMSFileSystem.cpp:103
oms_absolute
filesystem::path oms_absolute(const filesystem::path &p)
Definition OMSFileSystem.cpp:117