|
join 1.0
lightweight network framework library
|
basic stream view. More...
#include <view.hpp>
Public Types | |
| using | ViewPos = std::streampos |
Public Member Functions | |
| BasicStreamView (std::istream &in) | |
| default constructor. | |
| BasicStreamView (const BasicStreamView &other)=delete | |
| copy constructor. | |
| BasicStreamView & | operator= (const BasicStreamView &other)=delete |
| copy assignment. | |
| BasicStreamView (BasicStreamView &&other)=delete | |
| move constructor. | |
| BasicStreamView & | operator= (BasicStreamView &&other)=delete |
| move assignment. | |
| ~BasicStreamView ()=default | |
| destroy instance. | |
| int | peek () const noexcept |
| get character without extracting it. | |
| int | get () noexcept |
| extracts character. | |
| bool | getIf (char expected) noexcept |
| extracts expected character. | |
| bool | getIfNoCase (char expected) noexcept |
| extracts expected character (case insensitive, ASCII-only). | |
| size_t | read (char *buf, size_t count) noexcept |
| read characters. | |
| void | readUntilEscaped (std::string &out) noexcept |
| read characters until escaped. | |
| int | skipWhitespaces () noexcept |
| skip whitespaces. | |
| int | skipWhitespacesAndComments () noexcept |
| skip whitespaces and comments. | |
| template<bool S = Seekable> | |
| std::enable_if< S, ViewPos >::type | tell () const noexcept |
| get input position indicator. | |
| template<bool S = Seekable> | |
| std::enable_if< S, void >::type | seek (ViewPos pos) noexcept |
| seek to the specified position. | |
basic stream view.
| using join::BasicStreamView< Seekable >::ViewPos = std::streampos |
|
inline |
default constructor.
| in | input stream. |
|
delete |
copy constructor.
| other | object to copy. |
|
delete |
move constructor.
| other | object to move. |
|
default |
destroy instance.
|
inlinenoexcept |
extracts character.
|
inlinenoexcept |
extracts expected character.
| expected | expected character. |
|
inlinenoexcept |
extracts expected character (case insensitive, ASCII-only).
| expected | expected character. |
|
delete |
move assignment.
| other | object to move. |
|
delete |
copy assignment.
| other | object to copy. |
|
inlinenoexcept |
get character without extracting it.
|
inlinenoexcept |
read characters.
| buf | output buffer. |
| count | number of characters to read. |
|
inlinenoexcept |
read characters until escaped.
| out | output buffer. |
|
inlinenoexcept |
seek to the specified position.
| pos | position to seek to. |
|
inlinenoexcept |
skip whitespaces.
|
inlinenoexcept |
skip whitespaces and comments.
|
inlinenoexcept |
get input position indicator.