CatapultServer  v0.5.0.1 (Elephant)
extensions/ConfigurationUtils.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace config { struct NodeConfiguration; } }
25 
26 namespace catapult { namespace extensions {
27 
29  cache::MemoryCacheOptions GetUtCacheOptions(const config::NodeConfiguration& config);
30 }}
catapult::utils::GetIniPropertyName
std::string GetIniPropertyName(const char *cppVariableName)
Gets the ini property name corresponding to the cpp variable name (cppVariableName).
Definition: utils/ConfigurationUtils.cpp:26
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::FileSize::bytes
constexpr uint64_t bytes() const
Returns the number of bytes.
Definition: FileSize.h:67
catapult::utils::ExtractSectionAsOrderedVector
std::pair< std::vector< std::string >, size_t > ExtractSectionAsOrderedVector(const ConfigurationBag &bag, const char *section)
Definition: utils/ConfigurationUtils.cpp:54
catapult::config::NodeConfiguration::UnconfirmedTransactionsCacheMaxResponseSize
utils::FileSize UnconfirmedTransactionsCacheMaxResponseSize
Maximum size of an unconfirmed transactions response.
Definition: NodeConfiguration.h:85
catapult::config::NodeConfiguration
Node configuration settings.
Definition: NodeConfiguration.h:33
catapult::utils::ExtractSectionAsBag
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
catapult::utils::ConfigurationBag
A simple bag of properties.
Definition: ConfigurationBag.h:57
catapult::utils::ConfigurationBag::ValuesContainer
std::unordered_map< std::string, OrderedKeyValueMap< std::string > > ValuesContainer
Underlying container that a configuration bag is created around.
Definition: ConfigurationBag.h:68
NodeConfiguration.h
MemoryUtCache.h
CATAPULT_THROW_INVALID_ARGUMENT_1
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
ConfigurationUtils.h
catapult::config::NodeConfiguration::UnconfirmedTransactionsCacheMaxSize
uint32_t UnconfirmedTransactionsCacheMaxSize
Maximum size of the unconfirmed transactions cache.
Definition: NodeConfiguration.h:88
catapult::extensions::GetUtCacheOptions
cache::MemoryCacheOptions GetUtCacheOptions(const config::NodeConfiguration &config)
Extracts unconfirmed transactions cache options from config.
Definition: extensions/ConfigurationUtils.cpp:26
CATAPULT_THROW_INVALID_ARGUMENT
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::cache::MemoryCacheOptions
Options for customizing the behavior of a memory based cache.
Definition: MemoryCacheOptions.h:27
catapult::utils::ConfigurationBag::getAllOrdered
OrderedKeyValueMap< T > getAllOrdered(const char *section) const
Gets all section properties from this bag preserving source order.
Definition: ConfigurationBag.h:154
catapult::utils::ConfigurationBag::size
size_t size() const
Returns the number of properties in this bag.
Definition: ConfigurationBag.h:84
catapult::utils::ExtractSectionAsUnorderedSet
std::pair< std::unordered_set< std::string >, size_t > ExtractSectionAsUnorderedSet(const ConfigurationBag &bag, const char *section)
Definition: utils/ConfigurationUtils.cpp:49
ConfigurationUtils.h