Go to the documentation of this file.
147 virtual void rewind() = 0;
158 bool readEnd(
const char* funcName);
215 byteCount/
sizeof(
label)
223 reinterpret_cast<scalar*
>(
data),
224 byteCount/
sizeof(scalar)
double doubleScalar
Floating-point double precision scalar type.
A class for handling words, derived from Foam::string.
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
float floatScalar
Floating-point single precision scalar type.
IOstream &(* IOstreamManip)(IOstream &)
An IOstream manipulator.
An IOstream is an abstract base class for all input/output systems; be they streams,...
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number.
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 '('.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
IOstream(const IOstreamOption option)
Construct with specified stream option.
versionNumber version() const noexcept
Get the stream version.
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.
compressionType compression() const noexcept
Get the stream compression.
Istream(streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Construct and set stream status.
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.