Savarese Software Research Corporation
EventLoop Class Reference

#include <EventLoop.h>

Public Types

typedef int  EventIO
 

Public Member Functions

EventLoop() SSRC_DECL_THROW(std  ~EventLoop ()
 
unsigned int  count_handlers ()
 
unsigned int  count_io_handlers ()
 
bool  running ()
 
void  start ()
 
void  stop ()
 

Public Attributes

void add_handler(EventHandler &handler, const int events, const TimeValue &timeout=InfiniteTimeValue, const bool once=Persist) SSRC_DECL_THROW(std void  remove_handler (EventHandler &handler)
 

Static Public Attributes

static const bool  Once = true
 
static const bool  Persist = false
 
static const EventIO  None = EventPort::None
 
static const EventIO  Read = EventPort::Read
 
static const EventIO  Write = EventPort::Write
 
static const EventIO  Error = EventPort::Error
 
static const EventIO  Hangup = EventPort::Hangup
 

Detailed Description

Definition at line 35 of file EventLoop.h.

Member Typedef Documentation

§ EventIO

typedef int EventLoop::EventIO

Definition at line 41 of file EventLoop.h.

Constructor & Destructor Documentation

§ ~EventLoop()

EventLoop::~EventLoop ( )
explicitdefault

Member Function Documentation

§ count_handlers()

unsigned int EventLoop::count_handlers ( )

Definition at line 76 of file EventLoop.cc.

§ count_io_handlers()

unsigned int EventLoop::count_io_handlers ( )

Definition at line 80 of file EventLoop.cc.

§ running()

bool EventLoop::running ( )

§ start()

§ stop()

void EventLoop::stop ( )

Definition at line 257 of file EventLoop.cc.

References __END_NS_SSRC_WISP_SERVICE.

Member Data Documentation

§ Error

const EventLoop::EventIO EventLoop::Error = EventPort::Error
static

Definition at line 46 of file EventLoop.h.

Referenced by EventInfo::error_event().

§ Hangup

const EventLoop::EventIO EventLoop::Hangup = EventPort::Hangup
static

Definition at line 47 of file EventLoop.h.

Referenced by EventInfo::hangup_event().

§ None

const EventLoop::EventIO EventLoop::None = EventPort::None
static

§ Once

const bool EventLoop::Once = true
static

Definition at line 38 of file EventLoop.h.

§ Persist

const bool EventLoop::Persist = false
static

Definition at line 39 of file EventLoop.h.

§ Read

const EventLoop::EventIO EventLoop::Read = EventPort::Read
static

Definition at line 44 of file EventLoop.h.

Referenced by EventInfo::read_event(), and ServiceEventHandler< PP >::start().

§ remove_handler

void EventLoop::remove_handler

§ Write

const EventLoop::EventIO EventLoop::Write = EventPort::Write
static

Definition at line 45 of file EventLoop.h.

Referenced by EventInfo::write_event().


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

Savarese Software Research Corporation
Copyright © 2006-2012 Savarese Software Research Corporation. All rights reserved.