CatapultServer  v0.5.0.1 (Elephant)
UserConfiguration.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <string>
23 
24 namespace catapult { namespace utils { class ConfigurationBag; } }
25 
26 namespace catapult { namespace config {
27 
30  public:
32  std::string BootKey;
33 
35  std::string DataDirectory;
36 
38  std::string PluginsDirectory;
39 
40  private:
41  UserConfiguration() = default;
42 
43  public:
46 
47  public:
50  };
51 }}
catapult::utils::VerifyBagSizeLte
void VerifyBagSizeLte(const ConfigurationBag &bag, size_t expectedSize)
Verifies that the number of properties in bag is no greater than expectedSize.
Definition: utils/ConfigurationUtils.cpp:38
UserConfiguration.h
catapult::config::UserConfiguration::PluginsDirectory
std::string PluginsDirectory
Plugins directory.
Definition: UserConfiguration.h:38
LOAD_STORAGE_PROPERTY
#define LOAD_STORAGE_PROPERTY(NAME)
catapult::config::UserConfiguration::DataDirectory
std::string DataDirectory
Data directory.
Definition: UserConfiguration.h:35
catapult::utils::ConfigurationBag
A simple bag of properties.
Definition: ConfigurationBag.h:57
catapult::config::UserConfiguration::LoadFromBag
static UserConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a user configuration from bag.
Definition: UserConfiguration.cpp:33
catapult::config::UserConfiguration::BootKey
std::string BootKey
Boot key.
Definition: UserConfiguration.h:32
catapult::config::UserConfiguration::Uninitialized
static UserConfiguration Uninitialized()
Creates an uninitialized user configuration.
Definition: UserConfiguration.cpp:29
ConfigurationUtils.h
ConfigurationBag.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::config::UserConfiguration::UserConfiguration
UserConfiguration()=default
catapult::config::UserConfiguration
User configuration settings.
Definition: UserConfiguration.h:29
LOAD_ACCOUNT_PROPERTY
#define LOAD_ACCOUNT_PROPERTY(NAME)