Go to the documentation of this file.
159 virtual void rewind() = 0;
170 bool readEnd(
const char* funcName);
226 reinterpret_cast<label*
>(
data),
227 byteCount/
sizeof(label)
235 reinterpret_cast<scalar*
>(
data),
236 byteCount/
sizeof(scalar)
double doubleScalar
A typedef for double.
Istream(IOstreamOption streamOpt=IOstreamOption())
A class for handling words, derived from Foam::string.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
Istream(const Istream &)=default
Copy construct.
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
float floatScalar
A typedef for float.
IOstream &(* IOstreamManip)(IOstream &)
An IOstream manipulator.
An IOstream is an abstract base class for all input/output systems; be they streams,...
static const versionNumber currentVersion
The current version number (2.0)
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
virtual Istream & readRaw(char *, std::streamsize)=0
Low-level raw binary read.
A template class to specify if a data type is composed solely of Foam::label elements.
bool readBegin(const char *funcName)
Begin read of data chunk, starts with '('.
virtual bool endRawRead()=0
End of low-level raw binary read.
Representation of a major/minor version number.
virtual void rewind()=0
Rewind the stream so that it may be read again.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual ~Istream()=default
Destructor.
The IOstreamOption is a simple container for options an IOstream can normally have.
streamFormat
Data format (ascii | binary)
Istream & operator()() const
Return a non-const reference to const Istream.
A template class to specify if a data type is composed solely of Foam::scalar elements.
bool getBack(token &tok)
Get the put back token if there is one and return true.
virtual bool beginRawRead()=0
Start of low-level raw binary read.
void putBack(const token &tok)
Put back token.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
label readRawLabel(Istream &is)
Read raw label from binary stream.
Istream &(* IstreamManip)(Istream &)
An Istream manipulator.
Database for solution data, solver performance and other reduced data.
bool peekBack(token &tok)
Peek at the put back token without removing it.
virtual Istream & read(token &)=0
Return next token from stream.
void readContiguous(Istream &is, char *data, std::streamsize byteCount)
Read binary block of contiguous data, possibly with conversion.