Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
IRCDMessage Class Referenceabstract

#include <protocol.h>

Inherits Service.

Inherited by IRCDMessage005, IRCDMessage376, IRCDMessageBMask, IRCDMessageBurst, IRCDMessageCertFP, IRCDMessageChaninfo, IRCDMessageChgHost, IRCDMessageChgIdent, IRCDMessageChgIdent, IRCDMessageChgName, IRCDMessageChgName, IRCDMessageEncap, IRCDMessageEncap, IRCDMessageEncap, IRCDMessageEncap, IRCDMessageEncap, IRCDMessageEndburst, IRCDMessageEOB, IRCDMessageEUID, IRCDMessageFHost, IRCDMessageFIdent, IRCDMessageFJoin, IRCDMessageFMode, IRCDMessageFTopic, IRCDMessageIdle, IRCDMessageMetadata, IRCDMessageMetadata, IRCDMessageMode, IRCDMessageMode, IRCDMessageMode, IRCDMessageMode, IRCDMessageNetInfo, IRCDMessageNick, IRCDMessageNick, IRCDMessageNick, IRCDMessageNick, IRCDMessageNick, IRCDMessageNJoin, IRCDMessageOperType, IRCDMessagePass, IRCDMessagePass, IRCDMessagePass, IRCDMessagePass, IRCDMessagePong, IRCDMessagePong, IRCDMessagePong, IRCDMessageRSQuit, IRCDMessageSASL, IRCDMessageSDesc, IRCDMessageServer, IRCDMessageServer, IRCDMessageServer, IRCDMessageServer, IRCDMessageServer, IRCDMessageServer, IRCDMessageServer, IRCDMessageServer, IRCDMessageSetHost, IRCDMessageSetIdent, IRCDMessageSetIdent, IRCDMessageSetName, IRCDMessageSID, IRCDMessageSJoin, IRCDMessageSJoin, IRCDMessageSJoin, IRCDMessageSVSMode, IRCDMessageTBurst, IRCDMessageTBurst, IRCDMessageTime, IRCDMessageTMode, IRCDMessageTopic, IRCDMessageTopic, IRCDMessageTopic, IRCDMessageUID, IRCDMessageUID, IRCDMessageUID, IRCDMessageUID, IRCDMessageUmode2, Message::Away, Message::Capab, Message::Error, Message::Invite, Message::Join, Message::Kick, Message::Kill, Message::Mode, Message::MOTD, Message::Notice, Message::Part, Message::Ping, Message::Privmsg, Message::Quit, Message::SQuit, Message::Stats, Message::Time, Message::Topic, Message::Version, and Message::Whois.

Collaboration diagram for IRCDMessage:
Collaboration graph
[legend]

Public Member Functions

 IRCDMessage (Module *owner, const Anope::string &n, unsigned p=0)
 
unsigned GetParamCount () const
 
virtual void Run (MessageSource &, const std::vector< Anope::string > &params)=0
 
void SetFlag (IRCDMessageFlag f)
 
bool HasFlag (IRCDMessageFlag f) const
 
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
 
virtual ~Service ()
 
void Register ()
 
void Unregister ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Private Attributes

Anope::string name
 
unsigned param_count
 
std::set< IRCDMessageFlagflags
 

Additional Inherited Members

- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
 
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
 
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
 
static void DelAlias (const Anope::string &t, const Anope::string &n)
 
- Data Fields inherited from Service
Moduleowner
 
Anope::string type
 
Anope::string name
 

Detailed Description

Definition at line 272 of file protocol.h.

Constructor & Destructor Documentation

IRCDMessage::IRCDMessage ( Module owner,
const Anope::string n,
unsigned  p = 0 
)

Definition at line 493 of file protocol.cpp.

Member Function Documentation

unsigned IRCDMessage::GetParamCount ( ) const

Definition at line 497 of file protocol.cpp.

References param_count.

bool IRCDMessage::HasFlag ( IRCDMessageFlag  f) const
inline

Definition at line 283 of file protocol.h.

virtual void IRCDMessage::Run ( MessageSource ,
const std::vector< Anope::string > &  params 
)
pure virtual

