CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
23 #include <unordered_set>
26 namespace catapult {
namespace utils {
std::string GetIniPropertyName(const char *cppVariableName)
Gets the ini property name corresponding to the cpp variable name (cppVariableName).
Definition: utils/ConfigurationUtils.cpp:26
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
ConfigurationBag ExtractSectionAsBag(const ConfigurationBag &bag, const char *section)
Extracts all section properties from bag into a new bag with a single section with a default (empty s...
Definition: utils/ConfigurationUtils.cpp:43
A simple bag of properties.
Definition: ConfigurationBag.h:57
A configuration key.
Definition: ConfigurationBag.h:44
T get(const ConfigurationKey &key) const
Gets the property identified by key from this bag.
Definition: ConfigurationBag.h:130
void LoadIniProperty(const ConfigurationBag &bag, const char *section, const char *cppVariableName, T &value)
Definition: utils/ConfigurationUtils.h:34
Definition: AddressExtractionExtension.cpp:28
std::pair< std::unordered_set< std::string >, size_t > ExtractSectionAsUnorderedSet(const ConfigurationBag &bag, const char *section)
Definition: utils/ConfigurationUtils.cpp:49