7 #ifndef __FWTOOLS_SYSTEM_HPP__ 8 #define __FWTOOLS_SYSTEM_HPP__ 12 #include <boost/filesystem/path.hpp> 14 #include "fwTools/config.hpp" 35 FWTOOLS_API
static const ::boost::filesystem::path &getTempPath() noexcept;
45 FWTOOLS_API
static const ::boost::filesystem::path getTemporaryFolder(
46 const std::string& subFolderPrefix =
"" ) noexcept;
54 FWTOOLS_API
static int tempFolderPID(const ::boost::filesystem::path &dir) noexcept;
59 FWTOOLS_API
static void cleanZombies(const ::boost::filesystem::path &dir) noexcept;
64 FWTOOLS_API
static int getPID() noexcept;
70 FWTOOLS_API
static bool isProcessRunning(
int pid) noexcept;
79 s_tempPrefix = prefix;
84 static std::string s_tempPrefix;
91 #endif // __FWTOOLS_SYSTEM_HPP__