Scale Stack 0.3 Developer Documentation

scalestack::event::test::handler Class Reference

#include <handler.h>

Inheritance diagram for scalestack::event::test::handler:
scalestack::event::handler

Public Types

enum  state {
  STATE_NONE, STATE_START, STATE_RUN, STATE_TIMER,
  STATE_READ, STATE_WRITE, STATE_DONE
}

Public Member Functions

 handler (test &test, handler::state fatal)
 ~handler ()
void started (void)
void timer_expired (void)
void close_file_descriptor (int file_descriptor)
void read_ready (int file_descriptor)
void write_ready (int file_descriptor)
void run (void)

Private Member Functions

 handler (const handler &)
handleroperator= (const handler &)

Private Attributes

handler::state _state
handler::state _fatal
size_t _close_count
test_test
int _pipe [2]

Detailed Description

Definition at line 38 of file handler.h.


Member Enumeration Documentation

Enumerator:
STATE_NONE 
STATE_START 
STATE_RUN 
STATE_TIMER 
STATE_READ 
STATE_WRITE 
STATE_DONE 

Definition at line 42 of file handler.h.


Constructor & Destructor Documentation

scalestack::event::test::handler::handler ( test test,
handler::state  fatal 
)

Definition at line 39 of file handler.cc.

scalestack::event::test::handler::~handler (  )  [virtual]

Reimplemented from scalestack::event::handler.

Definition at line 52 of file handler.cc.

scalestack::event::test::handler::handler ( const handler  )  [private]

Don't allow copying of objects.


Member Function Documentation

void scalestack::event::test::handler::started ( void   )  [virtual]

This method is called after the event service has added the handler and is ready to be started.

Reimplemented from scalestack::event::handler.

Definition at line 63 of file handler.cc.

void scalestack::event::test::handler::timer_expired ( void   )  [virtual]

This is called when the timer expires.

Reimplemented from scalestack::event::handler.

Definition at line 78 of file handler.cc.

void scalestack::event::test::handler::close_file_descriptor ( int  file_descriptor  )  [virtual]

This is called when a previously set file descriptor is no longer in use. The default behavior is to call close(2).

Reimplemented from scalestack::event::handler.

Definition at line 100 of file handler.cc.

void scalestack::event::test::handler::read_ready ( int  file_descriptor  )  [virtual]

This is called when the file descriptor is ready for reading.

Reimplemented from scalestack::event::handler.

Definition at line 105 of file handler.cc.

void scalestack::event::test::handler::write_ready ( int  file_descriptor  )  [virtual]

This is called when the file descriptor is ready for writing.

Reimplemented from scalestack::event::handler.

Definition at line 116 of file handler.cc.

void scalestack::event::test::handler::run ( void   )  [virtual]

This is called when the event service receives a run_now() request.

Reimplemented from scalestack::event::handler.

Definition at line 127 of file handler.cc.

handler& scalestack::event::test::handler::operator= ( const handler  )  [private]

Don't allow assignment of objects.


Field Documentation

Definition at line 81 of file handler.h.

Definition at line 82 of file handler.h.

Definition at line 83 of file handler.h.

Definition at line 84 of file handler.h.

Definition at line 85 of file handler.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 17 13:10:22 2011 by  doxygen 1.6.3