37 if (
dict.size() < 1 ||
dict.first()->keyword() !=
"FoamFile")
43 return dict.size() - 1;
52 const dictionary& parentDict,
53 const dictionaryListEntry& dictEnt
76 const label len = tok.labelToken();
80 for (label i=0; i<len; ++i)
94 <<
"parsing error " << tok.info() <<
nl 108 <<
"incorrect first token, expected <int> or '(', found " 138 const dictionaryListEntry&
e 150 const InfoProxy<dictionaryListEntry>& iproxy
153 const auto&
e = *iproxy;
155 os <<
" dictionaryListEntry '" <<
e.keyword() <<
"'" <<
endl;
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
A token holds an item read from Istream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Begin list [isseparator].
dictionaryListEntry(const dictionaryListEntry &)=delete
No copy construct.
A keyword and a list of tokens is a 'dictionaryEntry'.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void putBack(const token &tok)
Put back a token. Only a single put back is permitted.
const dimensionedScalar e
Elementary charge.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
static Foam::label realSize(const Foam::dictionary &dict)
void write(Ostream &os, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
static bool New(dictionary &parentDict, Istream &is, const inputMode inpMode=inputMode::GLOBAL, const int endChar=0)
Construct from an Istream and insert into the dictionary.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
virtual void write(Ostream &os) const
Write.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...