CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
22 #include <boost/filesystem/path.hpp>
23 #include <boost/filesystem.hpp>
25 namespace catapult {
namespace config {
38 std::string
str()
const {
43 const boost::filesystem::path&
path()
const {
48 std::string
file(
const std::string& name)
const {
102 if (!boost::filesystem::exists(directory))
103 boost::filesystem::create_directory(directory);
const boost::filesystem::path & path() const
Gets the directory path (as filesystem::path).
Definition: CatapultDataDirectory.h:43
boost::filesystem::path m_directory
Definition: CatapultDataDirectory.h:84
Catapult data directory.
Definition: CatapultDataDirectory.h:61
static CatapultDataDirectory Prepare(const boost::filesystem::path &directory)
Creates a data directory around directory.
Definition: CatapultDataDirectory.h:95
CatapultDataDirectory(const boost::filesystem::path &directory)
Creates a data directory around directory.
Definition: CatapultDataDirectory.h:64
std::string file(const std::string &name) const
Gets the path for the file with name.
Definition: CatapultDataDirectory.h:48
CatapultDirectory(const boost::filesystem::path &directory)
Creates a directory around directory.
Definition: CatapultDataDirectory.h:33
CatapultDirectory rootDir() const
Gets the root data directory.
Definition: CatapultDataDirectory.h:69
boost::filesystem::path m_directory
Definition: CatapultDataDirectory.h:53
Catapult directory.
Definition: CatapultDataDirectory.h:30
std::string str() const
Gets the directory path (as string).
Definition: CatapultDataDirectory.h:38
Catapult data directory factory that automatically creates subdirectories.
Definition: CatapultDataDirectory.h:92
CatapultDirectory dir(const std::string &name) const
Gets the directory with name.
Definition: CatapultDataDirectory.h:74
CatapultDirectory spoolDir(const std::string &name) const
Gets the spooling directory with name.
Definition: CatapultDataDirectory.h:79
Definition: AddressExtractionExtension.cpp:28
static void CreateDirectory(const boost::filesystem::path &directory)
Definition: CatapultDataDirectory.h:101