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

Implements the NAMES command. [詳解]

#include <NamesCommand.hpp>

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

公開メンバ関数

 NamesCommand (Server *server)
 Constructs a NamesCommand object.
 
void execute (Client *client, const std::vector< std::string > &args)
 Executes the NAMES 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 NAMES command.

This command is used to retrieve the list of nicknames of clients in a channel. If no channel is specified, it lists all users in all visible channels.

NamesCommand.hpp21 行目に定義があります。

構築子と解体子

◆ NamesCommand()

NamesCommand::NamesCommand ( Server server)

Constructs a NamesCommand object.

引数
serverA pointer to the Server instance.

NamesCommand.cpp15 行目に定義があります。

関数詳解

◆ execute()

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

Executes the NAMES command.

引数
clientA pointer to the Client that issued the command.
argsA vector of strings containing the command arguments. args[0] (optional) can be a comma-separated list of channel names.

ICommandを実装しています。

NamesCommand.cpp17 行目に定義があります。


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