34 const string& streamName,
59 setState(is_.rdstate());
61 if (good() && c ==
'\n')
78 std::getline(is_, str, delim);
79 setState(is_.rdstate());
92 is_.ignore(std::numeric_limits<std::streamsize>::max(), delim);
93 setState(is_.rdstate());
95 std::streamsize count = is_.gcount();
97 if (count && delim ==
'\n')
118 setState(is_.rdstate());
The IOstreamOption is a simple container for options an IOstream can normally have.
void setState(std::ios_base::iostate state) noexcept
Set stream state.
void setGood() noexcept
Set stream state to be good.
void setOpened() noexcept
Set stream opened.
Generic input stream using a standard (STL) stream.
ISstream & putback(const char c)
Raw, low-level putback character function.
int peek()
Raw, low-level peek function.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
unsigned int get() const
Get value as unsigned, no range-checking.