61 std::ostringstream buf;
64 return word(buf.str(),
false);
70 char* endptr =
nullptr;
100 char* endptr =
nullptr;
139 <<
"Bad token - could not get scalar value" 149 if (t.isPunctuation())
170 <<
"Wrong token type - expected scalar value, found ";
Subtract or start of negative number.
virtual Ostream & write(const char c)
Write character.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static const char *const typeName
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A traits class, which is primarily used for primitives.
errorType checkConversion(const char *buf, char *endptr)
Sanity check after strtof, strtod, etc.
pTraits(const Base &obj)
Copy construct from base class.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
static const char *const componentNames[]
errorType
Enumeration for possible parsing error.
OBJstream os(runTime.globalPath()/outputName)
Scalar ScalarRead(const char *buf)
Parse entire buffer as a float/double, skipping leading/trailing whitespace.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const Foam::Enum< errorType > errorNames
Strings corresponding to the errorType.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...