8 #include <boost/filesystem/path.hpp> 9 #include <boost/filesystem/operations.hpp> 11 #include "fwMemory/FileHolder.hpp" 18 FileAutoDelete(const ::boost::filesystem::path &file) : m_path(file)
24 if(!m_path.empty() && ::boost::filesystem::is_regular_file(m_path))
26 ::boost::system::error_code ec;
27 ::boost::filesystem::remove(m_path, ec);
28 OSLM_ERROR_IF(
"file remove failed : " << ec.message(), ec.value()!=0);
32 ::boost::filesystem::path m_path;
38 FileHolder::FileHolder(const ::boost::filesystem::path &file,
bool autodelete) :
43 m_autoDelete = std::make_shared< FileAutoDelete >( file );
The namespace fwMemory contains tools to manage memory. Use for dump.
This file defines SpyLog macros. These macros are used to log messages to a file or to the console du...
#define OSLM_ERROR_IF(message, cond)