Anope IRC Services  Version 2.0
Public Types | Public Member Functions
SessionService Class Referenceabstract

#include <os_session.h>

Inheritance diagram for SessionService:
Inheritance graph
[legend]
Collaboration diagram for SessionService:
Collaboration graph
[legend]

Public Types

typedef TR1NS::unordered_map
< cidr, Session *, cidr::hash
SessionMap
 
typedef std::vector< Exception * > ExceptionVector
 

Public Member Functions

 SessionService (Module *m)
 
virtual ExceptionCreateException ()=0
 
virtual void AddException (Exception *e)=0
 
virtual void DelException (Exception *e)=0
 
virtual ExceptionFindException (User *u)=0
 
virtual ExceptionFindException (const Anope::string &host)=0
 
virtual ExceptionVectorGetExceptions ()=0
 
virtual SessionFindSession (const Anope::string &ip)=0
 
virtual SessionMapGetSessions ()=0
 
- 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)
 

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 27 of file os_session.h.

Member Typedef Documentation

Definition at line 31 of file os_session.h.

typedef TR1NS::unordered_map<cidr, Session *, cidr::hash> SessionService::SessionMap

Definition at line 30 of file os_session.h.

Constructor & Destructor Documentation

SessionService::SessionService ( Module m)
inline

Definition at line 33 of file os_session.h.

Member Function Documentation

virtual void SessionService::AddException ( Exception e)
pure virtual

Implemented in MySessionService.

virtual Exception* SessionService::CreateException ( )
pure virtual

Implemented in MySessionService.

virtual void SessionService::DelException ( Exception e)
pure virtual

Implemented in MySessionService.

virtual Exception* SessionService::FindException ( User u)
pure virtual

Implemented in MySessionService.

virtual Exception* SessionService::FindException ( const Anope::string host)
pure virtual

Implemented in MySessionService.

virtual Session* SessionService::FindSession ( const Anope::string ip)
pure virtual

Implemented in MySessionService.

virtual ExceptionVector& SessionService::GetExceptions ( )
pure virtual

Implemented in MySessionService.

virtual SessionMap& SessionService::GetSessions ( )
pure virtual

Implemented in MySessionService.


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