Go to the documentation of this file.
92 <<
"Istream not OK for reading dictionary "
115 Info<<
"dictionary::read(Istream&, bool) : "
116 <<
"Istream not OK after reading dictionary " <<
name()
128 return this->
read(is,
false);
134 word varName = keyword(1, keyword.size()-1);
137 const entry* ePtr = lookupEntryPtr(varName,
true,
true);
197 <<
"Can't write entry " << iter().keyword()
198 <<
" for dictionary " <<
name()
A keyword and a list of tokens is an 'entry'.
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
A class for handling words, derived from string.
A class for handling file names.
const fileName & name() const
Return the dictionary name.
bool eof() const
Return true if end of input seen.
dictionary()
Construct top-level dictionary null.
bool read(const char *, int32_t &)
static void clear()
Reset the inputMode to default (ie, merge)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds items read from Istream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool substituteKeyword(const word &keyword)
Substitute the given keyword prepended by '$' with the.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Ostream & operator<<(Ostream &, const edgeMesh &)
A list of keyword definitions, which are a keyword followed by any number of values (e....
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
bool bad() const
Return true if stream is corrupted.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
const double e
Elementary charge.
virtual const dictionary & dict() const =0
Return dictionary if this entry is a dictionary.
Ostream & indent(Ostream &os)
Indent stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void putBack(const token &)
Put back token.
Istream & operator>>(Istream &, edgeMesh &)
static bool New(dictionary &parentDict, Istream &)
Construct from Istream and insert into dictionary.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool read(Istream &)
Read dictionary from Istream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool good() const
Return true if next operation might succeed.
void clear()
Clear the dictionary.
virtual const fileName & name() const
Return the name of the stream.
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
static const dictionary null
Null dictionary.
void write(Ostream &, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.