Files
WFR-lib/include/wfr/common/utils/filesystem.h
T
2017-04-11 15:49:21 +02:00

29 lines
765 B
C++
Executable File

#pragma once
/* Precompiled boost was not compiled with -std=c++11 */
#define BOOST_NO_CXX11_SCOPED_ENUMS
#include <wfr/common/wfs/ActivityInstance.h>
#include <boost/filesystem.hpp>
namespace wfr {
namespace filesystem {
boost::filesystem::path createWorkingFolder(wfr::wfs::ActivityInstance& instance);
boost::filesystem::path createWorkingFolder(std::string name);
boost::filesystem::path createFolder(wfr::wfs::ActivityInstance& instance, boost::filesystem::path pdir, std::string fname);
void copy_file(const boost::filesystem::path& from, const boost::filesystem::path& to,
boost::filesystem::copy_option::enum_type option = boost::filesystem::copy_option::enum_type::overwrite_if_exists);
} // end namespace filesystem
} // end namespace wfr