42 parentDict.
name().size()
82 if (!ifs || !ifs.
good())
85 <<
"Included dictionary file " << fName
86 <<
" cannot be found for dictionary " << parentDict.
name()
115 <<
"Istream not OK for reading dictionary " 139 <<
"Istream not OK after reading dictionary " <<
name()
157 word varName = keyword(1, keyword.size()-1);
231 <<
"Can't write entry " << iter().keyword()
232 <<
" for dictionary " <<
name()
246 dict.
write(os,
true);
Template class for intrusive linked lists.
void write(Ostream &, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
A class for handling file names.
Ostream & indent(Ostream &os)
Indent stream.
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool bad() const
Return true if stream is corrupted.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
static bool New(dictionary &parentDict, Istream &)
Construct from Istream and insert into dictionary.
void putBack(const token &)
Put back token.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool substituteKeyword(const word &keyword)
Substitute the given keyword prepended by '$' with the.
T * last()
Return the last entry.
bool read(Istream &, const bool keepHeader=false)
Read dictionary from Istream, optionally keeping the header.
bool good() const
Return true if next operation might succeed.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
dictionary()
Construct top-level dictionary null.
includedDictionary(const fileName &fName, const dictionary &parentDict)
Construct an included dictionary for the given parent.
const fileName & name() const
Return the dictionary name.
A class for handling words, derived from string.
const dictionary & parent() const
Return the parent dictionary.
virtual const fileName & name() const
Return the name of the stream.
Istream & operator>>(Istream &, directionInfo &)
static void clear()
Reset the inputMode to default (ie, merge)
static const dictionary null
Null dictionary.
const dictionary & topDict() const
Return the top of the tree.
const fileOperation & fileHandler()
Get current file handler.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool eof() const
Return true if end of input seen.
virtual bool global() const
Return true if the dictionary global,.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static void clear()
Reset the inputSyntax to the default specified in etc/controlDict.
static constexpr const char * foamFile
Keyword for the FoamFile header sub-dictionary.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
#define WarningInFunction
Report a warning using Foam::Warning.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Ostream & operator<<(Ostream &, const ensightPart &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const doubleScalar e
Elementary charge.
void clear()
Clear the dictionary.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
A keyword and a list of tokens is an 'entry'.
#define InfoInFunction
Report an information message using Foam::Info.