40 bool baseIOdictionary::writeDictionaries
98 <<
"--- baseIOdictionary " <<
name()
99 <<
' ' << objectPath() <<
":" <<
nl;
bool bad() const noexcept
True if stream is corrupted.
baseIOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO function...
static void writeHeader(Ostream &os, const word &fieldName)
static void writeData(Ostream &os, const Type &val)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const word & name() const noexcept
Return the object name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
void operator=(const baseIOdictionary &rhs)
Copy assignment of dictionary entries (leave regIOobject untouched)
Ostream & endl(Ostream &os)
Add newline and flush stream.
int infoSwitch(const char *name, const int deflt=0)
Lookup info switch or add default value.
const fileName & name() const noexcept
The dictionary name.
fileName objectPath() const
The complete path + object name.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
void operator=(const dictionary &rhs)
Copy assignment.
A class for handling words, derived from Foam::string.
OSstream Sout
OSstream wrapped stdout (std::cout)
const word & name() const
Name function is needed to disambiguate those inherited from regIOobject and dictionary.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
void write(Ostream &os, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
bool good() const noexcept
True if next operation might succeed.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
baseIOdictionary(const baseIOdictionary &)=default
Copy construct.
Defines the attributes of an object for which implicit objectRegistry management is supported...
virtual bool readData(Istream &)
The readData function required by regIOobject read operation.
virtual bool writeData(Ostream &) const
The writeData function required by regIOobject write operation.