CyberEngineMkIII
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CommandLine.hpp
Go to the documentation of this file.
1 namespace CYB {
3  namespace API {
5  class CommandLine {
6  public:
8 
19  using Callback = std::add_pointer<bool(const API::Container::Deque<const API::String::Dynamic*>& AParameters)>::type;
20  public:
22 
37  virtual void RunHandler(Callback ACallback, const int AFullNameKey, const int ADescriptionKey, const API::String::CStyle& AShortFlag, const API::String::CStyle& ALongFlag, const unsigned int ANumExpectedTokens, const unsigned int ANumOptionalTokens, unsigned long long AMaxInvocations) const = 0;
38  };
39  };
40 };
std::add_pointer< bool(const API::Container::Deque< const API::String::Dynamic * > &AParameters)>::type Callback
Called to handle a valid command line parameters.
Definition: CommandLine.hpp:19
An interface for running callbacks based on command line parameters.
Definition: CommandLine.hpp:5
A basic char contained string.
Definition: CStyleString.hpp:7
virtual void RunHandler(Callback ACallback, const int AFullNameKey, const int ADescriptionKey, const API::String::CStyle &AShortFlag, const API::String::CStyle &ALongFlag, const unsigned int ANumExpectedTokens, const unsigned int ANumOptionalTokens, unsigned long long AMaxInvocations) const =0
Adds a command line flag handler.