Go to the documentation of this file.
80 static char paddedVersion[39] =
"";
88 std::size_t len = apiValue.length();
94 std::memset(paddedVersion,
' ', 38);
95 std::memcpy(paddedVersion, apiValue.c_str(), len);
96 paddedVersion[38] =
'\0';
100 "/*--------------------------------";
114 "----------------------------------*\\\n"
118 " OpenFOAM: The Open Source CFD Toolbox |\n"
119 "| \\\\ / O peration |"
120 " Version: " << paddedVersion <<
"|\n"
122 " Website: www.openfoam.com |\n"
123 "| \\\\/ M anipulation |"
125 "\\*-----------------------------------------"
126 "----------------------------------*/\n";
135 "// * * * * * * * * * * * * * * * * * "
136 "* * * * * * * * * * * * * * * * * * * * //\n";
145 "// *****************************************"
146 "******************************** //\n";
158 const word& objectType,
167 if (!io.
note().empty())
172 if (objectType.empty())
186 if (metaDataDict && !metaDataDict->empty())
197 const word& objectType,
207 if (!io.
note().empty())
212 if (objectType.empty())
226 if (metaDataDict && !metaDataDict->empty())
228 dict.
add(
"meta", *metaDataDict);
238 const word& objectType
244 <<
"No stream open for write" <<
nl
286 const word& objectType,
Defines the attributes of an object for which implicit objectRegistry management is supported,...
#define InfoInFunction
Report an information message using Foam::Info.
A class for handling words, derived from Foam::string.
const fileName & instance() const noexcept
static void writeHeaderContent(Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr)
static Ostream & writeEndDivider(Ostream &os)
Write the standard end file divider.
static bool bannerEnabled() noexcept
Status of output file banner.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
streamFormat format() const noexcept
Get the current stream format.
void writeHeaderEntry(Ostream &os, const word &key, const T &value)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
virtual Ostream & write(const char c)
Write character.
static Ostream & writeBanner(Ostream &os, const bool noSyntaxHint=false)
Write the standard OpenFOAM file/dictionary banner.
bool good() const noexcept
True if next operation might succeed.
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
void writeEntry(Ostream &os) const
Write sub-dictionary with its dictName as its header.
void writeSpaces(Ostream &os, label nSpaces)
const fileName & local() const noexcept
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
The IOstreamOption is a simple container for options an IOstream can normally have.
InfoProxy< IOstream > info() const
Return info proxy.
versionNumber version() const noexcept
Get the stream version.
virtual Ostream & endBlock()
Write end block group.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Ostream & indent(Ostream &os)
Indent stream.
const word & name() const noexcept
Return name.
const string & note() const noexcept
Return the optional note.
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
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
bool writeHeader(Ostream &os) const
Write header with current type()
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const objectRegistry & db() const noexcept
Return the local objectRegistry.