Interface class for an output stream.
More...
#include <adtf_file_writer.h>
|
virtual void | write (const void *data, size_t data_size)=0 |
| Writes the data to the output stream. More...
|
|
template<typename T > |
OutputStream & | operator<< (const T &value) |
| template operator to write a standard layout type to the output stream More...
|
|
template<> |
OutputStream & | operator<< (const std::string &value) |
| Specialization for writing strings to an output stream. More...
|
|
Interface class for an output stream.
◆ operator<<() [1/2]
template<>
OutputStream& adtf_file::OutputStream::operator<< |
( |
const std::string & |
value | ) |
|
Specialization for writing strings to an output stream.
- Parameters
-
value | the string value to write |
- Returns
- *this
◆ operator<<() [2/2]
template<typename T >
OutputStream& adtf_file::OutputStream::operator<< |
( |
const T & |
value | ) |
|
|
inline |
template operator to write a standard layout type to the output stream
- Template Parameters
-
T | the type of the standard layout |
- Parameters
-
value | the instance of the T |
- Returns
- *this
◆ write()
virtual void adtf_file::OutputStream::write |
( |
const void * |
data, |
|
|
size_t |
data_size |
|
) |
| |
|
pure virtual |
Writes the data to the output stream.
- Parameters
-
data | the data to write |
data_size | the data size in bytes |
The documentation for this class was generated from the following file: