CyberEngineMkIII
|
An interface for running callbacks based on command line parameters. More...
#include <CommandLine.hpp>
Public Types | |
using | Callback = std::add_pointer< bool(const API::Container::Deque< const API::String::Dynamic * > &AParameters)>::type |
Called to handle a valid command line parameters. More... | |
Public Member Functions | |
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. More... | |
An interface for running callbacks based on command line parameters.
Definition at line 5 of file CommandLine.hpp.
using CYB::API::CommandLine::Callback = std::add_pointer<bool(const API::Container::Deque<const API::String::Dynamic*>& AParameters)>::type |
Called to handle a valid command line parameters.
Definition at line 19 of file CommandLine.hpp.
|
pure virtual |
Adds a command line flag handler.
ACallback | A callback to run for each valid invocation of this flag |
AFullNameKey | The translation key of the functional name of the command |
ADescriptionKey | The translation key of a descriptive text for this command |
AShortFlag | The short, case-sensitive flag to activate this command |
ALongFlag | The long, case-sensitive flag to activate this command |
ANumExpectedTokens | The number of expected required tokens |
ANumOptionalTokens | The number of possible optional tokens after expected tokens |
AMaxInvocations | The number of times this command can be validly repeated |
CYB::Exception::SystemData | Error code: CYB::Exception::SystemData::HEAP_ALLOCATION_FAILURE. Thrown if the current heap runs out of memory |
Implemented in CYB::Engine::Helpers::CommandLine.