Public Member Functions | List of all members
RegisterSwitch< Type > Class Template Reference

Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update. More...

Inheritance diagram for RegisterSwitch< Type >:
Inheritance graph
[legend]
Collaboration diagram for RegisterSwitch< Type >:
Collaboration graph
[legend]

Public Member Functions

 RegisterSwitch (void(*registryFn)(const char *name, simpleRegIOobject *), const char *name, Type &optSwitch)
 
virtual ~RegisterSwitch ()
 
virtual void readData (Foam::Istream &is)
 Read. More...
 
virtual void writeData (Foam::Ostream &os) const
 Write. More...
 
- Public Member Functions inherited from simpleRegIOobject
 simpleRegIOobject (void(*fn)(const char *name, simpleRegIOobject *), const char *name)
 Construct from objectregistry inserter and name. More...
 
virtual ~simpleRegIOobject ()
 Destructor. More...
 

Detailed Description

template<class Type>
class Foam::RegisterSwitch< Type >

Class and registration macros for InfoSwitches and OptimisationSwitches to support reading from system/controlDict and dynamic update.

Definition at line 47 of file registerSwitch.H.

Constructor & Destructor Documentation

RegisterSwitch ( void(*)(const char *name, simpleRegIOobject *)  registryFn,
const char *  name,
Type &  optSwitch 
)
inline

Definition at line 56 of file registerSwitch.H.

virtual ~RegisterSwitch ( )
inlinevirtual

Definition at line 66 of file registerSwitch.H.

Member Function Documentation

virtual void readData ( Foam::Istream )
inlinevirtual

Read.

Implements simpleRegIOobject.

Definition at line 69 of file registerSwitch.H.

virtual void writeData ( Foam::Ostream ) const
inlinevirtual

Write.

Implements simpleRegIOobject.

Definition at line 74 of file registerSwitch.H.


The documentation for this class was generated from the following file: