CatapultServer  v0.5.0.1 (Elephant)
MessagingConfiguration.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <boost/filesystem/path.hpp>
23 
24 namespace catapult { namespace utils { class ConfigurationBag; } }
25 
26 namespace catapult { namespace zeromq {
27 
30  public:
32  unsigned short SubscriberPort;
33 
34  private:
35  MessagingConfiguration() = default;
36 
37  public:
40 
41  public:
44 
46  static MessagingConfiguration LoadFromPath(const boost::filesystem::path& resourcesPath);
47  };
48 }}
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::zeromq::MessagingConfiguration::Uninitialized
static MessagingConfiguration Uninitialized()
Creates an uninitialized messaging configuration.
Definition: MessagingConfiguration.cpp:30
catapult::utils::ConfigurationBag
A simple bag of properties.
Definition: ConfigurationBag.h:57
ConfigurationFileLoader.h
catapult::zeromq::MessagingConfiguration::LoadFromBag
static MessagingConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a messaging configuration from bag.
Definition: MessagingConfiguration.cpp:34
catapult::zeromq::MessagingConfiguration::LoadFromPath
static MessagingConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath)
Loads a messaging configuration from resourcesPath.
Definition: MessagingConfiguration.cpp:45
catapult::zeromq::MessagingConfiguration::MessagingConfiguration
MessagingConfiguration()=default
LOAD_PROPERTY
#define LOAD_PROPERTY(NAME)
Definition: MessagingConfiguration.cpp:28
ConfigurationUtils.h
ConfigurationBag.h
catapult::zeromq::MessagingConfiguration
Messaging configuration settings.
Definition: MessagingConfiguration.h:29
catapult
Definition: AddressExtractionExtension.cpp:28
MessagingConfiguration.h
catapult::zeromq::MessagingConfiguration::SubscriberPort
unsigned short SubscriberPort
Subscriber port.
Definition: MessagingConfiguration.h:32