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