#include <OperationCallerInterface.hpp>
Public Types | |
typedef boost::shared_ptr < OperationCallerInterface > | shared_ptr |
Public Member Functions | |
bool | isSend () |
OperationCallerInterface () | |
OperationCallerInterface (OperationCallerInterface const &orig) | |
virtual bool | ready () const =0 |
void | reportError () |
void | setCaller (ExecutionEngine *ee) |
void | setExecutor (ExecutionEngine *ee) |
void | setOwner (ExecutionEngine *ee) |
bool | setThread (ExecutionThread et, ExecutionEngine *executor) |
virtual | ~OperationCallerInterface () |
Protected Attributes | |
ExecutionEngine * | caller |
ExecutionThread | met |
ExecutionEngine * | myengine |
ExecutionEngine * | ownerEngine |
The interface class for operation callers.
Definition at line 15 of file OperationCallerInterface.hpp.
typedef boost::shared_ptr<OperationCallerInterface> RTT::base::OperationCallerInterface::shared_ptr |
Use this type for shared pointer storage of an OperationCallerInterface object.
Reimplemented from RTT::base::DisposableInterface.
Reimplemented in RTT::internal::LocalOperationCallerImpl< FunctionT >, RTT::base::OperationCallerBase< F >, RTT::base::OperationCallerBase< OperationCallerT >, RTT::base::OperationCallerBase< Signature >, and RTT::base::OperationCallerBase< FunctionT >.
Definition at line 21 of file OperationCallerInterface.hpp.
Definition at line 8 of file OperationCallerInterface.cpp.
Definition at line 12 of file OperationCallerInterface.cpp.
OperationCallerInterface::~OperationCallerInterface | ( | ) | [virtual] |
Definition at line 16 of file OperationCallerInterface.cpp.
bool RTT::base::OperationCallerInterface::isSend | ( | ) | [inline] |
Helpful function to tell us if this operations is to be sent or not.
Definition at line 82 of file OperationCallerInterface.hpp.
virtual bool RTT::base::OperationCallerInterface::ready | ( | ) | const [pure virtual] |
Available such that implementations have a way to expose their ready-ness, ie being able to do the call.
Implemented in RTT::internal::LocalOperationCallerImpl< FunctionT >.
Executed when the operation execution resulted in a C++ exception. Must report the error to the ExecutionEngine of the owner of this operation.
Definition at line 47 of file OperationCallerInterface.cpp.
void OperationCallerInterface::setCaller | ( | ExecutionEngine * | ee | ) |
Sets the caller's engine of this operation. This object will be used to test if asynchronous messaging is required.
ee | The ExecutionEngine of the component that is calling this operation. |
Definition at line 31 of file OperationCallerInterface.cpp.
void OperationCallerInterface::setExecutor | ( | ExecutionEngine * | ee | ) |
Set an executor which will execute this method when it is called or sent. If ee is set to 0, the method will be executed in the client's thread or the GlobalExecutionEngine.
ee | The ExecutionEngine of the component that is executing this operation. |
Definition at line 24 of file OperationCallerInterface.cpp.
void OperationCallerInterface::setOwner | ( | ExecutionEngine * | ee | ) |
Set the ExecutionEngine of the task which owns this method.
ee | The ExecutionEngine of the component that owns this operation. |
Definition at line 20 of file OperationCallerInterface.cpp.
bool OperationCallerInterface::setThread | ( | ExecutionThread | et, |
ExecutionEngine * | executor | ||
) |
Sets the Thread execution policy of this object.
et | OwnThread or ClientThread. |
executor | The engine of the component owning this operation. In case it is not yet owned by a component, executor may be null. |
Definition at line 38 of file OperationCallerInterface.cpp.
Definition at line 85 of file OperationCallerInterface.hpp.
Definition at line 87 of file OperationCallerInterface.hpp.
Definition at line 84 of file OperationCallerInterface.hpp.
Definition at line 86 of file OperationCallerInterface.hpp.