CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace utils {
class ConfigurationBag; } }
26 namespace catapult {
namespace config {
void add(Height height, Amount amount)
Adds inflation of amount starting at height.
Definition: InflationCalculator.cpp:90
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
#define CATAPULT_THROW_AND_LOG_0(TYPE, MESSAGE)
Macro used to throw a catapult exception with zero parameters.
Definition: exceptions.h:146
#define CATAPULT_THROW_AND_LOG_2(TYPE, MESSAGE, PARAM1, PARAM2)
Macro used to throw a catapult exception with two parameters.
Definition: exceptions.h:159
static InflationConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads an inflation configuration from bag.
Definition: InflationConfiguration.cpp:43
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
Inflation configuration settings.
Definition: InflationConfiguration.h:29
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
Calculator for calculating the inflation at a given height and the total inflation up to a given heig...
Definition: InflationCalculator.h:28
static InflationConfiguration Uninitialized()
Creates an uninitialized inflation configuration.
Definition: InflationConfiguration.cpp:39
A simple bag of properties.
Definition: ConfigurationBag.h:57
model::InflationCalculator InflationCalculator
Inflation calculator.
Definition: InflationConfiguration.h:32
Exception class that is thrown when a required configuration property is missing.
Definition: ConfigurationBag.h:32
InflationConfiguration()=default
Definition: AddressExtractionExtension.cpp:28
size_t size() const
Gets the number of inflation entries.
Definition: InflationCalculator.cpp:26
bool TryParseValue(const std::string &str, LogLevel &parsedValue)
Tries to parse str into a log level (parsedValue).
Definition: ConfigurationValueParsers.cpp:60
OrderedKeyValueMap< T > getAllOrdered(const char *section) const
Gets all section properties from this bag preserving source order.
Definition: ConfigurationBag.h:154
size_t size() const
Returns the number of properties in this bag.
Definition: ConfigurationBag.h:84