39const Scalar pTraits<Scalar>::zero = 0.0;
40const Scalar pTraits<Scalar>::one = 1.0;
60 std::ostringstream buf;
63 return word(buf.str(),
false);
69 char* endptr =
nullptr;
99 char* endptr =
nullptr;
138 <<
"Bad token - could not get scalar value"
169 <<
"Wrong token type - expected scalar value, found ";
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void setBad()
Set stream state to be 'bad'.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual Ostream & write(const char c)
Write character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const Scalar vsmall
static const char *const componentNames[]
static const complex rootMax
complex (ROOTVGREAT, ROOTVGREAT)
static const complex min
complex (-VGREAT,-VGREAT)
static const complex max
complex (VGREAT,VGREAT)
static const complex rootMin
complex (-ROOTVGREAT, -ROOTVGREAT)
A traits class, which is primarily used for primitives.
A token holds an item read from Istream.
bool isNumber() const noexcept
Token is LABEL, FLOAT or DOUBLE.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
@ PLUS
Addition [isseparator].
@ MINUS
Subtract or start of negative number.
punctuationToken pToken() const
Return punctuation character.
bool good() const noexcept
True if token is not UNDEFINED or ERROR.
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
scalar number() const
Return label, float or double value.
A class for handling words, derived from Foam::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
errorType
Enumeration for possible parsing error.
@ NONE
No error encountered.
const Foam::Enum< errorType > errorNames
Strings corresponding to the errorType.
errorType checkConversion(const char *buf, char *endptr)
Sanity check after strtof, strtod, etc.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Istream & operator>>(Istream &, directionInfo &)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static const char *const typeName
The type name used in ensight case files.