Go to the documentation of this file.
34 inline void Foam::prefixOSstream::checkWritePrefix()
36 if (printPrefix_ && prefix_.size())
65 os <<
"prefixOSstream ";
76 case token::tokenType::FLAG :
82 case token::tokenType::VERBATIMSTRING :
93 case token::tokenType::VARIABLE :
127 const size_t len = strlen(str);
153 const std::string&
val,
193 std::streamsize
count
label ListType::const_reference val
double doubleScalar
Floating-point double precision scalar type.
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
A class for handling words, derived from Foam::string.
virtual void print(Ostream &os) const
Print description of IOstream to Ostream.
virtual void indent()
Add indentation characters.
const string & stringToken() const
Return const reference to the string contents.
float floatScalar
Floating-point single precision scalar type.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
prefixOSstream(std::ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Construct and set stream status.
A token holds an item read from Istream.
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
word format(conversionProperties.get< word >("format"))
Representation of a major/minor version number.
word name(const complex &c)
Return string representation of complex.
virtual Ostream & writeQuoted(const std::string &val, const bool quoted=true)
Write std::string surrounded by quotes.
streamFormat
Data format (ascii | binary)
Hash - directive or verbatim string.
Begin block [isseparator].
const std::string version
OpenFOAM version (name or stringified number) as a std::string.
virtual void indent()
Add indentation characters.
tokenType type() const
Return the token type.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
virtual void print(Ostream &os) const
Print description of IOstream to Ostream.
const dimensionedScalar c
Speed of light in a vacuum.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...