|
C++ edjLibrary SDK
|
This is a base class for the streams. More...
#include <stream.hpp>
Public Member Functions | |
| BaseStream () | |
| Constructs a new empty Base Stream object. More... | |
| BaseStream (uint32_t sd) | |
| Constructs a new initilized Base Stream object. More... | |
| uint32_t | get_sd () const |
| Get the stream descriptor of the stream. More... | |
| bool | is_initialized () const |
| Check whether the stream object has been initialized or not. More... | |
| edjx::error::StreamError | close () |
| Close the stream. More... | |
Protected Attributes | |
| uint32_t | sd |
| The stream descriptor. More... | |
| bool | initialized |
| True if the stream is initialized, false if it is closed. More... | |
This is a base class for the streams.
|
inline |
Constructs a new empty Base Stream object.
|
inline |
Constructs a new initilized Base Stream object.
| sd | Stream descriptor |
| edjx::error::StreamError edjx::stream::BaseStream::close | ( | ) |
Close the stream.
This method cleanly ends the streaming.
|
inline |
Get the stream descriptor of the stream.
The stream descriptor may be undefined if is_open() is false.
|
inline |
Check whether the stream object has been initialized or not.
|
protected |
True if the stream is initialized, false if it is closed.
|
protected |
The stream descriptor.