#include <handler.h>
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 &) | |
| handler & | operator= (const handler &) |
Private Attributes | |
| handler::state | _state |
| handler::state | _fatal |
| size_t | _close_count |
| test & | _test |
| int | _pipe [2] |
Definition at line 38 of file handler.h.
| 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.
| 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.
Don't allow assignment of objects.
size_t scalestack::event::test::handler::_close_count [private] |
test& scalestack::event::test::handler::_test [private] |
int scalestack::event::test::handler::_pipe[2] [private] |
1.6.3