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

Abstract base class (interface) for all IRC commands. [詳解]

#include <ICommand.hpp>

ICommand の継承関係図
Inheritance graph
ICommand 連携図
Collaboration graph

公開メンバ関数

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

構築子と解体子

◆ ICommand()

ICommand::ICommand ( Server server)
inline

Constructs an ICommand object, associating it with a server instance.

引数
serverA pointer to the Server instance.

ICommand.hpp35 行目に定義があります。

◆ ~ICommand()

virtual ICommand::~ICommand ( )
inlinevirtual

Virtual destructor for ICommand, ensuring proper cleanup of derived classes.

ICommand.hpp40 行目に定義があります。

関数詳解

◆ execute()

virtual void ICommand::execute ( Client client,
const std::vector< std::string > &  args 
)
pure virtual

Pure virtual method to execute the command logic.

引数
clientA pointer to the Client that issued the command.
argsA 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項目)で実装されています。

メンバ詳解

◆ _server

Server* ICommand::_server
protected

Pointer to the IRC server instance.

ICommand.hpp28 行目に定義があります。


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