92 <<
"Istream not OK for reading dictionary " 116 <<
"Istream not OK after reading dictionary " <<
name()
128 return this->
read(is,
false);
134 word varName = keyword(1, keyword.size()-1);
197 <<
"Can't write entry " << iter().keyword()
198 <<
" for dictionary " <<
name()
212 dict.
write(os,
true);
bool eof() const
Return true if end of input seen.
bool read(Istream &)
Read dictionary from Istream.
A class for handling file names.
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const double e
Elementary charge.
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.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A token holds items read from Istream.
bool good() const
Return true if next operation might succeed.
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.
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
bool substituteKeyword(const word &keyword)
Substitute the given keyword prepended by '$' with the.
const fileName & name() const
Return the dictionary name.
entry * last()
Return the last entry.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
dictionary()
Construct top-level dictionary null.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
static void clear()
Reset the inputMode to default (ie, merge)
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual const fileName & name() const
Return the name of the stream.
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.
bool bad() const
Return true if stream is corrupted.
#define WarningInFunction
Report a warning using Foam::Warning.
void write(Ostream &, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Ostream & operator<<(Ostream &, const ensightPart &)
const dictionary & parent() const
Return the parent dictionary.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.