![]() |
Max OS 0.3
|
Handles read and end of stream events from a set of streams. More...
#include <inputStream.h>
Public Member Functions | |
| InputStreamEventHandler () | |
| _______________________________________________TEMPLATES_________________________________________________________________/// | |
| ~InputStreamEventHandler () | |
| Destroys the InputStreamProcessor and disconnects it from all streams. | |
| virtual void | on_stream_read (Type) |
| Called when data is read from a stream (overridden by subclasses) | |
| virtual void | on_end_of_stream (GenericInputStream< Type > *) |
| Called when a stream has finished. Removes the stream from the array of streams. | |
Protected Attributes | |
| common::Vector< GenericInputStream< Type > * > | m_generic_input_streams |
| List of streams being observed by this handler. | |
Friends | |
| class | GenericInputStream< Type > |
Handles read and end of stream events from a set of streams.
| Type | The type of data the stream is handling |
Definition at line 29 of file inputStream.h.
|
default |
_______________________________________________TEMPLATES_________________________________________________________________///
Creates a new InputStreamProcessor
| Type | the type of data the stream is handling |
Destroys the InputStreamProcessor and disconnects it from all streams.
| Type | the type of data the stream is handling |
Definition at line 161 of file inputStream.h.
|
virtual |
Called when a stream has finished. Removes the stream from the array of streams.
| Type | The type of data the stream is handling |
| stream | The stream that has finished |
Reimplemented in MaxOS::common::GenericOutputStream< string >, MaxOS::common::InputStreamProcessor< string, string >, MaxOS::common::InputStreamBuffer< Type >, MaxOS::common::GenericOutputStream< Type >, MaxOS::common::InputStreamProcessor< Type, ProcessorType >, MaxOS::common::InputStreamProcessor< Type, Type * >, and MaxOS::common::InputStreamProcessor< Type, Type >.
Definition at line 184 of file inputStream.h.
Referenced by MaxOS::common::GenericInputStream< Type >::disconnect_input_stream_event_handler(), and MaxOS::common::InputStreamProcessor< Type, ProcessorType >::on_end_of_stream().
|
virtual |
Called when data is read from a stream (overridden by subclasses)
| Type | the type of data the stream is handling |
Reimplemented in MaxOS::common::GenericOutputStream< string >, MaxOS::common::InputStreamSocket< Type >, MaxOS::common::InputStreamBuffer< Type >, and MaxOS::common::GenericOutputStream< Type >.
Definition at line 174 of file inputStream.h.
Referenced by MaxOS::common::InputStreamBuffer< Type >::flush(), and MaxOS::common::InputStreamSocket< Type >::on_stream_read().
Definition at line 416 of file inputStream.h.
|
protected |
List of streams being observed by this handler.
Definition at line 33 of file inputStream.h.