40 bool baseIOdictionary::writeDictionaries
98 <<
"--- baseIOdictionary " <<
name()
99 <<
' ' << objectPath() <<
":" <<
nl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
fileName objectPath() const
The complete path + object name.
bool bad() const noexcept
True if stream is corrupted.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
baseIOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO function...
virtual bool writeData(Ostream &) const
The writeData function required by regIOobject write operation.
baseIOdictionary(const baseIOdictionary &)=default
Copy construct.
virtual bool readData(Istream &)
The readData function required by regIOobject read operation.
const word & name() const
Name function is needed to disambiguate those inherited from regIOobject and dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const fileName & name() const noexcept
The dictionary name.
dictionary()
Default construct, a top-level empty dictionary.
void write(Ostream &os, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
regIOobject(const IOobject &io, const bool isTimeObject=false)
Construct from IOobject. The optional flag adds special handling if the object is the top-level regIO...
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
int infoSwitch(const char *name, const int deflt=0)
Lookup info switch or add default value.
static void writeHeader(Ostream &os, const word &fieldName)
OSstream Sout
OSstream wrapped stdout (std::cout).
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeData(Ostream &os, const Type &val)
constexpr char nl
The newline '\n' character (0x0a).