A helper class for simple use of the IProcessor object. More...
#include "murl_logic_base_processor.h"
Protected Member Functions | |
Bool | OnInit (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnInit() method, this method is empty and can be overwritten. More... | |
Bool | OnDeInit (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnDeInit() method, this method is empty and can be overwritten. More... | |
void | OnProcessTick (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnProcessTick() method, this method is empty and can be overwritten. More... | |
void | OnProcessTickChildren (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnProcessTickChildren() method, this method is empty and can be overwritten. More... | |
void | OnProcessFrame (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnProcessFrame() method, this method is empty and can be overwritten. More... | |
void | OnProcessFrameChildren (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnProcessFrameChildren() method, this method is empty and can be overwritten. More... | |
void | OnFinishTick (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnFinishTick() method, this method is empty and can be overwritten. More... | |
void | OnFinishTickChildren (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnFinishTickChildren() method, this method is empty and can be overwritten. More... | |
void | OnFinishFrame (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnFinishFrame() method, this method is empty and can be overwritten. More... | |
void | OnFinishFrameChildren (const Logic::IState *state) override |
Default implementation of IAppProcessor::OnFinishFrameChildren() method, this method is empty and can be overwritten. More... | |
void | OnPackageWillBeLoaded (const Logic::IState *state, IPackage *package) override |
Default implementation of IAppProcessor::OnPackageWillBeLoaded() method, this method is empty and can be overwritten. More... | |
void | OnPackageWasLoaded (const Logic::IState *state, IPackage *package) override |
Default implementation of IAppProcessor::OnPackageWasLoaded() method, this method is empty and can be overwritten. More... | |
void | OnPackageFailedLoading (const Logic::IState *state, IPackage *package) override |
Default implementation of IAppProcessor::OnPackageFailedLoading() method, this method is empty and can be overwritten. More... | |
void | OnPackageWillBeUnloaded (const Logic::IState *state, IPackage *package) override |
Default implementation of IAppProcessor::OnPackageWillBeUnloaded() method, this method is empty and can be overwritten. More... | |
void | OnPackageWasUnloaded (const Logic::IState *state, IPackage *package) override |
Default implementation of IAppProcessor::OnPackageWasUnloaded() method, this method is empty and can be overwritten. More... | |
void | OnPackageFailedUnloading (const Logic::IState *state, IPackage *package) override |
Default implementation of IAppProcessor::OnPackageFailedUnloading() method, this method is empty and can be overwritten. More... | |
void | OnRunStateChanged (const Logic::IState *state, IEnums::AppRunState currentState, IEnums::AppRunState previousState) override |
Default implementation of IAppProcessor::OnRunStateChanged() method, this method is empty and can be overwritten. More... | |
void | OnSetEnabled (Bool isEnabled) override |
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()
|
inline |
The constructor.
Creates a IProcessor object and setup the processor app interface.
- Parameters
-
factory The logic factory object.
◆ ~BaseProcessor()
|
inlineoverride |
The destructor.
Destroys the IProcessor object.
Member Function Documentation
◆ operator IProcessorPtr()
|
inline |
Conversion operator.
- Returns
- The IProcessor interface.
◆ GetProcessor()
|
inline |
Get the processor interface.
- Returns
- The IProcessor interface.
◆ SetAppProcessor()
|
inline |
Forward to IProcessor::SetAppProcessor() method.
- Parameters
-
appProcessor The processor callback object.
- Returns
- true if successful.
◆ IsInitialized()
|
inline |
Forward to IProcessor::IsInitialized() method.
- Returns
- true if the processor is initialized.
◆ SetEnabled()
|
inline |
Forward to IProcessor::SetEnabled() method.
- Parameters
-
isEnabled true for enable, false for disable.
◆ IsEnabled()
|
inline |
Forward to IProcessor::IsEnabled() method.
- Returns
- true if enabled.
◆ AddChild()
|
inline |
Forward to IProcessor::AddChild() method.
- Parameters
-
processor The processor object to add.
- Returns
- true if successful.
◆ RemoveChild()
|
inline |
Forward to IProcessor::RemoveChild() method.
- Parameters
-
processor The processor object to remove.
- Returns
- true if successful.
◆ InitAddChild()
|
inline |
Forward to IProcessor::InitAddChild() method.
- Parameters
-
state The IState object. processor The processor object to initialize and add.
- Returns
- true if successful.
◆ RemoveDeInitChild()
|
inline |
Forward to IProcessor::RemoveDeInitChild() method.
- Parameters
-
state The IState object. processor The processor object to remove and deinitialize.
- Returns
- true if successful.
◆ GetNumberOfChildren()
|
inline |
Forward to IProcessor::GetNumberOfChildren() method.
- Returns
- The number of children.
◆ GetChild()
|
inline |
Forward to IProcessor::GetChild() method.
- Parameters
-
index The zero-based index of the child processor.
- Returns
- The child processor object or null if the index is out of range.
◆ AddStepable()
|
inline |
Forward to IProcessor::AddStepable() method.
- Parameters
-
stepable The stepable object to add.
- Returns
- true if successful.
◆ RemoveStepable()
|
inline |
Forward to IProcessor::RemoveStepable() method.
- Parameters
-
stepable The stepable object to remove.
- Returns
- true if successful.
◆ GetStepableObserver()
|
inline |
Forward to IProcessor::GetStepableObserver() method.
- Returns
- The processor's IStepableObserver object.
◆ AddGraphNode()
|
inline |
Forward to IProcessor::AddGraphNode() method.
- Parameters
-
observableNode The observable node object to add.
- Returns
- true if successful.
◆ RemoveGraphNode()
|
inline |
Forward to IProcessor::RemoveGraphNode() method.
- Parameters
-
observableNode The observable node object to remove.
- Returns
- true if successful.
◆ AreGraphNodesValid()
|
inline |
Forward to IProcessor::AreGraphNodesValid() method.
- Returns
- true if all observed nodes are valid.
◆ GetNodeObserverPtr()
|
inline |
Forward to IProcessor::GetNodeObserver() method.
- Returns
- The processor's INodeObserver object.
◆ GetNodeObserver()
|
inline |
Get the processor's node observer interface pointer.
- Returns
- The processor's INodeObserver interface pointer.
References Murl::SharedPointer< DataType >::Get().
◆ OnInit()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnInit() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
- Returns
- true if successful, should return false if any initialization failed.
Implements Murl::Logic::IAppProcessor.
◆ OnDeInit()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnDeInit() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
- Returns
- true if successful, should return false if any deinitialization failed.
Implements Murl::Logic::IAppProcessor.
◆ OnProcessTick()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnProcessTick() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnProcessTickChildren()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnProcessTickChildren() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnProcessFrame()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnProcessFrame() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnProcessFrameChildren()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnProcessFrameChildren() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnFinishTick()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnFinishTick() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnFinishTickChildren()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnFinishTickChildren() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnFinishFrame()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnFinishFrame() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnFinishFrameChildren()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnFinishFrameChildren() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object.
Implements Murl::Logic::IAppProcessor.
◆ OnPackageWillBeLoaded()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnPackageWillBeLoaded() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object. package The package to load.
Implements Murl::Logic::IAppProcessor.
◆ OnPackageWasLoaded()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnPackageWasLoaded() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object. package The package to load.
Implements Murl::Logic::IAppProcessor.
◆ OnPackageFailedLoading()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnPackageFailedLoading() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object. package The package to load.
Implements Murl::Logic::IAppProcessor.
◆ OnPackageWillBeUnloaded()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnPackageWillBeUnloaded() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object. package The package to load.
Implements Murl::Logic::IAppProcessor.
◆ OnPackageWasUnloaded()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnPackageWasUnloaded() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object. package The package to load.
Implements Murl::Logic::IAppProcessor.
◆ OnPackageFailedUnloading()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnPackageFailedUnloading() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object. package The package to load.
Implements Murl::Logic::IAppProcessor.
◆ OnRunStateChanged()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnRunStateChanged() method, this method is empty and can be overwritten.
- Parameters
-
state The IState object. currentState The current run state. previousState The previous run state.
Implements Murl::Logic::IAppProcessor.
◆ OnSetEnabled()
|
inlineoverrideprotectedvirtual |
Default implementation of IAppProcessor::OnSetEnabled() method, this method is empty and can be overwritten.
- Parameters
-
isEnabled true if enabled.
Implements Murl::Logic::IAppProcessor.
The documentation for this class was generated from the following file:
- murl_logic_base_processor.h