30 template<
class StringType>
42 return base + (
'.' +
group);
48 const std::string& scope,
177 return headerClassName_;
183 return headerClassName_;
201 return static_cast<unsigned>(sizeofLabel_);
207 return static_cast<unsigned>(sizeofScalar_);
215 return !headerClassName_.empty();
222 return (Type::typeName == headerClassName_);
256 return objState_ == objectState::GOOD;
262 return objState_ == objectState::BAD;
writeOption
Enumeration defining write preferences.
A class for handling file names.
readOption readOpt() const noexcept
Get the read option.
const word & name() const noexcept
Return the object name.
const string & note() const noexcept
Return the optional note.
word member() const
Return member (name without the extension)
bool bad() const noexcept
Did last readHeader() fail?
word group() const
Return group (extension part of name)
bool good() const noexcept
Did last readHeader() succeed?
fileName objectPath() const
The complete path + object name.
bool hasHeaderClass() const noexcept
True if headerClassName() is non-empty (after reading)
constexpr const char *const group
Group name for atomic constants.
word ext() const
Return file name extension (part after last .)
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
writeOption writeOpt() const noexcept
Get the write option.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
word lessExt() const
Return word without extension (part before last .)
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
const fileName & instance() const noexcept
Read access to instance path component.
static char scopeSeparator
Character for scoping object names (':' or '_')
unsigned labelByteSize() const noexcept
The sizeof (label) in bytes, possibly read from the header.
const word & headerClassName() const noexcept
Return name of the class name read from header.
IOobject(const IOobject &)=default
Copy construct.
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Registry of regIOobjects.
const fileName & local() const noexcept
Read access to local path component.
Defines the attributes of an object for which implicit objectRegistry management is supported...
A class for handling character strings derived from std::string.
bool isHeaderClass() const
Check if headerClassName() equals Type::typeName.
unsigned scalarByteSize() const noexcept
The sizeof (scalar) in bytes, possibly read from the header.
readOption
Enumeration defining read preferences.