CatapultServer  v0.5.0.1 (Elephant)
InflationConfiguration.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace utils { class ConfigurationBag; } }
25 
26 namespace catapult { namespace config {
27 
30  public:
33 
34  private:
35  InflationConfiguration() = default;
36 
37  public:
40 
41  public:
44  };
45 }}
catapult::model::InflationCalculator::add
void add(Height height, Amount amount)
Adds inflation of amount starting at height.
Definition: InflationCalculator.cpp:90
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_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_THROW_AND_LOG_2
#define CATAPULT_THROW_AND_LOG_2(TYPE, MESSAGE, PARAM1, PARAM2)
Macro used to throw a catapult exception with two parameters.
Definition: exceptions.h:159
catapult::config::InflationConfiguration::LoadFromBag
static InflationConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads an inflation configuration from bag.
Definition: InflationConfiguration.cpp:43
catapult::Amount
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
catapult::config::InflationConfiguration
Inflation configuration settings.
Definition: InflationConfiguration.h:29
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
InflationCalculator.h
catapult::model::InflationCalculator
Calculator for calculating the inflation at a given height and the total inflation up to a given heig...
Definition: InflationCalculator.h:28
catapult::config::InflationConfiguration::Uninitialized
static InflationConfiguration Uninitialized()
Creates an uninitialized inflation configuration.
Definition: InflationConfiguration.cpp:39
catapult::utils::ConfigurationBag
A simple bag of properties.
Definition: ConfigurationBag.h:57
catapult::utils::BaseValue< uint64_t, Height_tag >
InflationConfiguration.h
catapult::config::InflationConfiguration::InflationCalculator
model::InflationCalculator InflationCalculator
Inflation calculator.
Definition: InflationConfiguration.h:32
ConfigurationUtils.h
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::config::InflationConfiguration::InflationConfiguration
InflationConfiguration()=default
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::InflationCalculator::size
size_t size() const
Gets the number of inflation entries.
Definition: InflationCalculator.cpp:26
catapult::utils::property_malformed_error
Exception class that is thrown when a configuration property is malformed.
Definition: ConfigurationBag.h:38
catapult::utils::TryParseValue
bool TryParseValue(const std::string &str, LogLevel &parsedValue)
Tries to parse str into a log level (parsedValue).
Definition: ConfigurationValueParsers.cpp:60
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