Ookii.CommandLine for C++
1.0.0
|
Provides information about a shell command. More...
#include <ookii/shell_command.h>
Public Types | |
using | builder_type = typename command_type::builder_type |
The concrete type of basic_parser_builder used. | |
using | command_type = basic_shell_command< CharType, Traits, Alloc > |
The concrete type of basic_shell_command used. | |
using | string_type = std::basic_string< CharType, Traits, Alloc > |
The concrete string type used. | |
Public Member Functions | |
std::unique_ptr< command_type > | create (builder_type &builder) const |
Creates an instance of the shell command type. More... | |
const string_type & | description () const noexcept |
Gets the description of the shell command. | |
const string_type & | name () const noexcept |
Gets the name of the shell command. | |
Static Public Member Functions | |
template<typename T > | |
static shell_command_info | create (string_type name, string_type description) |
Creates a shell_command_info instance for the specified type. More... | |
Provides information about a shell command.
CharType | The character type used for arguments and other strings. |
Traits | The character traits to use for strings. Defaults to std::char_traits<CharType> . |
Alloc | The allocator to use for strings. Defaults to std::allocator<CharType> . |
|
inline |
Creates an instance of the shell command type.
builder | The basic_parser_builder to pass to the shell command type's constructor. |
|
inlinestatic |
Creates a shell_command_info instance for the specified type.
T | The type of the shell command, which must derive from basic_shell_command. |
name | The name of the shell command. |
description | The description of the shell command. |