CatapultServer  v0.5.0.1 (Elephant)
ExtensionsConfiguration.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <string>
23 #include <vector>
24 
25 namespace catapult { namespace utils { class ConfigurationBag; } }
26 
27 namespace catapult { namespace config {
28 
31  public:
34  std::vector<std::string> Names;
35 
36  private:
37  ExtensionsConfiguration() = default;
38 
39  public:
42 
43  public:
46  };
47 }}
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
catapult::utils::ExtractSectionAsOrderedVector
std::pair< std::vector< std::string >, size_t > ExtractSectionAsOrderedVector(const ConfigurationBag &bag, const char *section)
Definition: utils/ConfigurationUtils.cpp:54
CATAPULT_THROW_AND_LOG_0
#define CATAPULT_THROW_AND_LOG_0(TYPE, MESSAGE)
Macro used to throw a catapult exception with zero parameters.
Definition: exceptions.h:146
catapult::utils::ConfigurationBag
A simple bag of properties.
Definition: ConfigurationBag.h:57
ExtensionsConfiguration.h
catapult::config::ExtensionsConfiguration::LoadFromBag
static ExtensionsConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads an extensions configuration from bag.
Definition: ExtensionsConfiguration.cpp:31
catapult::config::ExtensionsConfiguration::ExtensionsConfiguration
ExtensionsConfiguration()=default
catapult::config::ExtensionsConfiguration
Extensions configuration settings.
Definition: ExtensionsConfiguration.h:30
catapult::config::ExtensionsConfiguration::Names
std::vector< std::string > Names
Definition: ExtensionsConfiguration.h:34
ConfigurationUtils.h
catapult::config::ExtensionsConfiguration::Uninitialized
static ExtensionsConfiguration Uninitialized()
Creates an uninitialized extensions configuration.
Definition: ExtensionsConfiguration.cpp:27
catapult::utils::property_not_found_error
Exception class that is thrown when a required configuration property is missing.
Definition: ConfigurationBag.h:32
ConfigurationBag.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ConfigurationBag::size
size_t size() const
Returns the number of properties in this bag.
Definition: ConfigurationBag.h:84