CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
22 #include <boost/filesystem/path.hpp>
25 namespace catapult {
namespace utils {
class ConfigurationBag; } }
27 namespace catapult {
namespace timesync {
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
static TimeSynchronizationConfiguration Uninitialized()
Creates an uninitialized time synchronization configuration.
Definition: TimeSynchronizationConfiguration.cpp:30
#define LOAD_TIMESYNC_PROPERTY(NAME)
A simple bag of properties.
Definition: ConfigurationBag.h:57
uint8_t MaxNodes
Number of nodes that this node should communicate with during time synchronization.
Definition: TimeSynchronizationConfiguration.h:33
static TimeSynchronizationConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a time synchronization configuration from bag.
Definition: TimeSynchronizationConfiguration.cpp:34
TimeSynchronizationConfiguration()=default
Time synchronization configuration settings.
Definition: TimeSynchronizationConfiguration.h:30
static TimeSynchronizationConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath)
Loads a time synchronization configuration from resourcesPath.
Definition: TimeSynchronizationConfiguration.cpp:49
Definition: AddressExtractionExtension.cpp:28