|
ft_irc 1.0
|
Manages the registration, parsing, and execution of IRC commands. [詳解]
#include <CommandManager.hpp>

公開メンバ関数 | |
| CommandManager (Server *server) | |
| Constructs a new CommandManager object. | |
| ~CommandManager () | |
| Destroys the CommandManager object and frees all registered command objects. | |
| void | parseAndExecute (Client *client, const std::string &rawMessage) |
| Parses a raw message and executes the corresponding command. | |
Manages the registration, parsing, and execution of IRC commands.
This class is responsible for taking raw messages from clients, parsing them into a command and arguments, and then dispatching the command to the appropriate ICommand object for execution. It holds a map of registered command names to their respective command objects.
CommandManager.hpp の 39 行目に定義があります。
| CommandManager::CommandManager | ( | Server * | server | ) |
Constructs a new CommandManager object.
| server | A pointer to the Server instance. |
CommandManager.cpp の 36 行目に定義があります。
| CommandManager::~CommandManager | ( | ) |
Destroys the CommandManager object and frees all registered command objects.
CommandManager.cpp の 57 行目に定義があります。
| void CommandManager::parseAndExecute | ( | Client * | client, |
| const std::string & | rawMessage | ||
| ) |
Parses a raw message and executes the corresponding command.
| client | A pointer to the Client that sent the message. |
| rawMessage | The raw message string to parse and execute. |
CommandManager.cpp の 117 行目に定義があります。