40template<
class StringType>
52 return base + (
'.' + group);
58 const std::string& scope,
68 output.reserve(scope.size() +
name.size() + 1);
79 const std::string& scope,
90 output.reserve(scope.size() + name1.size() + name2.size() + 2);
106inline Foam::IOobject::IOobject
109 const fileName& instance,
110 const objectRegistry& registry,
127inline Foam::IOobject::IOobject
150inline Foam::IOobject::IOobject
169inline Foam::IOobject::IOobject
182inline Foam::IOobject::IOobject
196inline Foam::IOobject::IOobject
232 return headerClassName_;
238 return headerClassName_;
256 return static_cast<unsigned>(sizeofLabel_);
262 return static_cast<unsigned>(sizeofScalar_);
270 return !headerClassName_.empty();
276 return (expectedType.empty() || (expectedType == headerClassName_));
283 if constexpr (std::is_void_v<Type>)
289 return (Type::typeName == headerClassName_);
369 return objState_ == objectState::BAD;
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true).
constexpr IOobjectOption(readOption rOpt=readOption::NO_READ, writeOption wOpt=writeOption::NO_WRITE, registerOption registerObject=registerOption::REGISTER, bool globalObject=false) noexcept
Default construct (NO_READ, NO_WRITE, REGISTER, non-global) or construct with specified options.
bool globalObject() const noexcept
True if object is treated the same for all processors.
readOption readOpt() const noexcept
Get the read option.
writeOption writeOpt() const noexcept
Get the write option.
bool registerObject() const noexcept
Should objects created with this IOobject be registered?
Layout
The layout of the case structure.
@ global
Global case layout (serial locations).
@ regular
Regular case layout, eg processor-local locations.
readOption
Enumeration defining read preferences.
writeOption
Enumeration defining write preferences.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool isHeaderClass() const
Check if headerClassName() equals Type::typeName Always true for a void type.
const word & name() const noexcept
Return the object name.
const word & headerClassName() const noexcept
Return name of the class name read from header.
unsigned scalarByteSize() const noexcept
The sizeof (scalar) in bytes, possibly read from the header.
fileName globalObjectPath() const
The complete global path + object name.
bool good() const noexcept
Did last readHeader() succeed?
bool bad() const noexcept
Did last readHeader() fail?
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 '_').
static word group(const word &name)
Return group (extension part of name).
bool hasHeaderClass() const noexcept
True if headerClassName() is non-empty (after reading).
static bool fileModificationChecking_masterOnly() noexcept
Test fileModificationChecking for master-only.
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.
static fileCheckTypes fileModificationChecking
Type of file modification checking.
unsigned labelByteSize() const noexcept
The sizeof (label) in bytes, possibly read from the header.
fileName path() const
The complete path for the object (with instance, local,...).
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.
fileName globalPath() const
The complete global path for the object (with instance, local,...).
A class for handling file names.
Registry of regIOobjects.
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 expressions::valueTypeCode::INVALID.