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

typedef int EventLoop::EventIO

Definition at line 41 of file EventLoop.h.

Constructor & Destructor Documentation

EventLoop::~EventLoop ( )
explicitdefault

Member Function Documentation

unsigned int EventLoop::count_handlers ( )

Definition at line 76 of file EventLoop.cc.

unsigned int EventLoop::count_io_handlers ( )

Definition at line 80 of file EventLoop.cc.

bool EventLoop::running ( )

Definition at line 84 of file EventLoop.cc.

void EventLoop::stop ( )

Definition at line 257 of file EventLoop.cc.

Member Data Documentation

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

Definition at line 46 of file EventLoop.h.

Referenced by EventInfo::error_event().

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

Definition at line 47 of file EventLoop.h.

Referenced by EventInfo::hangup_event().

const EventLoop::EventIO EventLoop::None = EventPort::None
static
const bool EventLoop::Once = true
static

Definition at line 38 of file EventLoop.h.

const bool EventLoop::Persist = false
static

Definition at line 39 of file EventLoop.h.

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().

void EventLoop::remove_handler
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.