|
SimulationChain
|
#include <SObjectFactory.h>
Public Member Functions | |
| ISISO * | CreateObject (ObjType NewObjectType) |
| Creates a new type of discrite object. Returns nullptr if invalid type is given. More... | |
| bool | IsARegulator (CSimNode *) |
| Checks whether the object is a type of regulator. More... | |
| bool | IsARegulator (const ObjType &) |
| Checks whether the object is a type of regulator. More... | |
Static Public Member Functions | |
| static SObjectFactory & | GetInstance () |
| Allows to access the only instance of the factory. | |
Responsible for creating discrite objects which implement ISISO interface.
| ISISO * SObjectFactory::CreateObject | ( | ObjType | NewObjectType | ) |
Creates a new type of discrite object. Returns nullptr if invalid type is given.
| [in] | NewObjectType | Type of the object to create. |
Object creation based on selected type
regulator is an abstract class
invalid type

| bool SObjectFactory::IsARegulator | ( | CSimNode * | node | ) |
Checks whether the object is a type of regulator.
| [in] | node | An object to test. |

| bool SObjectFactory::IsARegulator | ( | const ObjType & | type | ) |
Checks whether the object is a type of regulator.
| [in] | node | An object to test. |