#include <command.hpp>
Public Member Functions | |
| command_query (const std::string &command, const std::string ¶mlist) | |
| Creates a new query with a command and an optional parameter list. | |
| command_query (const net6::packet &pack, unsigned int &index) | |
| Reads a command query from a network packet. | |
| const std::string & | get_command () const |
| Returns the command of this query. | |
| const std::string & | get_paramlist () const |
| Returns the parameter list for this query. | |
| void | append_packet (net6::packet &pack) const |
| Appends the query to the given packet. | |
Protected Attributes | |
| std::string | m_command |
| std::string | m_paramlist |
Definition at line 43 of file command.hpp.
| obby::command_query::command_query | ( | const std::string & | command, | |
| const std::string & | paramlist | |||
| ) |
Creates a new query with a command and an optional parameter list.
Definition at line 122 of file command.cpp.
| obby::command_query::command_query | ( | const net6::packet & | pack, | |
| unsigned int & | index | |||
| ) |
| const std::string & obby::command_query::get_command | ( | ) | const |
Returns the command of this query.
Definition at line 136 of file command.cpp.
References m_command.
Referenced by obby::command_map::exec_command().
| const std::string & obby::command_query::get_paramlist | ( | ) | const |
Returns the parameter list for this query.
Definition at line 141 of file command.cpp.
References m_paramlist.
Referenced by obby::command_map::exec_command(), and obby::basic_client_buffer< Document, Selector >::on_command_emote().
| void obby::command_query::append_packet | ( | net6::packet & | pack | ) | const |
Appends the query to the given packet.
Definition at line 146 of file command.cpp.
References m_command, and m_paramlist.
Referenced by obby::basic_client_buffer< Document, Selector >::send_command().
std::string obby::command_query::m_command [protected] |
std::string obby::command_query::m_paramlist [protected] |
1.5.1