![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for action providers. More...
#include <BaseActionProvider.h>
Public Member Functions | |
| bool | isInit () const |
| retrieve object initialization flag | |
| const Guid & | getGuid () const |
| retrieve guid associated to provider More... | |
| const ePriority & | getActionsPriority () const |
| retrieve priority associated to provided actions More... | |
| eExecutionStatus | getStatus () const |
| check for provider execution status More... | |
| void | addCompletionCB (const ProviderCompletionCB &completionCB) |
| add a completion callback associated to action provider More... | |
| bool | areActionsPending () const |
| check whether additional actions potentially are pending More... | |
| void | waitForCompletion () |
| method allowing to wait for execution completion More... | |
| bool | waitForCompletion (const boost::chrono::milliseconds &duration) |
| method allowing to wait for a given duration for execution completion More... | |
| bool | waitForCompletion (const boost::chrono::system_clock::time_point &deadLineTime) |
| method allowing to wait until a given time point for execution completion More... | |
| void | requestCancellation () |
| method allowing to request cancellation More... | |
| bool | isCancellationRequested () const |
| check whether a cancellation has been requested More... | |
| ExecResult | getGlobalResult () const |
| retrieve execution global result More... | |
| double | getFullExecutionDuration () const |
| retrieve full execution time More... | |
| void | clear () |
| clear of object data More... | |
Constructors and destructors | |
| BaseActionProvider () | |
| virtual | ~BaseActionProvider ()=0 |
Protected Member Functions | |
| BoolResult | initBase (const BasePriority &actionsPriority, const Guid &providerGuid=Guid()) |
| base class initialization method More... | |
| bool | existsRemoteProvider (const Guid &socketGuid) |
| check whether a remote provider exists for a given socket guid More... | |
| void | addRemoteProvider (const Guid &socketGuid) |
| define a new remote provider for a given socket guid More... | |
| bool | unRegisterRemoteProvider (const Guid &socketGuid) |
| un register a remote provider for a given socket guid More... | |
| BoolResult | registerRemoteProvider (const Guid &socketGuid) |
| instantly register a new remote provider for a given socket guid More... | |
| BoolResult | registerRemoteProviders () |
| register remote providers associated to object More... | |
| virtual QueryResult | queryNextAction (const BaseRequestOrigin &requestOrigin, ActionRequestPtr &pActionRequest, bool &bProcessCompletionCheck, SerializationObjectPtr &pCbAdditionalData)=0 |
| query for next action to be processed in derived class More... | |
| virtual bool | hasPendingAction () const =0 |
| method allowing to check whether actions are pending in derived class | |
| virtual BoolResult | notifyDerived (const ActionRequestPtr &pActionRequest, const SerializationObjectConstPtr &pCbAdditionalData, bool &bRestartProvider) |
| method used to notify of execution completion for a given request More... | |
| virtual void | clearDerived () |
| clear of data in derived class | |
| virtual void | requestCancellationDerived () |
| method allowing to request cancellation in derived classes | |
Friends | |
| class | processor::BaseAsyncProcessor |
| class | ThreadManager |
| class | ProviderManager |
| class | AskForRemoteAction |
| class | UpdateRemoteAction |
| class | UpdatePendingAction |
Base class for action providers.
| const Guid& ipsdk::core::BaseActionProvider::getGuid | ( | ) | const |
retrieve guid associated to provider
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| const ePriority& ipsdk::core::BaseActionProvider::getActionsPriority | ( | ) | const |
retrieve priority associated to provided actions
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| eExecutionStatus ipsdk::core::BaseActionProvider::getStatus | ( | ) | const |
check for provider execution status
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| void ipsdk::core::BaseActionProvider::addCompletionCB | ( | const ProviderCompletionCB & | completionCB | ) |
add a completion callback associated to action provider
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_NotStarted |
| bool ipsdk::core::BaseActionProvider::areActionsPending | ( | ) | const |
check whether additional actions potentially are pending
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| void ipsdk::core::BaseActionProvider::waitForCompletion | ( | ) |
method allowing to wait for execution completion
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| bool ipsdk::core::BaseActionProvider::waitForCompletion | ( | const boost::chrono::milliseconds & | duration | ) |
method allowing to wait for a given duration for execution completion
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| bool ipsdk::core::BaseActionProvider::waitForCompletion | ( | const boost::chrono::system_clock::time_point & | deadLineTime | ) |
method allowing to wait until a given time point for execution completion
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| void ipsdk::core::BaseActionProvider::requestCancellation | ( | ) |
method allowing to request cancellation
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| bool ipsdk::core::BaseActionProvider::isCancellationRequested | ( | ) | const |
check whether a cancellation has been requested
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| ExecResult ipsdk::core::BaseActionProvider::getGlobalResult | ( | ) | const |
retrieve execution global result
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_Completed |
| double ipsdk::core::BaseActionProvider::getFullExecutionDuration | ( | ) | const |
retrieve full execution time
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_Completed |
| void ipsdk::core::BaseActionProvider::clear | ( | ) |
clear of object data
| ipsdk::core::IPSDKCoreException | if isInit() == true && getStatus() == eExecutionStatus::eES_Running |
|
protected |
base class initialization method
| ipsdk::core::IPSDKCoreException | if isInit() == true && getStatus() == eExecutionStatus::eES_Running |
|
protected |
check whether a remote provider exists for a given socket guid
| ipsdk::core::IPSDKCoreException | if isInit() == false |
|
protected |
define a new remote provider for a given socket guid
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_NotStarted |
| ipsdk::core::IPSDKCoreException | if existsRemoteProvider(socketGuid) == true |
|
protected |
un register a remote provider for a given socket guid
| ipsdk::core::IPSDKCoreException | if isInit() == true |
|
protected |
instantly register a new remote provider for a given socket guid
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_Running |
| ipsdk::core::IPSDKCoreException | if existsRemoteProvider(socketGuid) == true |
|
protected |
register remote providers associated to object
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_NotStarted |
|
protectedpure virtual |
query for next action to be processed in derived class
Implemented in ipsdk::core::SingleActionProvider, and ipsdk::core::RemoteActionProvider.
|
inlineprotectedvirtual |
method used to notify of execution completion for a given request
Reimplemented in ipsdk::core::RemoteActionProvider.
1.8.14