adtf_file_library  0.13.1
Public Member Functions | List of all members
adtf_file::InputStream Class Referenceabstract

interface class for input streams More...

#include <adtf_file_reader.h>

Public Member Functions

virtual void read (void *destination, size_t count)=0
 Reads the count bytes from the stream into destination. More...
 
template<typename T >
InputStreamoperator>> (T &value)
 Reads a trivially copyable value from the stream. More...
 
template<>
InputStreamoperator>> (std::string &value)
 Specialization for reading string from a stream. More...
 

Detailed Description

interface class for input streams

Member Function Documentation

◆ operator>>() [1/2]

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

Specialization for reading string from a stream.

Parameters
valuethe string value to read
Returns
*this

◆ operator>>() [2/2]

template<typename T >
InputStream& adtf_file::InputStream::operator>> ( T &  value)
inline

Reads a trivially copyable value from the stream.

Template Parameters
Tthe trivially copyable type
Parameters
valuethe value of type T
Returns
*this

◆ read()

virtual void adtf_file::InputStream::read ( void *  destination,
size_t  count 
)
pure virtual

Reads the count bytes from the stream into destination.

Parameters
destinationthe destination to read to
countthe amount of bytes to read

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