SimulationChain
 All Classes Functions Variables Pages
SObjectFactory Class Reference

#include <SObjectFactory.h>

Public Member Functions

ISISOCreateObject (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 SObjectFactoryGetInstance ()
 Allows to access the only instance of the factory.
 

Detailed Description

Responsible for creating discrite objects which implement ISISO interface.

Note
Implements multi-threading safe singleton pattern.

Member Function Documentation

ISISO * SObjectFactory::CreateObject ( ObjType  NewObjectType)

Creates a new type of discrite object. Returns nullptr if invalid type is given.

Parameters
[in]NewObjectTypeType of the object to create.
Returns
Created object pointer or nullptr.

Object creation based on selected type

regulator is an abstract class

invalid type

Here is the caller graph for this function:

bool SObjectFactory::IsARegulator ( CSimNode node)

Checks whether the object is a type of regulator.

Parameters
[in]nodeAn object to test.
Returns
True if object is regulator.

Here is the call graph for this function:

bool SObjectFactory::IsARegulator ( const ObjType &  type)

Checks whether the object is a type of regulator.

Parameters
[in]nodeAn object to test.
Returns
True if object is regulator.

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