|
ft_irc 1.0
|
Abstract base class (interface) for all IRC commands. [詳解]
#include <ICommand.hpp>


公開メンバ関数 | |
| ICommand (Server *server) | |
| Constructs an ICommand object, associating it with a server instance. | |
| virtual | ~ICommand () |
| Virtual destructor for ICommand, ensuring proper cleanup of derived classes. | |
| virtual void | execute (Client *client, const std::vector< std::string > &args)=0 |
| Pure virtual method to execute the command logic. | |
限定公開変数類 | |
| Server * | _server |
| Pointer to the IRC server instance. | |
Abstract base class (interface) for all IRC commands.
This interface defines the contract for all executable IRC commands. Each concrete command class must inherit from ICommand and implement the pure virtual execute method, which encapsulates the logic for processing a specific IRC command.
ICommand.hpp の 26 行目に定義があります。
|
inline |
Constructs an ICommand object, associating it with a server instance.
| server | A pointer to the Server instance. |
ICommand.hpp の 35 行目に定義があります。
|
inlinevirtual |
Virtual destructor for ICommand, ensuring proper cleanup of derived classes.
ICommand.hpp の 40 行目に定義があります。
|
pure virtual |
Pure virtual method to execute the command logic.
| client | A pointer to the Client that issued the command. |
| args | A vector of strings representing the arguments to the command. |
InviteCommand, JoinCommand, KickCommand, ListCommand, ModeCommand, NamesCommand, NickCommand, NoticeCommand, PartCommand, PassCommand, PingCommand, PongCommand, PrivmsgCommand, QuitCommand, TopicCommand, UserCommand, WhoCommand, WhoisCommand (計18項目)で実装されています。
|
protected |
Pointer to the IRC server instance.
ICommand.hpp の 28 行目に定義があります。