Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update. More...
#include <registerSwitch.H>


Public Member Functions | |
| RegisterSwitch (void(*registryFn)(const char *name, simpleRegIOobject *), const char *name, Type &switchVar) | |
| virtual | ~RegisterSwitch ()=default |
| virtual void | readData (Istream &is) |
| Read. | |
| virtual void | writeData (Ostream &os) const |
| Write. | |
| Public Member Functions inherited from simpleRegIOobject | |
| simpleRegIOobject (void(*fn)(const char *name, simpleRegIOobject *), const char *name) | |
| Construct from objectregistry inserter and name. | |
| virtual | ~simpleRegIOobject ()=default |
| Destructor. | |
Public Attributes | |
| Type & | value |
| Reference to the switch variable that has been registered. | |
Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update.
Definition at line 45 of file registerSwitch.H.
|
inline |
Definition at line 56 of file registerSwitch.H.
References Foam::name(), simpleRegIOobject::simpleRegIOobject(), and value.

|
virtualdefault |
|
inlinevirtual |
Read.
Implements simpleRegIOobject.
Definition at line 69 of file registerSwitch.H.
References value.
|
inlinevirtual |
Write.
Implements simpleRegIOobject.
Definition at line 74 of file registerSwitch.H.

| Type& value |
Reference to the switch variable that has been registered.
Definition at line 54 of file registerSwitch.H.
Referenced by readData(), RegisterSwitch(), and writeData().