![]() |
Max OS 0.3
|
Converts one stream data type into another. More...
#include <inputStream.h>
Public Member Functions | |
| InputStreamProcessor () | |
| Creates a new InputStreamProcessor. | |
| InputStreamProcessor (InputStreamEventHandler< ProcessorType > *generic_stream_event_handler) | |
| Creates a new InputStreamProcessor. | |
| ~InputStreamProcessor () | |
| Destroys the InputStreamProcessor. | |
| void | on_end_of_stream (GenericInputStream< Type > *stream) override |
| Called when a stream has finished. Passes the event on to the handlers and then removes the stream from the array of streams. | |
Public Member Functions inherited from MaxOS::common::InputStreamEventHandler< Type > | |
| 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) | |
Public Member Functions inherited from MaxOS::common::GenericInputStream< ProcessorType > | |
| GenericInputStream () | |
| Creates a new GenericInputStream. | |
| GenericInputStream (InputStreamEventHandler< ProcessorType > *) | |
| Creates a new GenericInputStream and connects it to the handler. | |
| ~GenericInputStream () | |
| Destroys the GenericInputStream and disconnects all handlers. | |
| void | connect_input_stream_event_handler (InputStreamEventHandler< ProcessorType > *) |
| Adds a inputStreamEventHandler to the list of internetProtocolHandlers. | |
| void | disconnect_input_stream_event_handler (InputStreamEventHandler< ProcessorType > *) |
| Removes a handler from the list of handlers. | |
Additional Inherited Members | |
Protected Attributes inherited from MaxOS::common::InputStreamEventHandler< Type > | |
| common::Vector< GenericInputStream< Type > * > | m_generic_input_streams |
| List of streams being observed by this handler. | |
Protected Attributes inherited from MaxOS::common::GenericInputStream< ProcessorType > | |
| common::Vector< InputStreamEventHandler< ProcessorType > * > | m_input_stream_event_handlers |
| List of streams being observed by this handler. | |
Converts one stream data type into another.
| Type | |
| ProcessorType |
Definition at line 49 of file inputStream.h.
| MaxOS::common::InputStreamProcessor< Type, ProcessorType >::InputStreamProcessor | ( | ) |
Creates a new InputStreamProcessor.
| Type | The type of data the stream is handling |
| ProcessorType | The type of data to convert the data into via the processor |
Definition at line 197 of file inputStream.h.
|
explicit |
Creates a new InputStreamProcessor.
| Type | The type of data the stream is handling |
| ProcessorType | The type of data to convert the data into via the processor |
| generic_stream_event_handler | The event handler to handle the data |
Definition at line 210 of file inputStream.h.
|
default |
Destroys the InputStreamProcessor.
| Type | The type of data the stream is handling |
| ProcessorType | The type of data to convert the data into via the processor |
|
overridevirtual |
Called when a stream has finished. Passes the event on to the handlers and then removes the stream from the array of streams.
| Type | The type of data the stream is handling |
| ProcessorType | The type of data to convert the data into via the processor |
| stream | The stream that has finished |
Reimplemented from MaxOS::common::InputStreamEventHandler< Type >.
Definition at line 231 of file inputStream.h.
References MaxOS::common::InputStreamEventHandler< Type >::on_end_of_stream().
Referenced by MaxOS::common::InputStreamBuffer< Type >::on_end_of_stream(), and MaxOS::common::GenericOutputStream< Type >::on_end_of_stream().