40 <<
"No stream open for write" <<
nl 50 os <<
" version " << os.
version() <<
";\n";
53 os <<
" format " << os.
format() <<
";\n" 54 <<
" class " << type <<
";\n";
58 os <<
" note " <<
note() <<
";\n";
62 <<
" object " <<
name() <<
";\n" const word & name() const
Return name.
static Stream & writeBanner(Stream &os, bool noHint=false)
Write the standard OpenFOAM file/dictionary banner.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
Ostream & endl(Ostream &os)
Add newline and flush stream.
versionNumber version() const
Return the stream version.
bool good() const
Return true if next operation might succeed.
string & note()
Return non-constant access to the optional note.
A class for handling words, derived from string.
const fileName & local() const
streamFormat format() const
Return current stream format.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static constexpr const char * foamFile
Keyword for the FoamFile header sub-dictionary.
const fileName & instance() const
static const versionNumber currentVersion
Current version number.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
bool writeHeader(Ostream &) const
Write header.
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
const objectRegistry & db() const
Return the local objectRegistry.
InfoProxy< IOstream > info() const
Return info proxy.
#define InfoInFunction
Report an information message using Foam::Info.