5 #ifndef JODA_DIRECTORYREGISTER_H
6 #define JODA_DIRECTORYREGISTER_H
8 #include <boost/optional.hpp>
11 #include <unordered_set>
13 namespace fs = std::filesystem;
82 boost::optional<std::string>
getTMPDir(
const std::string& name);
92 bool createDir(
const fs::path& dir,
bool checkExisting =
false);
94 std::unordered_set<std::string>
dirs{};
Definition: DirectoryRegister.h:20
Definition: DirectoryRegister.h:26
bool removeDirectory(const std::string &dir)
Definition: DirectoryRegister.cpp:74
bool removeDir(const fs::path &dir)
Definition: DirectoryRegister.cpp:80
virtual ~DirectoryRegister()
Definition: DirectoryRegister.cpp:9
bool registerDirectory(const std::string &dir, bool checkDuplicate)
Definition: DirectoryRegister.cpp:52
std::string getUniqueDir()
Definition: DirectoryRegister.cpp:93
void operator=(DirectoryRegister const &)=delete
DirectoryRegister(DirectoryRegister const &)=delete
boost::optional< std::string > getTMPDir(const std::string &name)
Definition: DirectoryRegister.cpp:98
std::unordered_set< std::string > dirs
Definition: DirectoryRegister.h:94
bool createDir(const fs::path &dir, bool checkExisting=false)
Definition: DirectoryRegister.cpp:34
std::mutex mut
Definition: DirectoryRegister.h:96
static DirectoryRegister & getInstance()
Definition: DirectoryRegister.h:28
unsigned long currID
Definition: DirectoryRegister.h:95
Definition: DirectoryFileScanner.h:10