CatapultServer  v0.5.0.1 (Elephant)
CommandParser.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "Options.h"
23 
24 namespace catapult { namespace tools {
25 
27  class CommandParser {
28  public:
29  virtual ~CommandParser() = default;
30 
31  public:
33  virtual std::string name() const = 0;
34 
36  virtual void prepareOptions(OptionsBuilder& optionsBuilder, OptionsPositional& positional) = 0;
37  };
38 }}
catapult::tools::CommandParser::prepareOptions
virtual void prepareOptions(OptionsBuilder &optionsBuilder, OptionsPositional &positional)=0
Prepare named (optionsBuilder) and positional options of the tool.
colorPrint.warning
def warning(*args)
Definition: colorPrint.py:10
catapult::tools::OptionsPositional
boost::program_options::positional_options_description OptionsPositional
Definition of positional arguments.
Definition: Options.h:31
Options.h
colorPrint
Definition: colorPrint.py:1
catapult::tools::CommandParser::name
virtual std::string name() const =0
Returns name of the command.
catapult::tools::OptionsBuilder
boost::program_options::options_description_easy_init OptionsBuilder
Options builder.
Definition: Options.h:28
catapult::tools::CommandParser::~CommandParser
virtual ~CommandParser()=default
catapult::tools::CommandParser
Interface for command line parsing.
Definition: CommandParser.h:27
colorPrint.colorPrint
def colorPrint(color, *args)
Definition: colorPrint.py:5
catapult
Definition: AddressExtractionExtension.cpp:28