A helper class for simple use of the IProcessor object. More...

#include "murl_logic_base_processor.h"

Inheritance diagram for Murl::Logic::BaseProcessor:

Public Member Functions

 BaseProcessor (IFactory *factory)
 The constructor. More...
 
virtual ~BaseProcessor ()
 The destructor. More...
 
 operator IProcessorPtr () const
 Conversion operator. More...
 
IProcessorPtr GetProcessor () const
 Get the processor interface. More...
 
Bool SetAppProcessor (IAppProcessorPtr appProcessor)
 Forward to IProcessor::SetAppProcessor() method. More...
 
Bool IsInitialized () const
 Forward to IProcessor::IsInitialized() method. More...
 
void SetEnabled (Bool isEnabled)
 Forward to IProcessor::SetEnabled() method. More...
 
Bool IsEnabled () const
 Forward to IProcessor::IsEnabled() method. More...
 
Bool AddChild (IProcessorPtr processor)
 Forward to IProcessor::AddChild() method. More...
 
Bool RemoveChild (IProcessorPtr processor)
 Forward to IProcessor::RemoveChild() method. More...
 
Bool InitAddChild (const IState *state, IProcessorPtr processor)
 Forward to IProcessor::InitAddChild() method. More...
 
Bool RemoveDeInitChild (const IState *state, IProcessorPtr processor)
 Forward to IProcessor::RemoveDeInitChild() method. More...
 
UInt32 GetNumberOfChildren () const
 Forward to IProcessor::GetNumberOfChildren() method. More...
 
IProcessorPtr GetChild (UInt32 index) const
 Forward to IProcessor::GetChild() method. More...
 
Bool AddStepable (IStepablePtr stepable)
 Forward to IProcessor::AddStepable() method. More...
 
Bool RemoveStepable (IStepablePtr stepable)
 Forward to IProcessor::RemoveStepable() method. More...
 
Logic::IStepableObserverPtr GetStepableObserver () const
 Forward to IProcessor::GetStepableObserver() method. More...
 
Bool AddGraphNode (IObservableNodePtr observableNode)
 Forward to IProcessor::AddGraphNode() method. More...
 
Bool RemoveGraphNode (IObservableNodePtr observableNode)
 Forward to IProcessor::RemoveGraphNode() method. More...
 
Bool AreGraphNodesValid () const
 Forward to IProcessor::AreGraphNodesValid() method. More...
 
INodeObserverPtr GetNodeObserverPtr () const
 Forward to IProcessor::GetNodeObserver() method. More...
 
INodeObserverGetNodeObserver () const
 Get the processor's node observer interface pointer. More...
 

Protected Member Functions

virtual Bool OnInit (const Logic::IState *state)
 Default implementation of IAppProcessor::OnInit() method, this method is empty and can be overwritten. More...
 
virtual Bool OnDeInit (const Logic::IState *state)
 Default implementation of IAppProcessor::OnDeInit() method, this method is empty and can be overwritten. More...
 
virtual void OnProcessTick (const Logic::IState *state)
 Default implementation of IAppProcessor::OnProcessTick() method, this method is empty and can be overwritten. More...
 
virtual void OnProcessTickChildren (const Logic::IState *state)
 Default implementation of IAppProcessor::OnProcessTickChildren() method, this method is empty and can be overwritten. More...
 
virtual void OnProcessFrame (const Logic::IState *state)
 Default implementation of IAppProcessor::OnProcessFrame() method, this method is empty and can be overwritten. More...
 
virtual void OnProcessFrameChildren (const Logic::IState *state)
 Default implementation of IAppProcessor::OnProcessFrameChildren() method, this method is empty and can be overwritten. More...
 
virtual void OnFinishTick (const Logic::IState *state)
 Default implementation of IAppProcessor::OnFinishTick() method, this method is empty and can be overwritten. More...
 
virtual void OnFinishTickChildren (const Logic::IState *state)
 Default implementation of IAppProcessor::OnFinishTickChildren() method, this method is empty and can be overwritten. More...
 
