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, ";
bool good() const noexcept
True if token is not UNDEFINED or ERROR.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A token holds an item read from Istream.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
punctuationToken
Standard punctuation tokens (a character)
void append(const token &val)
Copy append an element to the end of this list.
errorManip< error > abort(error &err)
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void print(Ostream &os) const
Print stream description to Ostream.
Database for solution data, solver performance and other reduced data.
void print(Ostream &os) const
Print stream description to Ostream.
word format(conversionProperties.get< word >("format"))
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
const dimensionedScalar c
Speed of light in a vacuum.
bool isspace(char c) noexcept
Test for whitespace (C-locale)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.