Implemented in IRCDMessageUID, IRCDMessageTime, IRCDMessageSQuit, IRCDMessageServer, IRCDMessageSetIdent, IRCDMessageRSQuit, IRCDMessageOperType, IRCDMessageNick, IRCDMessageUmode2, IRCDMessageTopic, IRCDMessageMode, IRCDMessageSJoin, IRCDMessageMetadata, IRCDMessageServer, IRCDMessageSetName, IRCDMessageIdle, IRCDMessageSetIdent, IRCDMessageFTopic, IRCDMessageSetHost, IRCDMessageSDesc, IRCDMessageFMode, IRCDMessageSASL, IRCDMessagePong, IRCDMessageFJoin, IRCDMessageFHost, IRCDMessageEndburst, IRCDMessageNick, IRCDMessageEncap, IRCDMessageChgName, IRCDMessageNetInfo, IRCDMessageChgIdent, IRCDMessageMode, IRCDMessageChgName, IRCDMessageFIdent, IRCDMessageChgIdent, IRCDMessageChgHost, IRCDMessageEncap, IRCDMessageCapab, IRCDMessageTopic, IRCDMessageCertFP, IRCDMessageServer, IRCDMessageUID, IRCDMessageTMode, IRCDMessageCapab, IRCDMessagePong, IRCDMessageTBurst, IRCDMessageSVSMode, IRCDMessageNJoin, IRCDMessageTopic, IRCDMessageNick, IRCDMessageSJoin, IRCDMessageSID, IRCDMessageSJoin, IRCDMessageServer, IRCDMessageServer, IRCDMessagePong, IRCDMessageMode, IRCDMessagePass, IRCDMessageNick, IRCDMessageNick, IRCDMessageCapab, IRCDMessageJoin, IRCDMessageEOB, IRCDMessageMetadata, IRCDMessageBMask, IRCDMessageMode, IRCDMessageBurst, IRCDMessageJoin, IRCDMessageUID, IRCDMessagePass, IRCDMessageChaninfo, IRCDMessageServer, IRCDMessageServer, IRCDMessageEUID, IRCDMessage376, IRCDMessagePass, IRCDMessageUID, IRCDMessage005, IRCDMessageTBurst, IRCDMessageEncap, Message::Whois, Message::Version, IRCDMessageEncap, Message::Topic, IRCDMessageServer, Message::Time, IRCDMessagePass, Message::Stats, Message::SQuit, Message::Quit, Message::Privmsg, IRCDMessageEncap, Message::Ping, Message::Part, Message::Notice, Message::MOTD, Message::Mode, Message::Kill, Message::Kick, Message::Join, Message::Invite, Message::Error, Message::Capab, and Message::Away.

void IRCDMessage::SetFlag ( IRCDMessageFlag  f)
inline

Definition at line 282 of file protocol.h.

Referenced by IRCDMessage005::IRCDMessage005(), IRCDMessageBMask::IRCDMessageBMask(), IRCDMessageBurst::IRCDMessageBurst(), IRCDMessageCapab::IRCDMessageCapab(), IRCDMessageCertFP::IRCDMessageCertFP(), IRCDMessageChaninfo::IRCDMessageChaninfo(), IRCDMessageChgName::IRCDMessageChgName(), IRCDMessageEncap::IRCDMessageEncap(), IRCDMessageEndburst::IRCDMessageEndburst(), IRCDMessageEOB::IRCDMessageEOB(), IRCDMessageEUID::IRCDMessageEUID(), IRCDMessageFHost::IRCDMessageFHost(), IRCDMessageFIdent::IRCDMessageFIdent(), IRCDMessageFJoin::IRCDMessageFJoin(), IRCDMessageFMode::IRCDMessageFMode(), IRCDMessageMetadata::IRCDMessageMetadata(), IRCDMessageMode::IRCDMessageMode(), IRCDMessageNetInfo::IRCDMessageNetInfo(), IRCDMessageNick::IRCDMessageNick(), IRCDMessageNJoin::IRCDMessageNJoin(), IRCDMessageOperType::IRCDMessageOperType(), IRCDMessagePass::IRCDMessagePass(), IRCDMessagePong::IRCDMessagePong(), IRCDMessageRSQuit::IRCDMessageRSQuit(), IRCDMessageSASL::IRCDMessageSASL(), IRCDMessageSDesc::IRCDMessageSDesc(), IRCDMessageServer::IRCDMessageServer(), IRCDMessageSetHost::IRCDMessageSetHost(), IRCDMessageSetIdent::IRCDMessageSetIdent(), IRCDMessageSetName::IRCDMessageSetName(), IRCDMessageSID::IRCDMessageSID(), IRCDMessageSJoin::IRCDMessageSJoin(), IRCDMessageSVSMode::IRCDMessageSVSMode(), IRCDMessageTBurst::IRCDMessageTBurst(), IRCDMessageTMode::IRCDMessageTMode(), IRCDMessageTopic::IRCDMessageTopic(), IRCDMessageUID::IRCDMessageUID(), and IRCDMessageUmode2::IRCDMessageUmode2().

Field Documentation

std::set<IRCDMessageFlag> IRCDMessage::flags
private

Definition at line 276 of file protocol.h.

Anope::string IRCDMessage::name
private

Definition at line 274 of file protocol.h.

unsigned IRCDMessage::param_count
private

Definition at line 275 of file protocol.h.

Referenced by GetParamCount().


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