49 <<
"No stream open for write" <<
nl
59 os <<
" version " << version <<
";\n";
62 os <<
" format " <<
format <<
";\n"
63 <<
" class " <<
type <<
";\n";
67 os <<
" note " <<
note <<
";\n";
72 os <<
" location " << location <<
";\n";
75 os <<
" object " <<
name <<
";\n"
98 foamFileDict.
found(
"format")
118 instance()/db().dbDir()/local(),
static Stream & writeBanner(Stream &os, bool noHint=false)
Write the standard OpenFOAM file/dictionary banner.
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.
static bool writeHeader(Ostream &os, const IOstream::versionNumber version, const IOstream::streamFormat format, const word &type, const string ¬e, const fileName &location, const word &name)
Write header.
static const versionNumber currentVersion
Current version number.
streamFormat format() const
Return current stream format.
virtual const fileName & name() const
Return the name of the stream.
streamFormat
Enumeration for the format of data in the stream.
versionNumber version() const
Return the stream version.
static streamFormat formatEnum(const word &)
Return stream format of given format name.
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,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
T lookupOrDefault(const word &, const T &) const
Find and return a T, if not found return the given default.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A class for handling file names.
word name() const
Return file name (part beyond last /)
static const fileName null
An empty fileName.
static const string null
An empty string.
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.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
word format(conversionProperties.lookup("format"))