Anope IRC Services  Version 2.0
Public Member Functions | Static Public Member Functions | Data Fields | Static Private Member Functions | Static Private Attributes
Service Class Reference

#include <service.h>

Inheritance diagram for Service:
Inheritance graph
[legend]
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 ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

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_openssl, 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 ( )
inlinevirtual

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 
)
inlinestatic

Definition at line 70 of file service.h.

Referenced by ServiceAlias::ServiceAlias().

static void Service::DelAlias ( const Anope::string t,
const Anope::string n 
)
inlinestatic

Definition at line 76 of file service.h.

Referenced by ServiceAlias::~ServiceAlias().

static Service* Service::FindService ( const std::map< Anope::string, Service * > &  services,
const std::map< Anope::string, Anope::string > *  aliases,
const Anope::string n 
)
inlinestaticprivate
static Service* Service::FindService ( const Anope::string t,
const Anope::string n 
)
inlinestatic

Definition at line 47 of file service.h.

static std::vector<Anope::string> Service::GetServiceKeys ( const Anope::string t)
inlinestatic

Definition at line 60 of file service.h.

Referenced by CommandOSModInfo::Execute(), and SASLService::SendMechs().

void Service::Register ( )
inline

Definition at line 100 of file service.h.

References name.

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
staticprivate

Definition at line 28 of file service.h.

Anope::string Service::name
Module* Service::owner
std::map< Anope::string, std::map< Anope::string, Service * > > Service::Services
staticprivate

Definition at line 27 of file service.h.

Anope::string Service::type

Definition at line 86 of file service.h.


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