91 <<
"Istream not OK for reading dictionary " 115 <<
"Istream not OK after reading dictionary " <<
name()
127 return this->
read(is,
false);
133 word varName = keyword(1, keyword.size()-1);
196 <<
"Can't write entry " << iter().keyword()
197 <<
" for dictionary " <<
name()
211 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.
bool read(Istream &)
Read dictionary from Istream.
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)...
static const dictionary null
Null dictionary.
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 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.
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)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool eof() const
Return true if end of input seen.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
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.