CommandHandler Class Reference

#include <commandhandler.h>

List of all members.


Detailed Description

A class to parse and handle user commands.

Definition at line 37 of file commandhandler.h.


Public Member Functions

 CommandHandler ()
 Constructor.
 ~CommandHandler ()
 Destructor.
void handleCommand (const std::string &command, ChatTab *tab=localChatTab)
 Parse and handle the given command.

Static Public Member Functions

static char parseBoolean (const std::string &value)

Private Member Functions

void handleAnnounce (const std::string &args, ChatTab *tab)
 Handle an announce command.
void handleHelp (const std::string &args, ChatTab *tab)
 Handle a help command.
void handleWhere (const std::string &args, ChatTab *tab)
 Handle a where command.
void handleWho (const std::string &args, ChatTab *tab)
 Handle a who command.
void handleMsg (const std::string &args, ChatTab *tab)
 Handle a msg command.
void handleQuery (const std::string &args, ChatTab *tab)
 Handle a msg tab request.
void handleJoin (const std::string &args, ChatTab *tab)
 Handle a join command.
void handleListChannels (const std::string &args, ChatTab *tab)
 Handle a listchannels command.
void handleClear (const std::string &args, ChatTab *tab)
 Handle a clear command.
void handleParty (const std::string &args, ChatTab *tab)
 Handle a party command.
void handleMe (const std::string &args, ChatTab *tab)
 Handle a me command.
void handleRecord (const std::string &args, ChatTab *tab)
 Handle a record command.
void handleToggle (const std::string &args, ChatTab *tab)
 Handle a toggle command.
void handlePresent (const std::string &args, ChatTab *tab)
 Handle a present command.

Constructor & Destructor Documentation

CommandHandler::CommandHandler (  ) 

Constructor.

Definition at line 42 of file commandhandler.cpp.

CommandHandler::~CommandHandler (  )  [inline]

Destructor.

Definition at line 48 of file commandhandler.h.


Member Function Documentation

void CommandHandler::handleCommand ( const std::string &  command,
ChatTab tab = localChatTab 
)

Parse and handle the given command.

Definition at line 45 of file commandhandler.cpp.

char CommandHandler::parseBoolean ( const std::string &  value  )  [static]

Definition at line 117 of file commandhandler.cpp.

void CommandHandler::handleAnnounce ( const std::string &  args,
ChatTab tab 
) [private]

Handle an announce command.

Definition at line 133 of file commandhandler.cpp.

void CommandHandler::handleHelp ( const std::string &  args,
ChatTab tab 
) [private]

Handle a help command.

Definition at line 138 of file commandhandler.cpp.

void CommandHandler::handleWhere ( const std::string &  args,
ChatTab tab 
) [private]

Handle a where command.

Definition at line 278 of file commandhandler.cpp.

void CommandHandler::handleWho ( const std::string &  args,
ChatTab tab 
) [private]

Handle a who command.

Definition at line 284 of file commandhandler.cpp.

void CommandHandler::handleMsg ( const std::string &  args,
ChatTab tab 
) [private]

Handle a msg command.

Definition at line 289 of file commandhandler.cpp.

void CommandHandler::handleQuery ( const std::string &  args,
ChatTab tab 
) [private]

Handle a msg tab request.

Definition at line 339 of file commandhandler.cpp.

void CommandHandler::handleJoin ( const std::string &  args,
ChatTab tab 
) [private]

Handle a join command.

Definition at line 352 of file commandhandler.cpp.

void CommandHandler::handleListChannels ( const std::string &  args,
ChatTab tab 
) [private]

Handle a listchannels command.

Definition at line 361 of file commandhandler.cpp.

void CommandHandler::handleClear ( const std::string &  args,
ChatTab tab 
) [private]

Handle a clear command.

Definition at line 347 of file commandhandler.cpp.

void CommandHandler::handleParty ( const std::string &  args,
ChatTab tab 
) [private]

Handle a party command.

Definition at line 366 of file commandhandler.cpp.

void CommandHandler::handleMe ( const std::string &  args,
ChatTab tab 
) [private]

Handle a me command.

Definition at line 374 of file commandhandler.cpp.

void CommandHandler::handleRecord ( const std::string &  args,
ChatTab tab 
) [private]

Handle a record command.

Definition at line 379 of file commandhandler.cpp.

void CommandHandler::handleToggle ( const std::string &  args,
ChatTab tab 
) [private]

Handle a toggle command.

Definition at line 384 of file commandhandler.cpp.

void CommandHandler::handlePresent ( const std::string &  args,
ChatTab tab 
) [private]

Handle a present command.

Definition at line 410 of file commandhandler.cpp.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5