30 template<
class StringType>
42 return base + (
'.' +
group);
48 const std::string& scope,
58 output.reserve(scope.size() +
name.size() + 1);
69 const std::string& scope,
80 output.reserve(scope.size() + name1.size() + name2.size() + 2);
96 inline Foam::IOobject::IOobject
117 inline Foam::IOobject::IOobject
140 inline Foam::IOobject::IOobject
159 inline Foam::IOobject::IOobject
172 inline Foam::IOobject::IOobject
186 inline Foam::IOobject::IOobject
222 return headerClassName_;
228 return headerClassName_;
246 return static_cast<unsigned>(sizeofLabel_);
252 return static_cast<unsigned>(sizeofScalar_);
260 return !headerClassName_.empty();
267 return (Type::typeName == headerClassName_);
299 return globalPath()/
name();
307 return objState_ == objectState::GOOD;
313 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.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::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())
fileName globalObjectPath() const
The complete global path + object name.
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.
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true)
const word & headerClassName() const noexcept
Return name of the class name read from header.
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
static Ostream & output(Ostream &os, const IntRange< T > &range)
bool registerObject() const noexcept
Should objects created with this IOobject be registered?
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
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.