Go to the documentation of this file.
178 virtual
void rewind() = 0;
189 bool readEnd(const
char* funcName);
244 reinterpret_cast<label*
>(
data),
245 byteCount/
sizeof(label)
253 reinterpret_cast<scalar*
>(
data),
254 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.
const token & peekBack() const noexcept
Examine putback token without removing it.
The IOstreamOption is a simple container for options an IOstream can normally have.
streamFormat
Data format (ascii | binary)
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.
virtual bool beginRawRead()=0
Start of low-level raw binary read.
bool hasPutback() const noexcept
True if putback token is in use.
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
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.
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.