CatapultServer  v0.5.0.1 (Elephant)
PtConfiguration.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include <boost/filesystem/path.hpp>
24 
25 namespace catapult { namespace utils { class ConfigurationBag; } }
26 
27 namespace catapult { namespace partialtransaction {
28 
30  struct PtConfiguration {
31  public:
34 
36  uint32_t CacheMaxSize;
37 
38  private:
39  PtConfiguration() = default;
40 
41  public:
44 
45  public:
48 
50  static PtConfiguration LoadFromPath(const boost::filesystem::path& resourcesPath);
51  };
52 }}
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::partialtransaction::PtConfiguration::CacheMaxResponseSize
utils::FileSize CacheMaxResponseSize
Maximum size of a partial transactions response.
Definition: PtConfiguration.h:33
PtConfiguration.h
catapult::partialtransaction::PtConfiguration::PtConfiguration
PtConfiguration()=default
FileSize.h
LOAD_PROPERTY
#define LOAD_PROPERTY(NAME)
Definition: PtConfiguration.cpp:28
catapult::utils::ConfigurationBag
A simple bag of properties.
Definition: ConfigurationBag.h:57
ConfigurationFileLoader.h
catapult::partialtransaction::PtConfiguration
Partial transactions configuration settings.
Definition: PtConfiguration.h:30
catapult::partialtransaction::PtConfiguration::LoadFromBag
static PtConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a partial transactions configuration from bag.
Definition: PtConfiguration.cpp:34
catapult::utils::FileSize
Represents a file size.
Definition: FileSize.h:29
ConfigurationUtils.h
catapult::partialtransaction::PtConfiguration::CacheMaxSize
uint32_t CacheMaxSize
Maximum size of the partial transactions cache.
Definition: PtConfiguration.h:36
ConfigurationBag.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::partialtransaction::PtConfiguration::Uninitialized
static PtConfiguration Uninitialized()
Creates an uninitialized partial transactions configuration.
Definition: PtConfiguration.cpp:30
catapult::partialtransaction::PtConfiguration::LoadFromPath
static PtConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath)
Loads a partial transactions configuration from resourcesPath.
Definition: PtConfiguration.cpp:46