CatapultServer  v0.5.0.1 (Elephant)
ToolConfigurationUtils.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace tools {
25 
27  config::CatapultConfiguration LoadConfiguration(const std::string& resourcesPath);
28 
30  std::vector<ionet::Node> LoadOptionalApiPeers(const std::string& resourcesPath, model::NetworkIdentifier networkIdentifier);
31 
33  std::vector<ionet::Node> LoadPeers(const std::string& resourcesPath, model::NetworkIdentifier networkIdentifier);
34 }}
catapult::tools::LoadConfiguration
config::CatapultConfiguration LoadConfiguration(const std::string &resourcesPathStr)
Loads the configuration from resourcesPath.
Definition: ToolConfigurationUtils.cpp:26
catapult::config::LoadPeersConfiguration
std::vector< ionet::Node > LoadPeersConfiguration(const boost::filesystem::path &path, model::NetworkIdentifier networkIdentifier)
Loads peers configuration from path for network networkIdentifier.
Definition: ConfigurationFileLoader.h:54
ConfigurationFileLoader.h
catapult::tools::LoadOptionalApiPeers
std::vector< ionet::Node > LoadOptionalApiPeers(const std::string &resourcesPath, model::NetworkIdentifier networkIdentifier)
Loads optional api peers configuration from resourcesPath for network networkIdentifier.
Definition: ToolConfigurationUtils.cpp:33
ToolConfigurationUtils.h
catapult::config::CatapultConfiguration
Comprehensive configuration for a catapult process.
Definition: CatapultConfiguration.h:34
catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
CatapultConfiguration.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::tools::LoadPeers
std::vector< ionet::Node > LoadPeers(const std::string &resourcesPath, model::NetworkIdentifier networkIdentifier)
Loads p2p peers configuration from resourcesPath for network networkIdentifier.
Definition: ToolConfigurationUtils.cpp:42
catapult::config::CatapultConfiguration::LoadFromPath
static CatapultConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath, const std::string &extensionsHost)
Definition: CatapultConfiguration.cpp:61