Standard input stream.
More...
#include <stream.h>
Standard input stream.
Thread-safe.
Definition at line 24 of file stream.h.
◆ StdInput() [1/3]
CppCommon::StdInput::StdInput |
( |
| ) |
|
◆ StdInput() [2/3]
CppCommon::StdInput::StdInput |
( |
const StdInput & |
| ) |
|
|
delete |
◆ StdInput() [3/3]
CppCommon::StdInput::StdInput |
( |
StdInput && |
stream | ) |
|
|
delete |
◆ ~StdInput()
CppCommon::StdInput::~StdInput |
( |
| ) |
|
|
virtual |
◆ IsValid()
bool CppCommon::StdInput::IsValid |
( |
| ) |
const |
|
noexcept |
◆ operator bool()
CppCommon::StdInput::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
Check if the stream is valid.
Definition at line 36 of file stream.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Read()
size_t CppCommon::StdInput::Read |
( |
void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
overridevirtual |
Read a bytes buffer from the stream.
- Parameters
-
buffer | - Buffer to read |
size | - Buffer size |
- Returns
- Count of read bytes
Implements CppCommon::Reader.
Definition at line 254 of file stream.cpp.
◆ ReadAllBytes()
std::vector< uint8_t > CppCommon::Reader::ReadAllBytes |
Read all bytes.
- Returns
- Bytes buffer
Definition at line 46 of file reader.cpp.
◆ ReadAllLines()
std::vector< std::string > CppCommon::Reader::ReadAllLines |
Read all text lines.
- Returns
- Text lines
Definition at line 56 of file reader.cpp.
◆ ReadAllText()
std::string CppCommon::Reader::ReadAllText |
Read all text.
- Returns
- Text string
Definition at line 51 of file reader.cpp.
◆ stream()
void * CppCommon::StdInput::stream |
( |
| ) |
const |
|
noexcept |
Get the native stream handler.
Definition at line 252 of file stream.cpp.
◆ swap()
void CppCommon::StdInput::swap |
( |
StdInput & |
stream | ) |
|
|
noexcept |
◆ swap
The documentation for this class was generated from the following files: