39 #ifndef ORO_SERVICEREQUESTER_HPP_ 40 #define ORO_SERVICEREQUESTER_HPP_ 50 #include <boost/enable_shared_from_this.hpp> 51 #if BOOST_VERSION >= 104000 && BOOST_VERSION < 105300 52 #include <boost/smart_ptr/enable_shared_from_this2.hpp> 54 #if BOOST_VERSION >= 105300 55 #include <boost/smart_ptr/enable_shared_from_raw.hpp> 73 #if BOOST_VERSION >= 104000 74 #if BOOST_VERSION < 105300 75 public boost::enable_shared_from_this2<ServiceRequester>
77 public boost::enable_shared_from_raw
80 public boost::enable_shared_from_this<ServiceRequester>
90 #if BOOST_VERSION >= 105300 100 RequesterNames getRequesterNames()
const;
124 OperationCallerNames getOperationCallerNames()
const;
140 bool addServiceRequester(shared_ptr obj);
148 return mrequests.find(service_name) != mrequests.end();
168 virtual bool ready()
const;
173 virtual void disconnect();
178 virtual void clear();
181 typedef std::map< std::string, ServiceRequester::shared_ptr >
Requests;
An invoker can be given an implementation and is identified by a name.
std::vector< std::string > RequesterNames
OperationCallers mmethods
boost::shared_ptr< const ServiceRequester > shared_constptr
const std::string & getRequestName() const
boost::shared_ptr< ServiceRequester > shared_ptr
Requests mrequests
the services we implement.
boost::shared_ptr< Service > shared_ptr
std::map< std::string, ServiceRequester::shared_ptr > Requests
Service::shared_ptr mprovider
Service::shared_ptr getReferencedService()
Returns the service we're referencing.
std::map< std::string, base::OperationCallerBaseInvoker * > OperationCallers
Our methods.
bool requiresService(const std::string &service_name)
Query if this service requires certain sub-services.
The TaskContext is the C++ representation of an Orocos component.
An object that expresses you wish to use a service.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
TaskContext * getServiceOwner() const
The owner is the top-level TaskContext owning this service (indirectly).
boost::enable_shared_from_this< Service > shared_from_raw
std::vector< std::string > OperationCallerNames