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