#include <map_command_handler.hpp>
Public Member Functions | |
cmd_arg_parser () | |
cmd_arg_parser (const std::string &str) | |
void | parse (const std::string &str) |
const std::string & | get_str () const |
std::string | get_arg (unsigned n) const |
std::string | get_data (unsigned n) const |
std::string | get_cmd () const |
Private Member Functions | |
cmd_arg_parser & | operator= (const cmd_arg_parser &) |
cmd_arg_parser (const cmd_arg_parser &) | |
void | advance_to_arg (unsigned n) const |
Private Attributes | |
std::string | str_ |
std::vector< size_t > | args |
bool | args_end |
Definition at line 29 of file map_command_handler.hpp.
|
inline |
Definition at line 32 of file map_command_handler.hpp.
|
inlineexplicit |
Definition at line 39 of file map_command_handler.hpp.
|
private |
|
inlineprivate |
Definition at line 86 of file map_command_handler.hpp.
References args, args_end, and str_.
Referenced by get_arg(), and get_data().
|
inline |
Definition at line 58 of file map_command_handler.hpp.
References advance_to_arg(), args, and str_.
Referenced by events::map_command_handler< chat_command_handler >::get_arg(), and get_cmd().
|
inline |
Definition at line 79 of file map_command_handler.hpp.
References get_arg().
Referenced by events::map_command_handler< chat_command_handler >::get_cmd().
|
inline |
Definition at line 68 of file map_command_handler.hpp.
References advance_to_arg(), args, str_, and utils::strip().
Referenced by events::map_command_handler< chat_command_handler >::get_data().
|
inline |
Definition at line 54 of file map_command_handler.hpp.
References str_.
|
private |
|
inline |
Definition at line 46 of file map_command_handler.hpp.
References args, args_end, and str_.
Referenced by events::map_command_handler< chat_command_handler >::parse_cmd().
|
mutableprivate |
Definition at line 100 of file map_command_handler.hpp.
Referenced by advance_to_arg(), get_arg(), get_data(), and parse().
|
mutableprivate |
Definition at line 101 of file map_command_handler.hpp.
Referenced by advance_to_arg(), and parse().
|
private |
Definition at line 99 of file map_command_handler.hpp.
Referenced by advance_to_arg(), get_arg(), get_data(), get_str(), and parse().