Public Member Functions | Static Public Member Functions | Data Fields | Static Private Member Functions | Static Private Attributes

Service Class Reference

#include <service.h>

Inherits Base.

Inherited by AccessProvider, Command, DNS::Manager, Encryption::Provider, ForbidService, GlobalService, HTTPProvider, IgnoreService, IRCDMessage, IRCDProto, LDAPProvider, MemoServService, NewsService, NickServService, Panel, RegexProvider, SessionService, SQL::Provider, SSLService, XLineManager, and XMLRPCServiceInterface.

Collaboration diagram for Service:
Collaboration graph
[legend]

Public Member Functions

 Service (Module *o, const Anope::string &t, const Anope::string &n)
virtual ~Service ()
void Register ()
void Unregister ()

Static Public Member Functions

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

Moduleowner
Anope::string type
Anope::string name

Static Private Member Functions

static ServiceFindService (const std::map< Anope::string, Service * > &services, const std::map< Anope::string, Anope::string > *aliases, const Anope::string &n)

Static Private Attributes

static std::map< Anope::string,
std::map< Anope::string,
Service * > > 
Services
static std::map< Anope::string,
std::map< Anope::string,
Anope::string > > 
Aliases

Detailed Description

Anything that inherits from this class can be referred to using ServiceReference. Any interfaces provided by modules, such as commands, use this. This is also used for modules that publish a service (m_ssl, etc).

Definition at line 25 of file service.h.


Constructor & Destructor Documentation

Service::Service ( Module o,
const Anope::string t,
const Anope::string n 
) [inline]

Definition at line 90 of file service.h.

virtual Service::~Service (  )  [inline, virtual]

Definition at line 95 of file service.h.


Member Function Documentation

static void Service::AddAlias ( const Anope::string t,
const Anope::string n,
const Anope::string v 
) [inline, static]

Definition at line 70 of file service.h.

Referenced by ServiceAlias::ServiceAlias().

static void Service::DelAlias ( const Anope::string t,
const Anope::string n 
) [inline, static]

Definition at line 76 of file service.h.

References Anope::string::erase().

Referenced by ServiceAlias::~ServiceAlias().

static Service* Service::FindService ( const Anope::string t,
const Anope::string n 
) [inline, static]

Definition at line 47 of file service.h.

static Service* Service::FindService ( const std::map< Anope::string, Service * > &  services,
const std::map< Anope::string, Anope::string > *  aliases,
const Anope::string n 
) [inline, static, private]

Definition at line 30 of file service.h.

Referenced by ServiceReference< SSLService >::operator bool().

static std::vector<Anope::string> Service::GetServiceKeys ( const Anope::string t  )  [inline, static]

Definition at line 60 of file service.h.

Referenced by CommandOSModInfo::Execute().

void Service::Register (  )  [inline]

Definition at line 100 of file service.h.

void Service::Unregister (  )  [inline]

Definition at line 108 of file service.h.


Field Documentation

std::map< Anope::string, std::map< Anope::string, Anope::string > > Service::Aliases [static, private]

Definition at line 28 of file service.h.

std::map< Anope::string, std::map< Anope::string, Service * > > Service::Services [static, private]

Definition at line 27 of file service.h.

Reimplemented in XLineManager.

Definition at line 86 of file service.h.

Referenced by XOPBase::DoDel(), and XOPBase::DoList().


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