obby::command_query Class Reference

Command query that may be sent to a server. More...

#include <command.hpp>

List of all members.

Public Member Functions

 command_query (const std::string &command, const std::string &paramlist)
 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


Detailed Description

Command query that may be sent to a server.

Definition at line 43 of file command.hpp.


Constructor & Destructor Documentation

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 
)

Reads a command query from a network packet.

Definition at line 128 of file command.cpp.


Member Function Documentation

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().


Member Data Documentation

std::string obby::command_query::m_command [protected]

Definition at line 69 of file command.hpp.

Referenced by append_packet(), and get_command().

std::string obby::command_query::m_paramlist [protected]

Definition at line 70 of file command.hpp.

Referenced by append_packet(), and get_paramlist().


The documentation for this class was generated from the following files:
Generated on Fri Jan 11 10:01:32 2008 for obby by  doxygen 1.5.1