1 #include "ServiceRequesterC.h" 3 #include "../../base/OperationCallerBaseInvoker.hpp" 18 CServiceRequester_var
msrq;
20 : mname(opname), msrq(srq) {}
23 return msrq->callerReady( mname.c_str() );
27 msrq->disconnectCaller( mname.c_str() );
42 return msrq->connectCallerTo(mname.c_str(), cocf->
getService() );
45 log(
Error) <<
"Can't connect an operation caller proxy directly to a local service."<<endlog();
46 log(
Error) <<
"Use CServiceRequester::connectTo() or CServiceRequester::connectCallerTo(). "<<endlog();
55 virtual const std::string&
getName()
const {
corba::CService_ptr getService()
Returns the remote service that hosts this part.
virtual bool setImplementation(boost::shared_ptr< base::DisposableInterface > impl, ExecutionEngine *caller=0)
Sets a new implementation for this method.
An invoker can be given an implementation and is identified by a name.
virtual void disconnect()
Disconnects this caller from the operation it was connected to.
A local factory for creating remote Corba methods.
virtual void setCaller(ExecutionEngine *caller)
Sets the caller of this method after the implementation was set.
An execution engine serialises (executes one after the other) the execution of all commands...
virtual const std::string & getName() const
Returns the name of this method instance.
This class defines the interface for creating operation objects without using C++ templates...
OperationCallerProxy(const std::string &opname, CServiceRequester_ptr srq)
Mirrors a remote operation caller in a ServiceRequestor.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
CServiceRequester_var msrq
virtual bool setImplementationPart(OperationInterfacePart *orp, ExecutionEngine *caller=0)
Sets a new implementation for this method by using a service part.
virtual bool ready() const
Returns true if this OperationCaller has received a correct implementation.