adtf_file_library  0.13.1
Public Member Functions | List of all members
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. More...
 
template<typename T >
OutputStreamoperator<< (const T &value)
 template operator to write a standard layout type to the output stream More...
 
template<>
OutputStreamoperator<< (const std::string &value)
 Specialization for writing strings to an output stream. More...
 

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:

Copyright © CARIAD SE.
Generated on Fri Apr 19 2024 by doxygen 1.9.1
GIT Commit Hash: 82d535f82776c20b12fc60740bdae991b62444a7