virtual void OnFinishFrame (const Logic::IState *state)
 Default implementation of IAppProcessor::OnFinishFrame() method, this method is empty and can be overwritten. More...
 
virtual void OnFinishFrameChildren (const Logic::IState *state)
 Default implementation of IAppProcessor::OnFinishFrameChildren() method, this method is empty and can be overwritten. More...
 
virtual void OnPackageWillBeLoaded (const Logic::IState *state, IPackage *package)
 Default implementation of IAppProcessor::OnPackageWillBeLoaded() method, this method is empty and can be overwritten. More...
 
virtual void OnPackageWasLoaded (const Logic::IState *state, IPackage *package)
 Default implementation of IAppProcessor::OnPackageWasLoaded() method, this method is empty and can be overwritten. More...
 
virtual void OnPackageFailedLoading (const Logic::IState *state, IPackage *package)
 Default implementation of IAppProcessor::OnPackageFailedLoading() method, this method is empty and can be overwritten. More...
 
virtual void OnPackageWillBeUnloaded (const Logic::IState *state, IPackage *package)
 Default implementation of IAppProcessor::OnPackageWillBeUnloaded() method, this method is empty and can be overwritten. More...
 
virtual void OnPackageWasUnloaded (const Logic::IState *state, IPackage *package)
 Default implementation of IAppProcessor::OnPackageWasUnloaded() method, this method is empty and can be overwritten. More...
 
virtual void OnPackageFailedUnloading (const Logic::IState *state, IPackage *package)
 Default implementation of IAppProcessor::OnPackageFailedUnloading() method, this method is empty and can be overwritten. More...
 
virtual void OnRunStateChanged (const Logic::IState *state, IEnums::AppRunState currentState, IEnums::AppRunState previousState)
 Default implementation of IAppProcessor::OnRunStateChanged() method, this method is empty and can be overwritten. More...
 
virtual void OnSetEnabled (Bool isEnabled)
 Default implementation of IAppProcessor::OnSetEnabled() method, this method is empty and can be overwritten. More...
 

Detailed Description

A helper class for simple use of the IProcessor object.

The BaseProcessor class implements the IAppProcessor app interface.
A processor is created and initialized at object instantiation.

Constructor & Destructor Documentation

◆ BaseProcessor()

Murl::Logic::BaseProcessor::BaseProcessor ( IFactory factory)
inline

The constructor.

Creates a IProcessor object and setup the processor app interface.

Parameters
factoryThe logic factory object.

◆ ~BaseProcessor()

virtual Murl::Logic::BaseProcessor::~BaseProcessor ( )
inlinevirtual

The destructor.

Destroys the IProcessor object.

Member Function Documentation

◆ operator IProcessorPtr()

Murl::Logic::BaseProcessor::operator IProcessorPtr ( ) const
inline

Conversion operator.

Returns
The IProcessor interface.

◆ GetProcessor()

IProcessorPtr Murl::Logic::BaseProcessor::GetProcessor ( ) const
inline

Get the processor interface.

Returns
The IProcessor interface.

◆ SetAppProcessor()

Bool Murl::Logic::BaseProcessor::SetAppProcessor ( IAppProcessorPtr  appProcessor)
inline

Forward to IProcessor::SetAppProcessor() method.

Parameters
appProcessorThe processor callback object.
Returns
true if successful.

◆ IsInitialized()

Bool Murl::Logic::BaseProcessor::IsInitialized ( ) const
inline

Forward to IProcessor::IsInitialized() method.

Returns
true if the processor is initialized.

◆ SetEnabled()

void Murl::Logic::BaseProcessor::SetEnabled ( Bool  isEnabled)
inline

Forward to IProcessor::SetEnabled() method.

Parameters
isEnabledtrue for enable, false for disable.

◆ IsEnabled()

Bool Murl::Logic::BaseProcessor::IsEnabled ( ) const
inline

Forward to IProcessor::IsEnabled() method.

Returns
true if enabled.

