CatapultServer  v0.5.0.1 (Elephant)
ToolMain.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "Tool.h"
23 
24 namespace catapult { namespace tools {
25 
28  int ToolMain(int argc, const char** argv, Tool& tool);
29 }}
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
ThreadInfo.h
catapult::config::GetConsoleLoggerOptions
utils::BasicLoggerOptions GetConsoleLoggerOptions(const ConsoleLoggerConfiguration &config)
Maps console logger configuration (config) to console logger options.
Definition: LoggingConfiguration.cpp:64
catapult::tools::Options
boost::program_options::variables_map Options
Provides access to parsed options.
Definition: Options.h:34
catapult::tools::OptionsPositional
boost::program_options::positional_options_description OptionsPositional
Definition of positional arguments.
Definition: Options.h:31
catapult::tools::Tool
Interface for the tools.
Definition: Tool.h:27
catapult::utils::LogSinkType::Sync
A synchronous sink.
catapult::utils::CatapultLogFlush
void CatapultLogFlush()
Definition: Logging.cpp:283
ToolOptions
Options ToolOptions
Definition: ToolMain.cpp:91
version.h
ExceptionLogging.h
ConfigurationFileLoader.h
catapult::thread::GetThreadName
std::string GetThreadName()
Gets a thread name in a platform-dependent way.
Definition: ThreadInfo.cpp:74
catapult::utils::LogLevel::Debug
Level for logging debug events.
Tool.h
catapult::tools::CommandParser::name
virtual std::string name() const =0
Returns name of the command.
catapult::config::LoggingConfiguration::Uninitialized
static LoggingConfiguration Uninitialized()
Creates an uninitialized logging configuration.
Definition: LoggingConfiguration.cpp:27
catapult::thread::SetThreadName
void SetThreadName(const std::string &name)
Definition: ThreadInfo.cpp:69
LoggingConfigurationPath
std::string LoggingConfigurationPath
Definition: ToolMain.cpp:93
catapult::tools::Tool::run
virtual int run(const Options &options)=0
Run the tool passing options collected from the command line.
catapult::tools::ToolMain
int ToolMain(int argc, const char **argv, Tool &tool)
Definition: ToolMain.cpp:172
UNHANDLED_EXCEPTION_MESSAGE
#define UNHANDLED_EXCEPTION_MESSAGE(ACTION)
Outputs a message for an unhandled exception that occurred during ACTION.
Definition: ExceptionLogging.h:30
catapult
Definition: AddressExtractionExtension.cpp:28
LoggingConfiguration.h
catapult::version::WriteVersionInformation
void WriteVersionInformation(std::ostream &out)
Writes custom version information to out.
Definition: version.cpp:26
ToolMain.h
IsHelpRequest
bool IsHelpRequest
Definition: ToolMain.cpp:92