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