30template<
class StringType>
42 return base + (
'.' +
group);
48 const std::string& scope,
85 return headerClassName_;
91 return headerClassName_;
109 return registerObject_;
115 bool old(registerObject_);
116 registerObject_ = on;
123 return globalObject_;
129 bool old(globalObject_);
137 return static_cast<unsigned>(sizeofLabel_);
143 return static_cast<unsigned>(sizeofScalar_);
151 return !headerClassName_.empty();
158 return (Type::typeName == headerClassName_);
224 return objState_ == objectState::GOOD;
230 return objState_ == objectState::BAD;
bool isHeaderClass() const
Check if headerClassName() equals Type::typeName.
const word & name() const noexcept
Return the object name.
const word & headerClassName() const noexcept
Return name of the class name read from header.
readOption readOpt() const noexcept
The read option.
bool globalObject() const noexcept
Is object same for all processors?
unsigned scalarByteSize() const noexcept
The sizeof (scalar) in bytes, possibly read from the header.
bool good() const noexcept
Did last readHeader() succeed?
bool bad() const noexcept
Did last readHeader() fail?
bool registerObject() const noexcept
Should object created with this IOobject be registered?
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
static char scopeSeparator
Character for scoping object names (':' or '_')
bool hasHeaderClass() const noexcept
True if headerClassName() is non-empty (after reading)
const fileName & local() const noexcept
Read access to local path component.
word group() const
Return group (extension part of name)
const fileName & instance() const noexcept
Read access to instance path component.
writeOption
Enumeration defining the write options.
unsigned labelByteSize() const noexcept
The sizeof (label) in bytes, possibly read from the header.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
word member() const
Return member (name without the extension)
const string & note() const noexcept
Return the optional note.
fileName objectPath() const
The complete path + object name.
writeOption writeOpt() const noexcept
The write option.
readOption
Enumeration defining the read options.
A class for handling file names.
A class for handling character strings derived from std::string.
A class for handling words, derived from Foam::string.
word ext() const
Return file name extension (part after last .)
word lessExt() const
Return word without extension (part before last .)
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.