Go to the documentation of this file.
74 void operator=(
const ISstream&) =
delete;
86 const string& streamName,
94 const string& streamName,
126 virtual ios_base::fmtflags
flags()
const;
144 const bool stripComments =
true
164 inline std::streamsize
getLine(std::nullptr_t,
char delim =
'\n');
211 virtual ios_base::fmtflags
flags(
const ios_base::fmtflags
flags);
223 virtual const std::istream&
stdStream()
const
int peek()
Raw, low-level peek function.
virtual void print(Ostream &os) const
Print stream description to Ostream.
double doubleScalar
A typedef for double.
A class for handling words, derived from Foam::string.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
A class for handling file names.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
float floatScalar
A typedef for float.
static const versionNumber currentVersion
The current version number (2.0)
Generic input stream using a standard (STL) stream.
A token holds an item read from Istream.
virtual void rewind()
Rewind the stream so that it may be read again.
virtual Istream & readRaw(char *data, std::streamsize count)
Low-level raw binary read.
virtual fileName & name()
Return stream name for modification.
ISstream & get(char &c)
Raw, low-level get character function.
virtual bool endRawRead()
End of low-level raw binary read.
Representation of a major/minor version number.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool seekCommentEnd_Cstyle()
Discard until end of C-style comment '*/'.
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual const fileName & name() const
Return the name of the stream.
ISstream & putback(const char c)
Raw, low-level putback character function.
streamFormat
Data format (ascii | binary)
OBJstream os(runTime.globalPath()/outputName)
virtual const std::istream & stdStream() const
Const access to underlying std::istream.
ISstream(std::istream &is, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
Construct wrapper around std::istream, set stream status.
virtual std::istream & stdStream()
Access to underlying std::istream.
bool continueReadUntilRightBrace(std::string &str, const bool stripComments=true)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual Istream & read(token &t)
Return next token from stream.
const dimensionedScalar c
Speed of light in a vacuum.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
virtual ~ISstream()=default
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool beginRawRead()
Start of low-level raw binary read.
Database for solution data, solver performance and other reduced data.