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

Implements the INVITE command. [詳解]

#include <InviteCommand.hpp>

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

公開メンバ関数

 InviteCommand (Server *server)
 Constructs an InviteCommand object.
 
void execute (Client *client, const std::vector< std::string > &args)
 Executes the INVITE command.
 
- 基底クラス ICommand に属する継承公開メンバ関数
 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.
 

その他の継承メンバ

- 基底クラス ICommand に属する継承限定公開変数類
Server_server
 Pointer to the IRC server instance.
 

詳解

Implements the INVITE command.

This command allows a user to invite another client to a channel. If the channel is invite-only (+i mode), only channel operators can use this command. The invited user is added to the channel's invited list.

InviteCommand.hpp20 行目に定義があります。

構築子と解体子

◆ InviteCommand()

InviteCommand::InviteCommand ( Server server)

Constructs an InviteCommand object.

引数
serverA pointer to the Server instance.

InviteCommand.cpp14 行目に定義があります。

関数詳解

◆ execute()

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

Executes the INVITE command.

引数
clientA pointer to the Client that issued the command.
argsA vector of strings containing the command arguments. args[0] should be the nickname of the user to invite. args[1] should be the channel name to invite to.

ICommandを実装しています。

InviteCommand.cpp16 行目に定義があります。


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