Orocos Real-Time Toolkit  2.9.0
Public Member Functions | Public Attributes | List of all members
RTT::corba::OperationCallerProxy Struct Reference

Mirrors a remote operation caller in a ServiceRequestor. More...

#include <rtt/transports/corba/OperationCallerProxy.hpp>

Inheritance diagram for RTT::corba::OperationCallerProxy:
RTT::base::OperationCallerBaseInvoker

Public Member Functions

 OperationCallerProxy (const std::string &opname, CServiceRequester_ptr srq)
 
virtual bool ready () const
 Returns true if this OperationCaller has received a correct implementation. More...
 
virtual void disconnect ()
 Disconnects this caller from the operation it was connected to. More...
 
virtual bool setImplementation (boost::shared_ptr< base::DisposableInterface > impl, ExecutionEngine *caller=0)
 Sets a new implementation for this method. More...
 
virtual bool setImplementationPart (OperationInterfacePart *orp, ExecutionEngine *caller=0)
 Sets a new implementation for this method by using a service part. More...
 
virtual void setCaller (ExecutionEngine *caller)
 Sets the caller of this method after the implementation was set. More...
 
virtual const std::string & getName () const
 Returns the name of this method instance. More...
 

Public Attributes

std::string mname
 
CServiceRequester_var msrq
 

Detailed Description

Mirrors a remote operation caller in a ServiceRequestor.

Will forward our 'connect to' -> 'setImplementationPart' requests to the remote side.

Definition at line 14 of file OperationCallerProxy.hpp.

Constructor & Destructor Documentation

RTT::corba::OperationCallerProxy::OperationCallerProxy ( const std::string &  opname,
CServiceRequester_ptr  srq 
)
inline

Definition at line 19 of file OperationCallerProxy.hpp.

Member Function Documentation

virtual void RTT::corba::OperationCallerProxy::disconnect ( )
inlinevirtual

Disconnects this caller from the operation it was connected to.

If this OperationCaller had a name, the name is still kept.

Postcondition
this->ready() == false

Implements RTT::base::OperationCallerBaseInvoker.

Definition at line 26 of file OperationCallerProxy.hpp.

virtual const std::string& RTT::corba::OperationCallerProxy::getName ( ) const
inlinevirtual

Returns the name of this method instance.

Implements RTT::base::OperationCallerBaseInvoker.

Definition at line 55 of file OperationCallerProxy.hpp.

References mname.

virtual bool RTT::corba::OperationCallerProxy::ready ( ) const
inlinevirtual

Returns true if this OperationCaller has received a correct implementation.

Implements RTT::base::OperationCallerBaseInvoker.

Definition at line 22 of file OperationCallerProxy.hpp.

virtual void RTT::corba::OperationCallerProxy::setCaller ( ExecutionEngine caller)
inlinevirtual

Sets the caller of this method after the implementation was set.

Parameters
caller

Implements RTT::base::OperationCallerBaseInvoker.

Definition at line 51 of file OperationCallerProxy.hpp.

virtual bool RTT::corba::OperationCallerProxy::setImplementation ( boost::shared_ptr< base::DisposableInterface impl,
ExecutionEngine caller = 0 
)
inlinevirtual

Sets a new implementation for this method.

Parameters
implAn implementation object that can be upcast to the OperationCallerBase class type of this method.
callerThe engine of the calling TaskContext.
Returns
true if the impl could be upcast to a matching OperationCallerBase type, false otherwise.

Implements RTT::base::OperationCallerBaseInvoker.

Definition at line 30 of file OperationCallerProxy.hpp.

virtual bool RTT::corba::OperationCallerProxy::setImplementationPart ( OperationInterfacePart orp,
ExecutionEngine caller = 0 
)
inlinevirtual

Sets a new implementation for this method by using a service part.

Parameters
orpA part obtained from a service's OperationInterface.
callerThe engine of the calling TaskContext.
Returns
true if the part could produce the correct OperationCallerBase type, false otherwise.

Implements RTT::base::OperationCallerBaseInvoker.

Definition at line 35 of file OperationCallerProxy.hpp.

References RTT::Error, and RTT::corba::CorbaOperationCallerFactory::getService().

Member Data Documentation

std::string RTT::corba::OperationCallerProxy::mname

Definition at line 17 of file OperationCallerProxy.hpp.

Referenced by getName().

CServiceRequester_var RTT::corba::OperationCallerProxy::msrq

Definition at line 18 of file OperationCallerProxy.hpp.


The documentation for this struct was generated from the following file: