ADTF File Library
Loading...
Searching...
No Matches
adtf_file::OutputStream Class Referenceabstract

Interface class for an output stream. More...

#include <adtf_file_writer.h>

Public Member Functions

virtual void write (const void *data, size_t data_size)=0
 Writes the data to the output stream.
 
template<typename T>
OutputStreamoperator<< (const T &value)
 template operator to write a standard layout type to the output stream
 
template<>
OutputStreamoperator<< (const std::string &value)
 Specialization for writing strings to an output stream.
 

Detailed Description

Interface class for an output stream.

Member Function Documentation

◆ operator<<() [1/2]

template<>
OutputStream & adtf_file::OutputStream::operator<< ( const std::string & value)

Specialization for writing strings to an output stream.

Parameters
valuethe 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
Tthe type of the standard layout
Parameters
valuethe 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
datathe data to write
data_sizethe data size in bytes

The documentation for this class was generated from the following file: