Go to the documentation of this file.
37 #ifndef runTimeCondition_H
38 #define runTimeCondition_H
133 const word& conditionName,
146 virtual bool active()
const;
152 virtual bool apply() = 0;
155 virtual void write() = 0;
Base class for run time conditions.
static autoPtr< runTimeCondition > New(const word &conditionName, const objectRegistry &obr, const dictionary &dict, functionObjectState &state)
Selector.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
Base class for function objects, adding functionality to read/write state information (data required ...
dictionary & setConditionDict()
Set the condition dictionary (create if necessary)
word name_
Condition name.
const objectRegistry & obr_
Reference to the object registry.
const dictionary & conditionDict() const
Return const access to the conditions dictionary.
virtual void write()=0
Write.
TypeName("runTimeCondition")
Runtime type information.
Registry of regIOobjects.
virtual const word & name() const
Return the condition name.
runTimeCondition(const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state)
Constructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
declareRunTimeSelectionTable(autoPtr, runTimeCondition, dictionary,(const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state),(name, obr, dict, state))
Declare runtime constructor selection table.
A list of keyword definitions, which are a keyword followed by any number of values (e....
functionObjectState & state_
State.
bool active_
On/off switch.
virtual ~runTimeCondition()
Destructor.
label groupID_
Group index - if applied, all conditions in a group must be.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
virtual bool active() const
Return the active flag.
Switch log_
Switch to send output to Info.
virtual bool apply()=0
Apply the condition.
dictionary & conditionDict_
Reference to the condition dictionary.
virtual label groupID() const
Return the group index.