Go to the documentation of this file.
36 if (
dict.size() < 1 ||
dict.first()->keyword() !=
"FoamFile")
42 return dict.size() - 1;
49 Foam::dictionaryListEntry::dictionaryListEntry
59 Foam::dictionaryListEntry::dictionaryListEntry
79 for (label i=0; i<sz; ++i)
88 && firstToken.
pToken() == token::BEGIN_LIST
94 if (nextToken.
error())
97 <<
"parsing error " << nextToken.
info()
103 && nextToken.
pToken() == token::END_LIST
115 <<
"incorrect first token, expected <int> or '(', found "
153 const InfoProxy<dictionaryListEntry>& ip
156 const dictionaryListEntry&
e = ip.t_;
158 os <<
" dictionaryListEntry '" <<
e.keyword() <<
"'" <<
endl;
A keyword and a list of tokens is a 'dictionaryEntry'.
label labelToken() const
Return label value.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
bool isLabel() const noexcept
Token is LABEL.
A class for handling words, derived from Foam::string.
const keyType & keyword() const
Return keyword.
char readBeginList(const char *funcName)
Begin read of list data, starts with '(' or '{'.
char readEndList(const char *funcName)
End read of list data, ends with ')' or '}'.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds an item read from Istream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
static Foam::label realSize(const Foam::dictionary &dict)
punctuationToken pToken() const
Return punctuation character.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
word name(const complex &c)
Return string representation of complex.
bool isPunctuation() const noexcept
Token is PUNCTUATION.
virtual void write(Ostream &os) const
Write.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool error() const noexcept
Token is ERROR.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
void write(Ostream &os, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
void putBack(const token &tok)
Put back token.
const dimensionedScalar e
Elementary charge.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Read/write List of dictionaries.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].