Go to the documentation of this file.
49 static char paddedVersion[39] =
"";
61 std::memset(paddedVersion,
' ', 38);
63 paddedVersion[38] =
'\0';
67 "/*--------------------------------";
81 "----------------------------------*\\\n"
85 " OpenFOAM: The Open Source CFD Toolbox |\n"
86 "| \\\\ / O peration |"
87 " Version: " << paddedVersion <<
"|\n"
89 " Website: www.openfoam.com |\n"
90 "| \\\\/ M anipulation |"
92 "\\*-----------------------------------------"
93 "----------------------------------*/\n";
102 "// * * * * * * * * * * * * * * * * * "
103 "* * * * * * * * * * * * * * * * * * * * //\n";
112 "// *****************************************"
113 "******************************** //\n";
124 <<
"No stream open for write" <<
nl
132 <<
" version " << os.
version() <<
";\n"
133 <<
" format " << os.
format() <<
";\n"
134 <<
" class " <<
type <<
";\n";
143 os <<
" note " << note() <<
";\n";
146 os <<
" location " << instance()/db().dbDir()/local() <<
";\n"
147 <<
" object " <<
name() <<
";\n"
150 writeDivider(os) <<
nl;
#define InfoInFunction
Report an information message using Foam::Info.
A class for handling words, derived from Foam::string.
static Ostream & writeBanner(Ostream &os, bool noHint=false)
Write the standard OpenFOAM file/dictionary banner.
static Ostream & writeEndDivider(Ostream &os)
Write the standard end file divider.
streamFormat format() const noexcept
Get the current stream format.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeHeader(Ostream &os, const word &fieldName)
word name(const complex &c)
Return string representation of complex.
InfoProxy< IOstream > info() const
Return info proxy.
versionNumber version() const noexcept
Get the stream version.
const std::string version
OpenFOAM version (name or stringified number) as a std::string.
static Ostream & writeDivider(Ostream &os)
Write the standard file section divider.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const std::string buildArch
bool writeHeader(Ostream &os) const
Write header.
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.