◆ AddChild()

Bool Murl::Logic::BaseProcessor::AddChild ( IProcessorPtr  processor)
inline

Forward to IProcessor::AddChild() method.

Parameters
processorThe processor object to add.
Returns
true if successful.

◆ RemoveChild()

Bool Murl::Logic::BaseProcessor::RemoveChild ( IProcessorPtr  processor)
inline

Forward to IProcessor::RemoveChild() method.

Parameters
processorThe processor object to remove.
Returns
true if successful.

◆ InitAddChild()

Bool Murl::Logic::BaseProcessor::InitAddChild ( const IState state,
IProcessorPtr  processor 
)
inline

Forward to IProcessor::InitAddChild() method.

Parameters
stateThe IState object.
processorThe processor object to initialize and add.
Returns
true if successful.

◆ RemoveDeInitChild()

Bool Murl::Logic::BaseProcessor::RemoveDeInitChild ( const IState state,
IProcessorPtr  processor 
)
inline

Forward to IProcessor::RemoveDeInitChild() method.

Parameters
stateThe IState object.
processorThe processor object to remove and deinitialize.
Returns
true if successful.

◆ GetNumberOfChildren()

UInt32 Murl::Logic::BaseProcessor::GetNumberOfChildren ( ) const
inline

Forward to IProcessor::GetNumberOfChildren() method.

Returns
The number of children.

◆ GetChild()

IProcessorPtr Murl::Logic::BaseProcessor::GetChild ( UInt32  index) const
inline

Forward to IProcessor::GetChild() method.

Parameters
indexThe zero-based index of the child processor.
Returns
The child processor object or null if the index is out of range.

◆ AddStepable()

Bool Murl::Logic::BaseProcessor::AddStepable ( IStepablePtr  stepable)
inline

Forward to IProcessor::AddStepable() method.

Parameters
stepableThe stepable object to add.
Returns
true if successful.

◆ RemoveStepable()

Bool Murl::Logic::BaseProcessor::RemoveStepable ( IStepablePtr  stepable)
inline

Forward to IProcessor::RemoveStepable() method.

Parameters
stepableThe stepable object to remove.
Returns
true if successful.

◆ GetStepableObserver()

Logic::IStepableObserverPtr Murl::Logic::BaseProcessor::GetStepableObserver ( ) const
inline

Forward to IProcessor::GetStepableObserver() method.

Returns
The processor's IStepableObserver object.

◆ AddGraphNode()

Bool Murl::Logic::BaseProcessor::AddGraphNode ( IObservableNodePtr  observableNode)
inline

Forward to IProcessor::AddGraphNode() method.

Parameters
observableNodeThe observable node object to add.
Returns
true if successful.

◆ RemoveGraphNode()

Bool Murl::Logic::BaseProcessor::RemoveGraphNode ( IObservableNodePtr  observableNode)
inline

Forward to IProcessor::RemoveGraphNode() method.

Parameters
observableNodeThe observable node object to remove.
Returns
true if successful.

◆ AreGraphNodesValid()

Bool Murl::Logic::BaseProcessor::AreGraphNodesValid ( ) const
inline

Forward to IProcessor::AreGraphNodesValid() method.

Returns
true if all observed nodes are valid.

◆ GetNodeObserverPtr()

INodeObserverPtr Murl::Logic::BaseProcessor::GetNodeObserverPtr ( ) const
inline

Forward to IProcessor::GetNodeObserver() method.

Returns
The processor's INodeObserver object.

◆ GetNodeObserver()

INodeObserver* Murl::Logic::BaseProcessor::GetNodeObserver ( ) const
inline

Get the processor's node observer interface pointer.

Returns
The processor's INodeObserver interface pointer.

References Murl::SharedPointer< DataType >::Get().

◆ OnInit()

virtual Bool Murl::Logic::BaseProcessor::OnInit ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnInit() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
Returns
true if successful, should return false if any initialization failed.

Implements Murl::Logic::IAppProcessor.

