CppCommon
1.0.4.1
C++ Common Library
|
#include <reader.h>
Public Member Functions | |
Reader () noexcept=default | |
Reader (const Reader &) noexcept=default | |
Reader (Reader &&) noexcept=default | |
virtual | ~Reader () noexcept=default |
Reader & | operator= (const Reader &) noexcept=default |
Reader & | operator= (Reader &&) noexcept=default |
virtual size_t | Read (void *buffer, size_t size)=0 |
Read a bytes buffer base method. More... | |
std::vector< uint8_t > | ReadAllBytes () |
Read all bytes. More... | |
std::string | ReadAllText () |
Read all text. More... | |
std::vector< std::string > | ReadAllLines () |
Read all text lines. More... | |
Reader interface.
Reader interface is based on a read byte buffer method and provides functionality to read all bytes, text or text lines.
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
virtualdefaultnoexcept |
|
pure virtual |
Read a bytes buffer base method.
buffer | - Buffer to read |
size | - Buffer size |
Implemented in CppCommon::StdInput, CppCommon::Pipe, and CppCommon::File.
std::vector< uint8_t > CppCommon::Reader::ReadAllBytes | ( | ) |
std::vector< std::string > CppCommon::Reader::ReadAllLines | ( | ) |
std::string CppCommon::Reader::ReadAllText | ( | ) |