34 const string& streamName,
61 if (
c ==
'\n' && good())
78 std::getline(is_, str, delim);
94 std::streamsize
count = is_.gcount();
97 if (delim ==
'\n' &&
count > 0)
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.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void syncState()
Set stream state to match that of the std::istream.
A simple container for options an IOstream can normally have.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
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.
const dimensionedScalar c
Speed of light in a vacuum.
void setOpened() noexcept
Set stream opened.
void setGood() noexcept
Set stream state to be good.
ISstream & get(char &c)
Raw, low-level get character function.