Trippin Cyril
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
trippingcyril::Event Class Reference

Event class to automatically register and unregister event driven classes with modules, simply implement this from any event driven class. More...

#include <Event.h>

Collaboration diagram for trippingcyril::Event:
[legend]

Public Member Functions

 Event (const Module *module)
 
virtual ~Event ()
 
const ModuleGetModule () const
 

Protected Member Functions

event_base * GetEventBase () const
 
evdns_base * GetDNSBase () const
 

Protected Attributes

const Modulemodule
 

Detailed Description

Event class to automatically register and unregister event driven classes with modules, simply implement this from any event driven class.

Constructor & Destructor Documentation

trippingcyril::Event::Event ( const Module module)

General constructor that registers with the module, may be NULL

Parameters
moduleThe module to register this event on
virtual trippingcyril::Event::~Event ( )
virtual

General deconstructor that unregisters from the module

Member Function Documentation

evdns_base* trippingcyril::Event::GetDNSBase ( ) const
protected
event_base* trippingcyril::Event::GetEventBase ( ) const
protected
const Module* trippingcyril::Event::GetModule ( ) const
inline

Used to get the module used to initialize this event

Member Data Documentation

const Module* trippingcyril::Event::module
protected

No need to keep track of the module yourself in your class, just access this one


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