Inheritance diagram for CFileEvent::CFileEventReactor:

Public Member Functions | |
| CFileEventReactor (const STD(string)&rName, CFileEvent &rOwner) | |
| ~CFileEventReactor () | |
| virtual void | OnReadable (CFdMonitor &rMonitor, int fd) |
| virtual void | OnWritable (CFdMonitor &rMonitor, int fd) |
| virtual void | OnException (CFdMonitor &rMonitor, int fd) |
| virtual void | OnTimeout (CEventMonitor &rMonitor) |
Private Attributes | |
| CFileEvent & | m_rOwner |
| Owner of us. | |
Definition at line 349 of file CFileEvent.h.
|
||||||||||||
|
|
|
|
Definition at line 354 of file CFileEvent.h. |
|
||||||||||||
|
Called when an exceptional condition is encountered on a file. We create an iostream and bounce the call back to m_rOwner's OnException. This creates the look and feel of a monolithic Event class. Reimplemented from CFdReactor. Definition at line 378 of file CFileEvent.cpp. References m_rOwner, and CFileEvent::OnException(). |
|
||||||||||||
|
Called whenever the file becomes readable. We create an istream for the file, and call back to m_rOwner's OnReadable member. This all makes the Event seem like a monolithic unit to the user.... They just subclass it, open a file in an appropriate way and poof.
Reimplemented from CFdReactor. Definition at line 349 of file CFileEvent.cpp. References m_rOwner, and CFileEvent::OnReadable(). |
|
|
Called when a wait on the file event times out.
Reimplemented from CReactor. Definition at line 390 of file CFileEvent.cpp. References CFileEvent::getFd(), m_rOwner, and CFileEvent::OnTimeout(). |
|
||||||||||||
|
Called when a file descriptor becomes writable. We just create a stream and bounce the call back to the CFileEvent's OnWritable member. This presents a monolithic look and feel to the end user of this library.
Reimplemented from CFdReactor. Definition at line 367 of file CFileEvent.cpp. References m_rOwner, and CFileEvent::OnWritable(). |
|
|
Owner of us.
Definition at line 351 of file CFileEvent.h. Referenced by OnException(), OnReadable(), OnTimeout(), and OnWritable(). |
1.3.9.1