Go to the documentation of this file.
60 const word nonWhiteChars(string::validate<word>(str));
62 if (nonWhiteChars.size() == 1)
65 write(nonWhiteChars[0]);
67 else if (nonWhiteChars.size())
95 const std::string& str,
103 else if (!str.empty())
149 <<
"stream format not binary"
162 std::streamsize
count
179 <<
"stream format not binary"
191 os <<
"OTstream : " <<
name().c_str() <<
", " << size() <<
" tokens, ";
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
double doubleScalar
A typedef for double.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
A class for handling words, derived from Foam::string.
float floatScalar
A typedef for float.
virtual void print(Ostream &os) const
Print stream description to Ostream.
void print(Ostream &os) const
Print stream description to Ostream.
A token holds an item read from Istream.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
word format(conversionProperties.get< word >("format"))
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
word name(const complex &c)
Return string representation of complex.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
DynamicList< token, 16 > & append(const token &val)
Append an element to the end of this list.
errorManip< error > abort(error &err)
bool good() const noexcept
True if token is not UNDEFINED or ERROR.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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)
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool isspace(char c)
Test for horizontal whitespace.
Database for solution data, solver performance and other reduced data.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
punctuationToken
Standard punctuation tokens (a character)