IRC_SERVER
By @hyunjunk (hyunjun2372@gmail.com)
Loading...
Searching...
No Matches
IRC::ChannelControlBlock Class Reference

#include <ChannelControlBlock.hpp>

Inheritance diagram for IRC::ChannelControlBlock:

Public Member Functions

 ChannelControlBlock (const std::string &name, SharedPtr< ClientControlBlock > creator, std::string creatorNickname)
 
 ~ChannelControlBlock ()
 
SharedPtr< ClientControlBlockFindClient (const std::string &nickname)
 
bool IsOperator (const std::string &nickname)
 
- Public Member Functions inherited from IRCCore::FlexibleMemoryPoolingBase< ChannelControlBlock >
void * operator new (size_t size)
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, size_t size)
 

Public Attributes

std::string Name
 
std::string Topic
 ""(empty string) means no topic
 
std::string Password
 Check bPrivate before checking this.
 
std::map< std::string, WeakPtr< ClientControlBlock > > Clients
 
std::map< std::string, WeakPtr< ClientControlBlock > > Operators
 
size_t MaxClients
 '0' means no limit
 
bool bInviteOnly
 
bool bTopicProtected
 Topic settable by channel operator only flag.
 
bool bPrivate
 Channel has a password.
 
std::map< std::string, WeakPtr< ClientControlBlock > > InvitedClients
 

Constructor & Destructor Documentation

◆ ChannelControlBlock()

IRC::ChannelControlBlock::ChannelControlBlock ( const std::string & name,
SharedPtr< ClientControlBlock > creator,
std::string creatorNickname )
inline

◆ ~ChannelControlBlock()

IRC::ChannelControlBlock::~ChannelControlBlock ( )
inline

Member Function Documentation

◆ FindClient()

SharedPtr< ClientControlBlock > IRC::ChannelControlBlock::FindClient ( const std::string & nickname)
inline

◆ IsOperator()

bool IRC::ChannelControlBlock::IsOperator ( const std::string & nickname)
inline

Member Data Documentation

◆ Name

std::string IRC::ChannelControlBlock::Name

◆ Topic

std::string IRC::ChannelControlBlock::Topic

""(empty string) means no topic

◆ Password

std::string IRC::ChannelControlBlock::Password

Check bPrivate before checking this.

◆ Clients

std::map<std::string, WeakPtr< ClientControlBlock > > IRC::ChannelControlBlock::Clients

◆ Operators

std::map<std::string, WeakPtr< ClientControlBlock > > IRC::ChannelControlBlock::Operators

◆ MaxClients

size_t IRC::ChannelControlBlock::MaxClients

'0' means no limit

◆ bInviteOnly

bool IRC::ChannelControlBlock::bInviteOnly

◆ bTopicProtected

bool IRC::ChannelControlBlock::bTopicProtected

Topic settable by channel operator only flag.

◆ bPrivate

bool IRC::ChannelControlBlock::bPrivate

Channel has a password.

◆ InvitedClients

std::map<std::string, WeakPtr< ClientControlBlock > > IRC::ChannelControlBlock::InvitedClients

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