Murl::Logic::IEngineFactory Interface Referenceabstract

The IEngineFactory interface. More...

#include "murl_logic_i_engine_factory.h"

Inherited by Murl::Logic::Factory.

Public Member Functions

virtual Bool Init ()=0
 Initialize the factory. More...
 
virtual Bool DeInit ()=0
 Deinitialize the factory. More...
 
virtual IEngineStateCreateEngineState (IEngine *engine, IDeviceHandler *deviceHandler, IAppConfiguration *appConfig, ILoader *loader, IFileInterface *fileInterface, Resource::IFactory *resourceFactory, Net::IFactory *netFactory, const Core::IStatistics *statistics)=0
 Create the engine state object. More...
 
virtual Bool DestroyEngineState (IEngineState *&engineState)=0
 Destroy the engine state object. More...
 
virtual IDeviceHandlerCreateDeviceHandler (Input::IDeviceHandler *inputDeviceHandler, Output::IDeviceHandler *outputDeviceHandler)=0
 Create the device handler object. More...
 
virtual Bool DestroyDeviceHandler (IDeviceHandler *&deviceHandler)=0
 Destroy the device handler object. More...
 
virtual IFactoryGetIFactory ()=0
 Get the IFactory object. More...
 

Detailed Description

The IEngineFactory interface.

The IEngineFactory object is created and used by the engine's core only. Application implementations are using the IFactory object from IState::GetFactory() which is passed via the IEngineProcessor methods.

Member Function Documentation

◆ Init()

virtual Bool Murl::Logic::IEngineFactory::Init ( )
pure virtual

Initialize the factory.

Returns
true if successful.

◆ DeInit()

virtual Bool Murl::Logic::IEngineFactory::DeInit ( )
pure virtual

Deinitialize the factory.

Returns
true if successful.

◆ CreateEngineState()

virtual IEngineState* Murl::Logic::IEngineFactory::CreateEngineState ( IEngine engine,
IDeviceHandler deviceHandler,
IAppConfiguration appConfig,
ILoader loader,
IFileInterface fileInterface,
Resource::IFactory resourceFactory,
Net::IFactory netFactory,
const Core::IStatistics statistics 
)
pure virtual

Create the engine state object.

Parameters
engineThe engine object.
deviceHandlerThe device handler object.
appConfigThe application configuration object.
loaderThe loader object.
fileInterfaceThe file interface object.
resourceFactoryThe resource factory.
netFactoryThe net object factory.
statisticsThe core statistics object.
Returns
The created engine state object, or null if failed.

◆ DestroyEngineState()

virtual Bool Murl::Logic::IEngineFactory::DestroyEngineState ( IEngineState *&  engineState)
pure virtual

Destroy the engine state object.

Parameters
engineStateA reference to the engine state pointer. After destruction the pointer is set to null.
Returns
true if successful.

◆ CreateDeviceHandler()

virtual IDeviceHandler* Murl::Logic::IEngineFactory::CreateDeviceHandler ( Input::IDeviceHandler inputDeviceHandler,
Output::IDeviceHandler outputDeviceHandler 
)
pure virtual

Create the device handler object.

Parameters
inputDeviceHandlerThe input device handler object.
outputDeviceHandlerThe output device handler object.
Returns
The created device handler object, or null if failed.

◆ DestroyDeviceHandler()

virtual Bool Murl::Logic::IEngineFactory::DestroyDeviceHandler ( IDeviceHandler *&  deviceHandler)
pure virtual

Destroy the device handler object.

Parameters
deviceHandlerA reference to the device handler pointer. After destruction the pointer is set to null.
Returns
true if successful.

◆ GetIFactory()

virtual IFactory* Murl::Logic::IEngineFactory::GetIFactory ( )
pure virtual

Get the IFactory object.

Returns
The IFactory object.

The documentation for this interface was generated from the following file:
  • murl_logic_i_engine_factory.h


Copyright © 2011-2024 Spraylight GmbH.