◆ OnDeInit()

virtual Bool Murl::Logic::BaseProcessor::OnDeInit ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnDeInit() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
Returns
true if successful, should return false if any deinitialization failed.

Implements Murl::Logic::IAppProcessor.

◆ OnProcessTick()

virtual void Murl::Logic::BaseProcessor::OnProcessTick ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnProcessTick() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnProcessTickChildren()

virtual void Murl::Logic::BaseProcessor::OnProcessTickChildren ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnProcessTickChildren() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnProcessFrame()

virtual void Murl::Logic::BaseProcessor::OnProcessFrame ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnProcessFrame() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnProcessFrameChildren()

virtual void Murl::Logic::BaseProcessor::OnProcessFrameChildren ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnProcessFrameChildren() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnFinishTick()

virtual void Murl::Logic::BaseProcessor::OnFinishTick ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnFinishTick() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnFinishTickChildren()

virtual void Murl::Logic::BaseProcessor::OnFinishTickChildren ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnFinishTickChildren() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnFinishFrame()

virtual void Murl::Logic::BaseProcessor::OnFinishFrame ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnFinishFrame() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnFinishFrameChildren()

virtual void Murl::Logic::BaseProcessor::OnFinishFrameChildren ( const Logic::IState state)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnFinishFrameChildren() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.

Implements Murl::Logic::IAppProcessor.

◆ OnPackageWillBeLoaded()

virtual void Murl::Logic::BaseProcessor::OnPackageWillBeLoaded ( const Logic::IState state,
IPackage package 
)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnPackageWillBeLoaded() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
packageThe package to load.

Implements Murl::Logic::IAppProcessor.

◆ OnPackageWasLoaded()

virtual void Murl::Logic::BaseProcessor::OnPackageWasLoaded ( const Logic::IState state,
IPackage package 
)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnPackageWasLoaded() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
packageThe package to load.

Implements Murl::Logic::IAppProcessor.

◆ OnPackageFailedLoading()

virtual void Murl::Logic::BaseProcessor::OnPackageFailedLoading ( const Logic::IState state,
IPackage package 
)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnPackageFailedLoading() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
packageThe package to load.

Implements Murl::Logic::IAppProcessor.

◆ OnPackageWillBeUnloaded()

virtual void Murl::Logic::BaseProcessor::OnPackageWillBeUnloaded ( const Logic::IState state,
IPackage package 
)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnPackageWillBeUnloaded() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
packageThe package to load.

Implements Murl::Logic::IAppProcessor.

◆ OnPackageWasUnloaded()

virtual void Murl::Logic::BaseProcessor::OnPackageWasUnloaded ( const Logic::IState state,
IPackage package 
)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnPackageWasUnloaded() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
packageThe package to load.

Implements Murl::Logic::IAppProcessor.

◆ OnPackageFailedUnloading()

virtual void Murl::Logic::BaseProcessor::OnPackageFailedUnloading ( const Logic::IState state,
IPackage package 
)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnPackageFailedUnloading() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
packageThe package to load.

Implements Murl::Logic::IAppProcessor.

◆ OnRunStateChanged()

virtual void Murl::Logic::BaseProcessor::OnRunStateChanged ( const Logic::IState state,
IEnums::AppRunState  currentState,
IEnums::AppRunState  previousState 
)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnRunStateChanged() method, this method is empty and can be overwritten.

Parameters
stateThe IState object.
currentStateThe current run state.
previousStateThe previous run state.

Implements Murl::Logic::IAppProcessor.

◆ OnSetEnabled()

virtual void Murl::Logic::BaseProcessor::OnSetEnabled ( Bool  isEnabled)
inlineprotectedvirtual

Default implementation of IAppProcessor::OnSetEnabled() method, this method is empty and can be overwritten.

Parameters
isEnabledtrue if enabled.

Implements Murl::Logic::IAppProcessor.


The documentation for this class was generated from the following file:
  • murl_logic_base_processor.h


Copyright © 2011-2019 Spraylight GmbH.