interface class for input streams
More...
#include <adtf_file_reader.h>
|
virtual void | read (void *destination, size_t count)=0 |
| Reads the count bytes from the stream into destination . More...
|
|
template<typename T > |
InputStream & | operator>> (T &value) |
| Reads a trivially copyable value from the stream. More...
|
|
template<> |
InputStream & | operator>> (std::string &value) |
| Specialization for reading string from a stream. More...
|
|
interface class for input streams
◆ operator>>() [1/2]
template<>
InputStream& adtf_file::InputStream::operator>> |
( |
std::string & |
value | ) |
|
Specialization for reading string from a stream.
- Parameters
-
value | the 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
-
T | the trivially copyable type |
- Parameters
-
- 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
-
destination | the destination to read to |
count | the amount of bytes to read |
The documentation for this class was generated from the following file: