koutil
|
Base class for subcommands. More...
#include <subcommand.h>
Public Member Functions | |
constexpr | SubcommandBase (std::string_view cmd_name) |
virtual constexpr | ~SubcommandBase ()=default |
virtual constexpr const ArgumentsBase & | get_args () const =0 |
Gets the arguments of the subcommand. | |
virtual constexpr const CommandsBase & | get_cmds () const =0 |
Gets the commands of the subcommand. | |
constexpr bool | operator== (std::string_view n) const |
Public Attributes | |
std::string_view | name |
Base class for subcommands.
|
inlineconstexpr |
|
constexprvirtualdefault |
|
nodiscardconstexprpure virtual |
Gets the arguments of the subcommand.
Implemented in koutil::argparser::Subcommand< type::types< Args... >, type::types< Cmd... > >.
|
nodiscardconstexprpure virtual |
Gets the commands of the subcommand.
Implemented in koutil::argparser::Subcommand< type::types< Args... >, type::types< Cmd... > >.
|
inlineconstexpr |
std::string_view koutil::argparser::SubcommandBase::name |