Go to the documentation of this file.
39 Info<<
"IOobject::writeHeader(Ostream&) : "
40 <<
"no stream open for write" <<
nl
48 <<
" version " << os.
version() <<
";\n"
49 <<
" format " << os.
format() <<
";\n"
50 <<
" class " <<
type <<
";\n";
54 os <<
" note " <<
note() <<
";\n";
58 <<
" object " <<
name() <<
";\n"
69 return writeHeader(os,
type());
streamFormat format() const
Return current stream format.
A class for handling words, derived from string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & instance() const
const objectRegistry & db() const
Return the local objectRegistry.
bool writeHeader(Ostream &) const
Write header.
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
InfoProxy< IOstream > info() const
Return info proxy.
const word & name() const
Return name.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
static Stream & writeBanner(Stream &os, bool noHint=false)
Write the standard OpenFOAM file/dictionary banner.
versionNumber version() const
Return the stream version.
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.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
const fileName & local() const
string & note()
Return non-constant access to the optional note.