![]() |
Max OS 0.3
|
A stream that can be written to. More...
#include <outputStream.h>
Public Member Functions | |
| GenericOutputStream () | |
| __________________________________________Templates__________________________________________________/// | |
| ~GenericOutputStream () | |
| Destructor of the GenericOutputStream class. | |
| void | on_stream_read (Type) override |
| Writes the date that was read from the input stream to the output stream. | |
| void | on_end_of_stream (GenericInputStream< Type > *) override |
| Close the stream and remove it from the list of streams when the end of the stream is reached. | |
| virtual void | write (Type) |
| write an element to the stream. | |
| virtual void | close () |
| Close the stream. | |
| virtual GenericOutputStream< Type > & | operator<< (Type) |
| Overload the << operator to write an element to the stream. | |
Public Member Functions inherited from MaxOS::common::InputStreamProcessor< Type, Type > | |
| InputStreamProcessor () | |
| Creates a new InputStreamProcessor. | |
| InputStreamProcessor (InputStreamEventHandler< Type > *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. | |
Public Member Functions inherited from MaxOS::common::GenericInputStream< Type > | |
| GenericInputStream () | |
| Creates a new GenericInputStream. | |
| GenericInputStream (InputStreamEventHandler< Type > *) | |
| 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< Type > *) |
| Adds a inputStreamEventHandler to the list of internetProtocolHandlers. | |
| void | disconnect_input_stream_event_handler (InputStreamEventHandler< Type > *) |
| 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< Type > | |
| common::Vector< InputStreamEventHandler< Type > * > | m_input_stream_event_handlers |
| List of streams being observed by this handler. | |
A stream that can be written to.
| Type | The type of the elements that will be written to the stream. |
Definition at line 25 of file outputStream.h.
|
default |
__________________________________________Templates__________________________________________________///
Constructor of the GenericOutputStream class.
| Type | The type of the elements that will be written to the stream. |
|
default |
Destructor of the GenericOutputStream class.
| Type | The type of the elements that will be written to the stream. |
|
virtual |
Close the stream.
| Type | The type of the elements that will be written to the stream. |
Definition at line 136 of file outputStream.h.
|
overridevirtual |
Close the stream and remove it from the list of streams when the end of the stream is reached.
| Type | The type of the elements that will be written to the stream. |
| stream | The stream that reached the end. |
Reimplemented from MaxOS::common::InputStreamEventHandler< Type >.
Definition at line 108 of file outputStream.h.
References MaxOS::common::InputStreamProcessor< Type, ProcessorType >::on_end_of_stream().
|
overridevirtual |
Writes the date that was read from the input stream to the output stream.
| Type | The type of the elements that will be written to the stream. |
| read_element | The element that was read from the stream. |
Reimplemented from MaxOS::common::InputStreamEventHandler< Type >.
Definition at line 90 of file outputStream.h.
|
virtual |
Overload the << operator to write an element to the stream.
| Type | The type of the elements that will be written to the stream. |
| write_element | The element that will be written to the stream. |
Definition at line 136 of file outputStream.h.
write an element to the stream.
| Type | The type of the elements that will be written to the stream. |
Definition at line 127 of file outputStream.h.