88 active_(
dict.getOrDefault(
"active", true)),
89 conditionDict_(setConditionDict()),
90 groupID_(
dict.getOrDefault(
"groupID", -1)),
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
Base class for run time conditions.
Switch log
Switch to send output to Info.
bool active_
On/off switch.
const objectRegistry & obr_
Reference to the object registry.
word name_
Condition name.
dictionary & conditionDict_
Reference to the condition dictionary.
dictionary & setConditionDict()
Set the condition dictionary (create if necessary).
label groupID_
Group index - if applied, all conditions in a group must be.
virtual label groupID() const
Return the group index.
const dictionary & conditionDict() const
Return const access to the conditions dictionary.
runTimeCondition(const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state)
Constructor.
stateFunctionObject & state_
State.
virtual bool active() const
Return the active flag.
virtual const word & name() const
Return the condition name.
Base class for function objects, adding functionality to read/write state information (data required ...
dictionary & propertyDict()
Return access to the property dictionary.
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.