34 const string& streamName,
61 if (c ==
'\n' && good())
78 std::getline(is_, str, delim);
93 is_.ignore(std::numeric_limits<std::streamsize>::max(), delim);
94 std::streamsize count = is_.gcount();
97 if (delim ==
'\n' && count > 0)
A simple container for options an IOstream can normally have.
void setBad() noexcept
Set stream state to be 'bad'.
bool good() const noexcept
True if next operation might succeed.
label lineNumber_
The file line.
Generic input stream using a standard (STL) stream.
ISstream & get(char &c)
Raw, low-level get character function.
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.
void syncState()
Set stream state to match that of the std::istream.
ISstream(std::istream &is, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
Construct wrapper around std::istream, set stream status.
Istream(const Istream &)=default
Copy construct.