![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for action requests. More...
#include <BaseActionRequest.h>
Public Member Functions | |
| virtual eActionRequestType | getActionRequestType () const =0 |
| retrieve action request type | |
| bool | isInit () const |
| retrieve object initialization flag | |
| const Guid & | getGuid () const |
| retrieve guid associated to action request More... | |
| eExecutionStatus | getStatus () const |
| check for request execution status More... | |
| void | addCompletionCB (const RequestCompletionCB &completionCB) |
| add a completion callback associated to action request More... | |
| ExecResult | executeAction () |
| launch execution of associated action More... | |
| void | requestCancellation () |
| ask for cancellation of associated action More... | |
| bool | isCancellationRequested () const |
| check whether a cancellation has been requested More... | |
| void | waitForCompletion () |
| method allowing to wait for execution end More... | |
| ExecResult | getActionResult () const |
| retrieve action result More... | |
| void | clear () |
| clear of object data More... | |
Constructors and destructors | |
| BaseActionRequest () | |
| virtual | ~BaseActionRequest ()=0 |
Protected Member Functions | |
| BoolResult | initBase (const Guid &requestGuid=Guid()) |
| base class initialization method More... | |
| virtual ExecResult | executeActionDerived ()=0 |
| launch execution of associated action in derived class More... | |
| virtual void | requestCancellationDerived ()=0 |
| ask for cancellation of associated action in derived class | |
| virtual void | clearDerived () |
| clear of object data in derived class | |
| void | setStatusToWaiting () |
| method allowing to set request status to waiting for execution More... | |
| void | notifyCompletion (const ExecResult &bResult) |
| method used to notify of execution completion for request More... | |
Friends | |
| class | AskForRemoteAction |
| class | BaseActionProvider |
Base class for action requests.
| const Guid& ipsdk::core::BaseActionRequest::getGuid | ( | ) | const |
retrieve guid associated to action request
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| eExecutionStatus ipsdk::core::BaseActionRequest::getStatus | ( | ) | const |
check for request execution status
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| void ipsdk::core::BaseActionRequest::addCompletionCB | ( | const RequestCompletionCB & | completionCB | ) |
add a completion callback associated to action request
| ipsdk::core::IPSDKCoreException | if (getStatus() != eExecutionStatus::eES_NotStarted && getStatus() != eExecutionStatus::eES_WaitingForExecution) |
| ExecResult ipsdk::core::BaseActionRequest::executeAction | ( | ) |
launch execution of associated action
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_NotStarted |
| void ipsdk::core::BaseActionRequest::requestCancellation | ( | ) |
ask for cancellation of associated action
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| bool ipsdk::core::BaseActionRequest::isCancellationRequested | ( | ) | const |
check whether a cancellation has been requested
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| void ipsdk::core::BaseActionRequest::waitForCompletion | ( | ) |
method allowing to wait for execution end
| ipsdk::core::IPSDKCoreException | if isInit() == false |
| ExecResult ipsdk::core::BaseActionRequest::getActionResult | ( | ) | const |
retrieve action result
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_Completed |
| void ipsdk::core::BaseActionRequest::clear | ( | ) |
clear of object data
| ipsdk::core::IPSDKCoreException | if isInit() == true && (getStatus() == eExecutionStatus::eES_Running || getStatus() == eExecutionStatus::eES_WaitingForExecution) |
|
protected |
base class initialization method
| ipsdk::core::IPSDKCoreException | if isInit() == true && (getStatus() == eExecutionStatus::eES_Running || getStatus() == eExecutionStatus::eES_WaitingForExecution) |
|
protectedpure virtual |
launch execution of associated action in derived class
Implemented in ipsdk::core::PendingActionRequest, ipsdk::core::RemoteActionRequest, and ipsdk::core::LocalActionRequest.
|
protected |
method allowing to set request status to waiting for execution
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_NotStarted |
|
protected |
method used to notify of execution completion for request
| ipsdk::core::IPSDKCoreException | if getStatus() != eExecutionStatus::eES_Running || getStatus() != eExecutionStatus::eES_WaitingForExecution |
1.8.14