stream probe.
More...
#include <probe.hpp>
◆ StreamProbe() [1/3]
| dconv::StreamProbe::StreamProbe |
( |
std::istream & | in | ) |
|
|
inlineexplicit |
default constructor.
- Parameters
-
◆ StreamProbe() [2/3]
| dconv::StreamProbe::StreamProbe |
( |
const StreamProbe & | other | ) |
|
|
delete |
copy constructor.
- Parameters
-
◆ StreamProbe() [3/3]
| dconv::StreamProbe::StreamProbe |
( |
StreamProbe && | other | ) |
|
|
delete |
move constructor.
- Parameters
-
◆ ~StreamProbe()
| dconv::StreamProbe::~StreamProbe |
( |
| ) |
|
|
default |
◆ get()
| int dconv::StreamProbe::get |
( |
| ) |
|
|
inlinenoexcept |
extracts character.
- Returns
- extracted character.
◆ getIf()
| bool dconv::StreamProbe::getIf |
( |
char | expected | ) |
|
|
inlinenoexcept |
extracts expected character.
- Parameters
-
| expected | expected character. |
- Returns
- true if extracted, false otherwise.
◆ getIfNoCase()
| bool dconv::StreamProbe::getIfNoCase |
( |
char | expected | ) |
|
|
inlinenoexcept |
extracts expected character (case insensitive, ASCII-only).
- Parameters
-
| expected | expected character. |
- Returns
- true if extracted, false otherwise.
◆ operator=() [1/2]
copy assignment.
- Parameters
-
- Returns
- a reference of the current object.
◆ operator=() [2/2]
move assignment.
- Parameters
-
- Returns
- a reference of the current object.
◆ peek()
| int dconv::StreamProbe::peek |
( |
| ) |
const |
|
inlinenoexcept |
get character without extracting it.
- Returns
- extracted character.
◆ read()
| size_t dconv::StreamProbe::read |
( |
char * | buf, |
|
|
size_t | count ) |
|
inlinenoexcept |
read characters.
- Parameters
-
| buf | output buffer. |
| count | number of characters to read. |
- Returns
- number of characters read.
◆ readDigits()
| size_t dconv::StreamProbe::readDigits |
( |
uint64_t & | value, |
|
|
size_t | max = std::numeric_limits<size_t>::max () ) |
|
inlinenoexcept |
read consecutive digits.
- Parameters
-
| value | value the digits are appended to. |
| max | maximum number of digits to read. |
- Returns
- number of digits read.
The documentation for this class was generated from the following file: