Savarese Software Research Corporation
service::EventLoop Class Reference

#include <EventLoop.h>

List of all members.

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 34 of file EventLoop.h.


Member Typedef Documentation

Definition at line 40 of file EventLoop.h.


Constructor & Destructor Documentation

service::EventLoop::~EventLoop ( ) [explicit]

Definition at line 75 of file EventLoop.cc.


Member Function Documentation

unsigned int service::EventLoop::count_handlers ( )

Definition at line 77 of file EventLoop.cc.

unsigned int service::EventLoop::count_io_handlers ( )

Definition at line 81 of file EventLoop.cc.

bool service::EventLoop::running ( )

Definition at line 85 of file EventLoop.cc.

void service::EventLoop::stop ( )

Definition at line 251 of file EventLoop.cc.


Member Data Documentation

const EventLoop::EventIO service::EventLoop::Error = EventPort::Error [static]

Definition at line 45 of file EventLoop.h.

const EventLoop::EventIO service::EventLoop::Hangup = EventPort::Hangup [static]

Definition at line 46 of file EventLoop.h.

const EventLoop::EventIO service::EventLoop::None = EventPort::None [static]

Definition at line 42 of file EventLoop.h.

const bool service::EventLoop::Once = true [static]

Definition at line 37 of file EventLoop.h.

const bool service::EventLoop::Persist = false [static]

Definition at line 38 of file EventLoop.h.

const EventLoop::EventIO service::EventLoop::Read = EventPort::Read [static]

Definition at line 43 of file EventLoop.h.

const EventLoop::EventIO service::EventLoop::Write = EventPort::Write [static]

Definition at line 44 of file EventLoop.h.


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

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