ft_irc 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
CommandManager クラス

Manages the registration, parsing, and execution of IRC commands. [詳解]

#include <CommandManager.hpp>

CommandManager 連携図
Collaboration graph

公開メンバ関数

 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.hpp39 行目に定義があります。

構築子と解体子

◆ CommandManager()

CommandManager::CommandManager ( Server server)

Constructs a new CommandManager object.

引数
serverA pointer to the Server instance.

CommandManager.cpp36 行目に定義があります。

◆ ~CommandManager()

CommandManager::~CommandManager ( )

Destroys the CommandManager object and frees all registered command objects.

CommandManager.cpp57 行目に定義があります。

関数詳解

◆ parseAndExecute()

void CommandManager::parseAndExecute ( Client client,
const std::string rawMessage 
)

Parses a raw message and executes the corresponding command.

引数
clientA pointer to the Client that sent the message.
rawMessageThe raw message string to parse and execute.

CommandManager.cpp117 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: