Go to the documentation of this file.
83 keepHeader = keepHeader || hashedEntries_.found(
"FoamFile");
94 <<
"Istream not OK for reading dictionary " <<
name()
107 <<
"Dictionary input cannot start with '}'" <<
nl
131 <<
"Istream not OK after reading dictionary " <<
name()
143 return this->
read(is,
false);
182 for (
const entry&
e : *
this)
198 <<
"Cannot write entry " <<
e.keyword()
199 <<
" for dictionary " <<
name()
214 writeEntries(
os, !subDict);
A keyword and a list of tokens is an 'entry'.
static autoPtr< T > New(Args &&... args)
static bool New(dictionary &parentDict, Istream &is, const inputMode inpMode=inputMode::GLOBAL, const int endChar=0)
const fileName & name() const noexcept
A class for handling file names.
static autoPtr< dictionary > New(Istream &is)
static std::string name(const std::string &str)
bool read(const char *buf, int32_t &val)
const word dictName("faMeshDefinition")
Istream & operator>>(Istream &, directionInfo &)
Ostream & endl(Ostream &os)
A token holds an item read from Istream.
virtual Ostream & beginBlock(const keyType &kw)
bool good() const noexcept
static const dictionary null
Ostream & operator<<(Ostream &, const boundaryPatch &p)
A class for handling keywords in dictionaries.
virtual const fileName & name() const
void writeEntry(Ostream &os) const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool eof() const noexcept
static void resetInputMode()
@ END_BLOCK
End block [isseparator].
void writeEntries(Ostream &os, const bool extraNewLine=false) const
virtual Ostream & endBlock()
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
bool bad() const noexcept
@ GLOBAL
Use global value from globalInputMode variable.
@ BEGIN_BLOCK
Begin block [isseparator].
errorManipArg< error, int > exit(error &err, const int errNo=1)
void write(Ostream &os, const bool subDict=true) const
void putBack(const token &tok)
const dimensionedScalar e
word name(const expressions::valueTypeCode typeCode)
#define FatalIOErrorInFunction(ios)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define WarningInFunction