Go to the documentation of this file.
20 #ifndef __Istream_hpp__
21 #define __Istream_hpp__
93 virtual ios_base::fmtflags
flags()
const;
112 std::streamsize
getLine(std::nullptr_t,
char delim =
'\n');
161 void seek(
size_t pos)
override;
164 size_t tell()
override;
168 virtual ios_base::fmtflags
flags(
const ios_base::fmtflags
flags);
void operator=(const Istream &)=delete
No copy assignment.
virtual std::istream & stdStream()
Access to underlying std::istream.
Token class based on OpenFOAM stream, with some modifications/simplifications to be tailored to our n...
char nextValid()
Get the next valid character.
void readWordToken(token &t)
Read a word token.
size_t findBinaryBlockStart() override
It seek for a character sequence that indicates the start of a binary block char sequence is 255 255 ...
size_t tell() override
Return current position indicator.
Istream(std::istream &is, const word &streamName, writeFormat wf=ASCII)
Construct wrapper around std::istream, set stream status.
virtual word & name()
Return non-const access to the name of the stream.
virtual const word & name() const
Return the name of the stream.
void seek(size_t pos) override
virtual iIstream & readString(word &str) override
Read a string.
Standard input stream for binary and ascii data.
Interface class for any input stream
Istream & readVariable(word &str)
Read a variable name starting with '$'.
virtual iIstream & read(token &t) override
Return next token from stream.
virtual ~Istream()=default
Destructor.
auto count(const Vector< T, Allocator > &vec, const T &val)
Istream & get(char &c)
Raw, low-level get character function.
void rewind() override
Rewind the stream so that it may be read again.
unsigned long long int uint64
int peek()
Raw, low-level peek function.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual const std::istream & stdStream() const
Const access to underlying std::istream.
Istream & putback(const char c)
Raw, low-level putback character function.
Istream & getLine(word &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
std::istream & is_
Input stream.