IRC SERVER
The goal of this project is to make you write your own IRC server.
ChannelModeType Class Referenceabstract

#include <Mode.hpp>

Inheritance diagram for ChannelModeType:
Inheritance graph
Collaboration diagram for ChannelModeType:
Collaboration graph

Public Member Functions

 ChannelModeType ()
 
void execute ()
 
void setMode (ChannelMode mode)
 
void setSign (ModeSign sign)
 
void setChannel (Channel *channel)
 
void setParams (std::map< size_t, std::string > params)
 
void setSender (Client *sender)
 
void setServer (Server *server)
 
virtual bool validate (void)
 
virtual void add ()=0
 
virtual void remove ()=0
 
virtual ~ChannelModeType ()
 

Public Attributes

ChannelMode _mode
 
char _identifier
 
ModeSign _sign
 
Channel_channel
 
std::map< size_t, std::string > _params
 
Client_sender
 
Server_server
 

Constructor & Destructor Documentation

◆ ChannelModeType()

ChannelModeType::ChannelModeType ( )
inline

◆ ~ChannelModeType()

virtual ChannelModeType::~ChannelModeType ( )
inlinevirtual

Member Function Documentation

◆ add()

virtual void ChannelModeType::add ( )
pure virtual

Implemented in Operator, InviteOnly, Key, UserLimit, BanMask, CantSentMessagesOutside, Moderated, Secret, and TopicSettableByChannelOperatorOnly.

Here is the caller graph for this function:

◆ execute()

void ChannelModeType::execute ( )
inline
Here is the call graph for this function:

◆ remove()

virtual void ChannelModeType::remove ( )
pure virtual

Implemented in Operator, Key, UserLimit, InviteOnly, BanMask, CantSentMessagesOutside, Moderated, Secret, and TopicSettableByChannelOperatorOnly.

Here is the caller graph for this function:

◆ setChannel()

void ChannelModeType::setChannel ( Channel channel)
inline

◆ setMode()

void ChannelModeType::setMode ( ChannelMode  mode)
inline

◆ setParams()

void ChannelModeType::setParams ( std::map< size_t, std::string >  params)
inline

◆ setSender()

void ChannelModeType::setSender ( Client sender)
inline

◆ setServer()

void ChannelModeType::setServer ( Server server)
inline

◆ setSign()

void ChannelModeType::setSign ( ModeSign  sign)
inline

◆ validate()

virtual bool ChannelModeType::validate ( void  )
inlinevirtual

Reimplemented in InviteOnly, Key, Operator, and UserLimit.

Member Data Documentation

◆ _channel

Channel* ChannelModeType::_channel

◆ _identifier

char ChannelModeType::_identifier

◆ _mode

ChannelMode ChannelModeType::_mode

◆ _params

std::map<size_t, std::string> ChannelModeType::_params

◆ _sender

Client* ChannelModeType::_sender

◆ _server

Server* ChannelModeType::_server

◆ _sign

ModeSign ChannelModeType::_sign

The documentation for this class was generated from the following file: