#include <SdoServiceAdmin.h>
Public Member Functions | |
bool | addSdoServiceConsumer (const SDOPackage::ServiceProfile &sProfile) |
Add Service Consumer. | |
bool | addSdoServiceProvider (const SDOPackage::ServiceProfile &prof, SdoServiceProviderBase *provider) |
Set a SDO service provider. | |
SDOPackage::SDOService_ptr | getServiceProvider (const char *id) |
Get ServiceProfile of an SDO Service. | |
SDOPackage::ServiceProfile * | getServiceProviderProfile (const char *id) |
Get ServiceProfile of an SDO Service Provider. | |
SDOPackage::ServiceProfileList * | getServiceProviderProfiles () |
Get ServiceProfileList of SDO Service Provider. | |
bool | removeSdoServiceConsumer (const char *id) |
Remove Service Consumer. | |
bool | removeSdoServiceProvider (const char *id) |
Remove a SDO service provider. | |
SdoServiceAdmin (::RTC::RTObject_impl &rtobj) | |
Constructor. | |
virtual | ~SdoServiceAdmin () |
Protected Member Functions | |
const std::string | getUUID () const |
std::string | ifrToKey (std::string &ifr) |
bool | isEnabledConsumerType (const SDOPackage::ServiceProfile &sProfile) |
If it is enabled service type. | |
bool | isExistingConsumerType (const SDOPackage::ServiceProfile &sProfile) |
If it is existing service type. | |
Private Attributes | |
bool | m_allConsumerEnabled |
coil::Mutex | m_consumer_mutex |
std::vector < SdoServiceConsumerBase * > | m_consumers |
SDO ServiceProfileList with mutex lock. | |
coil::vstring | m_consumerTypes |
coil::Mutex | m_provider_mutex |
std::vector < SdoServiceProviderBase * > | m_providers |
SDO ServiceProfileList with mutex lock. | |
RTC::RTObject_impl & | m_rtobj |
::RTC::Logger | rtclog |
logger |
Definition at line 148 of file SdoServiceAdmin.h.
RTC::SdoServiceAdmin::SdoServiceAdmin | ( | ::RTC::RTObject_impl & | rtobj | ) |
RTC::SdoServiceAdmin::~SdoServiceAdmin | ( | ) | [virtual] |
Virtual destractor.
Definition at line 155 of file SdoServiceAdmin.cpp.
bool RTC::SdoServiceAdmin::addSdoServiceConsumer | ( | const SDOPackage::ServiceProfile & | sProfile | ) |
Add Service Consumer.
Definition at line 302 of file SdoServiceAdmin.cpp.
bool RTC::SdoServiceAdmin::addSdoServiceProvider | ( | const SDOPackage::ServiceProfile & | prof, |
SdoServiceProviderBase * | provider | ||
) |
Set a SDO service provider.
Definition at line 239 of file SdoServiceAdmin.cpp.
SDOPackage::SDOService_ptr RTC::SdoServiceAdmin::getServiceProvider | ( | const char * | id | ) |
Get ServiceProfile of an SDO Service.
This operation returnes an object reference of an SDO Service Provider which has the specified id. If the specified id is NULL pointer or the specified id does not exist in the ServiceProfile list, InvalidParameter exception will be thrown.
id | IFR ID of an SDO Service provider |
Definition at line 222 of file SdoServiceAdmin.cpp.
SDOPackage::ServiceProfile * RTC::SdoServiceAdmin::getServiceProviderProfile | ( | const char * | id | ) |
Get ServiceProfile of an SDO Service Provider.
This operation returnes ServiceProfile of an SDO Service Provider which has the specified id. If the specified id is NULL pointer or the specified id does not exist in the ServiceProfile list, InvalidParameter exception will be thrown.
id | IFR ID of an SDO Service provider |
Definition at line 200 of file SdoServiceAdmin.cpp.
SDOPackage::ServiceProfileList * RTC::SdoServiceAdmin::getServiceProviderProfiles | ( | ) |
Get ServiceProfileList of SDO Service Provider.
Definition at line 179 of file SdoServiceAdmin.cpp.
const std::string RTC::SdoServiceAdmin::getUUID | ( | ) | const [protected] |
Definition at line 471 of file SdoServiceAdmin.cpp.
std::string RTC::SdoServiceAdmin::ifrToKey | ( | std::string & | ifr | ) | [protected] |
Definition at line 480 of file SdoServiceAdmin.cpp.
bool RTC::SdoServiceAdmin::isEnabledConsumerType | ( | const SDOPackage::ServiceProfile & | sProfile | ) | [protected] |
If it is enabled service type.
Definition at line 422 of file SdoServiceAdmin.cpp.
bool RTC::SdoServiceAdmin::isExistingConsumerType | ( | const SDOPackage::ServiceProfile & | sProfile | ) | [protected] |
If it is existing service type.
Definition at line 449 of file SdoServiceAdmin.cpp.
bool RTC::SdoServiceAdmin::removeSdoServiceConsumer | ( | const char * | id | ) |
Remove Service Consumer.
Definition at line 379 of file SdoServiceAdmin.cpp.
bool RTC::SdoServiceAdmin::removeSdoServiceProvider | ( | const char * | id | ) |
Remove a SDO service provider.
Definition at line 268 of file SdoServiceAdmin.cpp.
bool RTC::SdoServiceAdmin::m_allConsumerEnabled [private] |
Definition at line 340 of file SdoServiceAdmin.h.
Definition at line 360 of file SdoServiceAdmin.h.
std::vector<SdoServiceConsumerBase*> RTC::SdoServiceAdmin::m_consumers [private] |
SDO ServiceProfileList with mutex lock.
Definition at line 359 of file SdoServiceAdmin.h.
Definition at line 339 of file SdoServiceAdmin.h.
Definition at line 350 of file SdoServiceAdmin.h.
std::vector<SdoServiceProviderBase*> RTC::SdoServiceAdmin::m_providers [private] |
SDO ServiceProfileList with mutex lock.
Definition at line 349 of file SdoServiceAdmin.h.
RTC::RTObject_impl& RTC::SdoServiceAdmin::m_rtobj [private] |
Definition at line 338 of file SdoServiceAdmin.h.
::RTC::Logger RTC::SdoServiceAdmin::rtclog [private] |
logger
Definition at line 369 of file SdoServiceAdmin.h.