ADTF File Library
Loading...
Searching...
No Matches
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.
 
template<typename T>
InputStreamoperator>> (T &value)
 Reads a trivially copyable value from the stream.
 
template<>
InputStreamoperator>> (std::string &value)
 Specialization for reading string from a stream.
 

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: