SdoServiceAdmin.h
Go to the documentation of this file.
1 // -*- C++ -*-
19 #ifndef RTC_SDOSERVICEADMIN_H
20 #define RTC_SDOSERVICEADMIN_H
21 
22 #include <coil/Mutex.h>
23 #include <coil/Factory.h>
24 
25 #include <rtm/idl/SDOPackageStub.h>
26 #include <rtm/SystemLogger.h>
27 
28 namespace RTC
29 {
30  class RTObject_impl;
31  class SdoServiceProviderBase;
32  class SdoServiceConsumerBase;
33 
149  {
150  public:
171 
187  virtual ~SdoServiceAdmin();
188 
200  SDOPackage::ServiceProfileList* getServiceProviderProfiles();
201 
229  SDOPackage::ServiceProfile* getServiceProviderProfile(const char* id);
230 
258  SDOPackage::SDOService_ptr getServiceProvider(const char* id);
259 
267  bool addSdoServiceProvider(const SDOPackage::ServiceProfile& prof,
269 
277  bool removeSdoServiceProvider(const char* id);
278 
290  bool addSdoServiceConsumer(const SDOPackage::ServiceProfile& sProfile);
291 
303  bool removeSdoServiceConsumer(const char* id);
304 
305 protected:
317  bool isEnabledConsumerType(const SDOPackage::ServiceProfile& sProfile);
318 
330  bool isExistingConsumerType(const SDOPackage::ServiceProfile& sProfile);
331 
332  const std::string getUUID() const;
333 
334  std::string ifrToKey(std::string& ifr);
335 
336 
337  private:
341 
349  std::vector<SdoServiceProviderBase*> m_providers;
351 
359  std::vector<SdoServiceConsumerBase*> m_consumers;
361 
370  };
371 
372 
373 };
374 
375 #endif // RTC_SDOSERVICEADMIN_H
RT-Component.
Mutex class.
RT component logger class.
RT-Component class.
Definition: RTObject.h:89
bool removeSdoServiceProvider(const char *id)
Remove a SDO service provider.
SDOPackage::SDOService_ptr getServiceProvider(const char *id)
Get ServiceProfile of an SDO Service.
bool isEnabledConsumerType(const SDOPackage::ServiceProfile &sProfile)
If it is enabled service type.
::RTC::Logger rtclog
logger
std::vector< std::string > vstring
Definition: stringutil.h:37
SdoServiceAdmin(::RTC::RTObject_impl &rtobj)
Constructor.
coil::vstring m_consumerTypes
std::string ifrToKey(std::string &ifr)
Logger class.
Definition: SystemLogger.h:99
bool addSdoServiceProvider(const SDOPackage::ServiceProfile &prof, SdoServiceProviderBase *provider)
Set a SDO service provider.
const std::string getUUID() const
bool addSdoServiceConsumer(const SDOPackage::ServiceProfile &sProfile)
Add Service Consumer.
SDOPackage::ServiceProfile * getServiceProviderProfile(const char *id)
Get ServiceProfile of an SDO Service Provider.
RTC::RTObject_impl & m_rtobj
SDOPackage::ServiceProfileList * getServiceProviderProfiles()
Get ServiceProfileList of SDO Service Provider.
coil::Mutex m_consumer_mutex
coil::Mutex m_provider_mutex
bool isExistingConsumerType(const SDOPackage::ServiceProfile &sProfile)
If it is existing service type.
virtual ~SdoServiceAdmin()
Virtual destractor.
bool removeSdoServiceConsumer(const char *id)
Remove Service Consumer.
std::vector< SdoServiceConsumerBase * > m_consumers
SDO ServiceProfileList with mutex lock.
std::vector< SdoServiceProviderBase * > m_providers
SDO ServiceProfileList with mutex lock.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:00