Go to the documentation of this file.
34 const string& streamName,
49 setState(is_.rdstate());
61 if (
good() &&
c ==
'\n')
78 std::getline(is_, str, delim);
79 setState(is_.rdstate());
93 setState(is_.rdstate());
95 std::streamsize
count = is_.gcount();
97 if (
count && delim ==
'\n')
118 setState(is_.rdstate());
int peek()
Raw, low-level peek function.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
Generic input stream using a standard (STL) stream.
ISstream & get(char &c)
Raw, low-level get character function.
void setState(ios_base::iostate state)
Set stream state.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label lineNumber_
The file line.
The IOstreamOption is a simple container for options an IOstream can normally have.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
ISstream & putback(const char c)
Raw, low-level putback character function.
ISstream(std::istream &is, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
Construct wrapper around std::istream, set stream status.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
const dimensionedScalar c
Speed of light in a vacuum.
bool good() const
Return true if next operation might succeed.