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
52 const dictionary& parentDict,
53 const dictionaryListEntry& dictEnt
60 Foam::dictionaryListEntry::dictionaryListEntry
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 "
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'.
static bool New(dictionary &parentDict, Istream &is, const inputMode inpMode=inputMode::GLOBAL, const int endChar=0)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
bool isLabel() const noexcept
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
char readBeginList(const char *funcName)
char readEndList(const char *funcName)
const keyType & keyword() const noexcept
Ostream & endl(Ostream &os)
A token holds an item read from Istream.
Ostream & incrIndent(Ostream &os)
static Foam::label realSize(const Foam::dictionary &dict)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
InfoProxy< token > info() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool isPunctuation() const noexcept
virtual void write(Ostream &os) const
virtual bool check(const char *operation) const
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)
Ostream & indent(Ostream &os)
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)
void write(Ostream &os, const bool subDict=true) const
void putBack(const token &tok)
const dimensionedScalar e
@ END_LIST
End list [isseparator].
word name(const expressions::valueTypeCode typeCode)
#define FatalIOErrorInFunction(ios)
Read/write List of dictionaries.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
@ BEGIN_LIST
Begin list [isseparator].