Go to the documentation of this file.
37 if (
dict.size() < 1 ||
dict.first()->keyword() !=
"FoamFile")
43 return dict.size() - 1;
50 Foam::dictionaryListEntry::dictionaryListEntry
60 Foam::dictionaryListEntry::dictionaryListEntry
80 for (label i=0; i<len; ++i)
94 <<
"parsing error " << tok.info() <<
nl
97 else if (tok.isPunctuation(token::END_LIST))
108 <<
"incorrect first token, expected <int> or '(', found "
146 const InfoProxy<dictionaryListEntry>& ip
149 const dictionaryListEntry&
e = ip.t_;
151 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.
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 '}'.
const keyType & keyword() const noexcept
Return keyword.
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)
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)....
bool isPunctuation() const noexcept
Token is PUNCTUATION.
virtual void write(Ostream &os) const
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
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 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.
#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].