Orocos Real-Time Toolkit
2.9.0
|
#include <rtt/transports/corba/ServiceI.h>
Public Member Functions | |
RTT_corba_CService_i (RTT::ServicePtr service, PortableServer::POA_ptr poa) | |
virtual | ~RTT_corba_CService_i (void) |
virtual RTT::corba::CService_ptr | activate_this () |
PortableServer::POA_ptr | _default_POA () |
virtual char * | getName (void) |
virtual char * | getServiceDescription (void) |
virtual ::RTT::corba::CServiceDescription * | getCServiceDescription (void) |
static::RTT::corba::CServiceDescription * | getCServiceDescription (const RTT::Service::shared_ptr &) |
virtual ::RTT::corba::CService::CProviderNames * | getProviderNames (void) |
virtual ::RTT::corba::CService_ptr | getService (const char *name) |
virtual ::CORBA::Boolean | hasService (const char *name) |
::RTT::base::DataSourceBase::shared_ptr | getAttributeDataSource (const std::string &value_name) |
::RTT::base::DataSourceBase::shared_ptr | getPropertyDataSource (const std::string &value_name) |
virtual ::RTT::corba::CConfigurationInterface::CAttributeNames * | getAttributeList (void) |
virtual ::RTT::corba::CConfigurationInterface::CPropertyNames * | getPropertyList (void) |
virtual ::CORBA::Any * | getAttribute (const char *name) |
virtual ::CORBA::Boolean | setAttribute (const char *name, const ::CORBA::Any &value) |
virtual ::CORBA::Any * | getProperty (const char *name) |
virtual ::CORBA::Boolean | setProperty (const char *name, const ::CORBA::Any &value) |
CORBA::Boolean | hasAttribute (const char *name) |
CORBA::Boolean | isAttributeAssignable (const char *name) |
virtual char * | getAttributeType (const char *name) |
virtual char * | getAttributeTypeName (const char *name) |
virtual char * | attributeToString (const char *name) |
virtual CORBA::Boolean | attributeFromString (const char *name, const char *value) |
CORBA::Boolean | hasProperty (const char *name) |
virtual char * | getPropertyType (const char *name) |
virtual char * | getPropertyTypeName (const char *name) |
virtual char * | propertyToString (const char *name) |
virtual CORBA::Boolean | propertyFromString (const char *name, const char *value) |
virtual RTT::corba::COperationInterface::COperationDescriptions * | getOperations (void) |
virtual ::RTT::corba::CArgumentDescriptions * | getArguments (const char *operation) |
virtual ::RTT::corba::CTypeList * | getCollectTypes (const char *operation) |
virtual char * | getResultType (const char *operation) |
virtual char * | getArgumentType (const char *, CORBA::UShort) |
virtual char * | getCollectType (const char *, CORBA::UShort) |
virtual ::CORBA::UShort | getArity (const char *operation) |
virtual ::CORBA::UShort | getCollectArity (const char *operation) |
virtual char * | getDescription (const char *operation) |
virtual void | checkOperation (const char *operation, const ::RTT::corba::CAnyArguments &args) |
virtual ::CORBA::Any * | callOperation (const char *operation,::RTT::corba::CAnyArguments &args) |
virtual ::RTT::corba::CSendHandle_ptr | sendOperation (const char *operation, const ::RTT::corba::CAnyArguments &args) |
virtual void | sendOperationOneway (const char *operation, const ::RTT::corba::CAnyArguments &args) |
DataFlowInterface * | getDataFlowInterface () const |
void | deregisterChannel (CChannelElement_ptr channel) |
Deregisters the given channel from the channel list. More... | |
Static Public Member Functions | |
static void | registerServant (CDataFlowInterface_ptr objref, CDataFlowInterface_i *servant) |
static void | deregisterServant (DataFlowInterface *obj) |
static void | clearServants () |
static DataFlowInterface * | getLocalInterface (CDataFlowInterface_ptr objref) |
static CDataFlowInterface_ptr | getRemoteInterface (DataFlowInterface *dfi, PortableServer::POA_ptr poa) |
Returns an object reference to a remote interface. More... | |
Protected Types | |
typedef std::map< std::string, std::pair< RTT::corba::CService_var, PortableServer::ServantBase_var > > | Servants |
Protected Attributes | |
PortableServer::POA_var | mpoa |
boost::weak_ptr< RTT::Service > | mservice |
Servants | mservs |
Definition at line 88 of file ServiceI.h.
|
protected |
Definition at line 98 of file ServiceI.h.
RTT_corba_CService_i::RTT_corba_CService_i | ( | RTT::ServicePtr | service, |
PortableServer::POA_ptr | poa | ||
) |
Definition at line 76 of file ServiceI.cpp.
Referenced by getService().
|
virtual |
Definition at line 85 of file ServiceI.cpp.
PortableServer::POA_ptr RTT_corba_CService_i::_default_POA | ( | ) |
|
inlinevirtual |
Reimplemented from RTT_corba_CConfigurationInterface_i.
Definition at line 107 of file ServiceI.h.
References _default_POA(), getCServiceDescription(), getName(), getProviderNames(), getService(), getServiceDescription(), and hasService().
Referenced by RTT_corba_CTaskContext_i::getProvider(), and getService().
|
virtualinherited |
Definition at line 274 of file ConfigurationInterfaceI.cpp.
References RTT::Error, and RTT_corba_CConfigurationInterface_i::getAttributeDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
virtualinherited |
Definition at line 263 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getAttributeDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
inherited |
Definition at line 380 of file OperationInterfaceI.cpp.
References RTT::internal::OperationCallerC::arg(), RTT::internal::OperationCallerC::check(), RTT::corba::CorbaTypeTransporter::createAny(), RTT::corba::CorbaTypeTransporter::createDataSource(), RTT::wrong_types_of_args_exception::expected_, RTT::OperationInterfacePart::getArgumentType(), RTT::internal::OperationCallerC::getCallDataSource(), RTT::types::TypeInfo::getProtocol(), ORO_CORBA_PROTOCOL_ID, RTT::internal::OperationCallerC::ready(), RTT::wrong_number_of_args_exception::received, RTT::wrong_types_of_args_exception::received_, RTT::internal::OperationCallerC::send(), RTT::internal::SendHandleC::setAutoCollect(), RTT::corba::CorbaTypeTransporter::updateAny(), RTT::wrong_number_of_args_exception::wanted, RTT::Warning, and RTT::wrong_types_of_args_exception::whicharg.
|
virtualinherited |
Definition at line 343 of file OperationInterfaceI.cpp.
References RTT::internal::OperationCallerC::arg(), RTT::OperationInterfacePart::arity(), RTT::internal::OperationCallerC::check(), RTT::corba::CorbaTypeTransporter::createDataSource(), RTT::Error, RTT::wrong_types_of_args_exception::expected_, RTT::OperationInterfacePart::getArgumentType(), RTT::types::TypeInfo::getProtocol(), RTT::types::TypeInfo::getTypeName(), RTT::name_not_found_exception::name, ORO_CORBA_PROTOCOL_ID, RTT::wrong_number_of_args_exception::received, RTT::wrong_types_of_args_exception::received_, RTT::wrong_number_of_args_exception::wanted, and RTT::wrong_types_of_args_exception::whicharg.
|
staticinherited |
Definition at line 104 of file DataFlowI.cpp.
References RTT::corba::CDataFlowInterface_i::deregisterServant().
Referenced by RTT::corba::TaskContextServer::CleanupServers().
|
inherited |
Deregisters the given channel from the channel list.
Definition at line 232 of file DataFlowI.cpp.
References ACE_THROW_SPEC, RTT::base::OutputPortInterface::addConnection(), RTT::corba::CConnPolicy::buffer_policy, RTT::ConnPolicy::buffer_policy, RTT::types::TypeInfo::buildChannelInput(), RTT::types::TypeInfo::buildChannelOutput(), RTT::types::TypeInfo::buildDataStorage(), RTT::types::TypeInfo::buildSharedConnection(), RTT::corba::CInput, CORBA_CHECK_THREAD, RTT::corba::CorbaTypeTransporter::createChannelElement_i(), RTT::base::OutputPortInterface::createConnection(), RTT::base::InputPortInterface::createConnection(), RTT::types::TypeTransporter::createStream(), RTT::base::PortInterface::createStream(), RTT::corba::CShared, RTT::Debug, RTT::base::PortInterface::disconnect(), RTT::Error, RTT::internal::ConnFactory::findSharedConnection(), RTT::corba::CDataFlowInterface_i::getLocalInterface(), RTT::base::PortInterface::getName(), RTT::base::ChannelElementBase::getOutputEndPoint(), RTT::DataFlowInterface::getPort(), RTT::types::TypeInfo::getProtocol(), RTT::base::PortInterface::getTypeInfo(), RTT::types::TypeInfo::getTypeName(), RTT::Info, RTT::ConnPolicy::mandatory, RTT::corba::CConnPolicy::name_id, RTT::ConnPolicy::name_id, ORO_CORBA_PROTOCOL_ID, RTT::base::PortInterface::removeConnection(), RTT::corba::CRemoteChannelElement_i::setCDataFlowInterface(), RTT::base::PortInterface::setInterface(), RTT::Shared, toCORBA(), toRTT(), RTT::corba::CConnPolicy::transport, and RTT::Warning.
Referenced by RTT::corba::RemoteChannelElement< T >::disconnect(), and RTT::corba::RemoteChannelElement< T >::remoteDisconnect().
|
staticinherited |
Definition at line 87 of file DataFlowI.cpp.
References RTT::Debug.
Referenced by RTT::corba::TaskContextServer::CleanupServer(), and RTT::corba::CDataFlowInterface_i::clearServants().
|
inherited |
Definition at line 264 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::getArgumentList().
Referenced by RTT_corba_COperationInterface_i::getOperations().
|
virtualinherited |
Definition at line 301 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::arity(), RTT::OperationInterfacePart::getArgumentType(), and RTT::types::TypeInfo::getTypeName().
|
inherited |
Definition at line 322 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::arity().
|
inherited |
Definition at line 166 of file ConfigurationInterfaceI.cpp.
References RTT::corba::CorbaTypeTransporter::createAny(), RTT::base::AttributeBase::getDataSource(), RTT::types::TypeInfo::getProtocol(), RTT::ConfigurationInterface::getValue(), RTT::ConfigurationInterface::hasAttribute(), and ORO_CORBA_PROTOCOL_ID.
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
inherited |
Definition at line 115 of file ConfigurationInterfaceI.cpp.
References RTT::ConfigurationInterface::getAttribute(), and RTT::base::AttributeBase::getDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this(), RTT_corba_CConfigurationInterface_i::attributeFromString(), RTT_corba_CConfigurationInterface_i::attributeToString(), RTT_corba_CConfigurationInterface_i::getAttributeList(), RTT_corba_CConfigurationInterface_i::getAttributeType(), and RTT_corba_CConfigurationInterface_i::getAttributeTypeName().
|
inherited |
Definition at line 124 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getAttributeDataSource(), and RTT::ConfigurationInterface::getAttributeNames().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this(), and getCServiceDescription().
|
virtualinherited |
Definition at line 245 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getAttributeDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
virtualinherited |
Definition at line 254 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getAttributeDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
inherited |
Definition at line 329 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::collectArity().
|
virtualinherited |
Definition at line 311 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::collectArity(), RTT::OperationInterfacePart::getCollectType(), and RTT::types::TypeInfo::getTypeName().
|
inherited |
Definition at line 280 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::collectArity(), RTT::OperationInterfacePart::getCollectType(), and RTT::types::TypeInfo::getTypeName().
Referenced by RTT_corba_COperationInterface_i::getOperations().
RTT::corba::CServiceDescription * RTT_corba_CService_i::getCServiceDescription | ( | void | ) |
Definition at line 149 of file ServiceI.cpp.
References RTT::corba::CServiceDescription::children, RTT_corba_CConfigurationInterface_i::getAttributeList(), getCServiceDescription(), getName(), RTT_corba_COperationInterface_i::getOperations(), RTT_corba_CConfigurationInterface_i::getPropertyList(), getService(), getServiceDescription(), mservice, mservs, and RTT::corba::CServiceDescription::name.
Referenced by activate_this(), and getCServiceDescription().
static ::RTT::corba::CServiceDescription* RTT_corba_CService_i::getCServiceDescription | ( | const RTT::Service::shared_ptr & | ) |
|
inherited |
Definition at line 78 of file DataFlowI.cpp.
|
virtualinherited |
Definition at line 336 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::description().
|
staticinherited |
Definition at line 113 of file DataFlowI.cpp.
Referenced by RTT::corba::CDataFlowInterface_i::deregisterChannel().
|
virtual |
Definition at line 94 of file ServiceI.cpp.
References mservice.
Referenced by activate_this(), and getCServiceDescription().
|
virtualinherited |
Definition at line 236 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::collectArity(), RTT::OperationInterfacePart::description(), RTT_corba_COperationInterface_i::getArguments(), RTT_corba_COperationInterface_i::getCollectTypes(), RTT::internal::OperationInterfacePartFused< Signature >::getName(), RTT::OperationInterface::getNames(), RTT::OperationInterface::isSynchronous(), and RTT::OperationInterfacePart::resultType().
Referenced by getCServiceDescription().
|
inherited |
Definition at line 195 of file ConfigurationInterfaceI.cpp.
References RTT::corba::CorbaTypeTransporter::createAny(), RTT::Error, RTT_corba_CConfigurationInterface_i::getPropertyDataSource(), RTT::types::TypeInfo::getProtocol(), ORO_CORBA_PROTOCOL_ID, and RTT::ConfigurationInterface::properties().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
inherited |
Definition at line 106 of file ConfigurationInterfaceI.cpp.
References RTT::findProperty(), and RTT::ConfigurationInterface::properties().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this(), RTT_corba_CConfigurationInterface_i::getProperty(), RTT_corba_CConfigurationInterface_i::getPropertyType(), RTT_corba_CConfigurationInterface_i::getPropertyTypeName(), RTT_corba_CConfigurationInterface_i::hasProperty(), RTT_corba_CConfigurationInterface_i::propertyFromString(), RTT_corba_CConfigurationInterface_i::propertyToString(), and RTT_corba_CConfigurationInterface_i::setProperty().
|
inherited |
Definition at line 142 of file ConfigurationInterfaceI.cpp.
References RTT::corba::CConfigurationInterface::CProperty::description, RTT_corba_CConfigurationInterface_i::getPropertyType(), RTT::listProperties(), RTT::listPropertyDescriptions(), RTT::corba::CConfigurationInterface::CProperty::name, RTT::ConfigurationInterface::properties(), and RTT::corba::CConfigurationInterface::CProperty::type_name.
Referenced by RTT_corba_CConfigurationInterface_i::activate_this(), and getCServiceDescription().
|
virtualinherited |
Definition at line 294 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getPropertyDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this(), and RTT_corba_CConfigurationInterface_i::getPropertyList().
|
virtualinherited |
Definition at line 303 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getPropertyDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
RTT::corba::CService::CProviderNames * RTT_corba_CService_i::getProviderNames | ( | void | ) |
|
staticinherited |
Returns an object reference to a remote interface.
In case you wish to keep this object reference, you need to duplicate it.
Definition at line 124 of file DataFlowI.cpp.
References RTT::corba::CDataFlowInterface_i::CDataFlowInterface_i(), and RTT::corba::CDataFlowInterface_i::registerServant().
Referenced by RTT::corba::RemoteOutputPort::createConnection().
|
virtualinherited |
Definition at line 294 of file OperationInterfaceI.cpp.
References RTT::OperationInterfacePart::resultType().
RTT::corba::CService_ptr RTT_corba_CService_i::getService | ( | const char * | name | ) |
Definition at line 118 of file ServiceI.cpp.
References activate_this(), RTT::Debug, mpoa, mservice, mservs, and RTT_corba_CService_i().
Referenced by activate_this(), and getCServiceDescription().
|
virtual |
Definition at line 100 of file ServiceI.cpp.
References mservice.
Referenced by activate_this(), and getCServiceDescription().
|
inherited |
Definition at line 232 of file ConfigurationInterfaceI.cpp.
References RTT::ConfigurationInterface::hasAttribute().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
inherited |
Definition at line 288 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getPropertyDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
CORBA::Boolean RTT_corba_CService_i::hasService | ( | const char * | name | ) |
|
inherited |
Definition at line 238 of file ConfigurationInterfaceI.cpp.
References RTT::base::AttributeBase::getDataSource(), and RTT::ConfigurationInterface::getValue().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
virtualinherited |
Definition at line 323 of file ConfigurationInterfaceI.cpp.
References RTT::Error, and RTT_corba_CConfigurationInterface_i::getPropertyDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
virtualinherited |
Definition at line 312 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getPropertyDataSource().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
staticinherited |
Definition at line 83 of file DataFlowI.cpp.
Referenced by RTT::corba::CDataFlowInterface_i::getRemoteInterface().
|
inherited |
Definition at line 472 of file OperationInterfaceI.cpp.
|
virtualinherited |
Definition at line 487 of file OperationInterfaceI.cpp.
References RTT_corba_CSendHandle_i::checkStatus(), RTT::corba::CSendFailure, RTT::Error, RTT::OperationInterface::getPart(), RTT::plugin::PluginLoader::Instance(), and RTT::OperationInterface::isSynchronous().
|
inherited |
Definition at line 182 of file ConfigurationInterfaceI.cpp.
References RTT::base::AttributeBase::getDataSource(), RTT::types::TypeInfo::getProtocol(), RTT::ConfigurationInterface::getValue(), RTT::ConfigurationInterface::hasAttribute(), ORO_CORBA_PROTOCOL_ID, and RTT::corba::CorbaTypeTransporter::updateFromAny().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
inherited |
Definition at line 217 of file ConfigurationInterfaceI.cpp.
References RTT_corba_CConfigurationInterface_i::getPropertyDataSource(), RTT::types::TypeInfo::getProtocol(), ORO_CORBA_PROTOCOL_ID, RTT::ConfigurationInterface::properties(), and RTT::corba::CorbaTypeTransporter::updateFromAny().
Referenced by RTT_corba_CConfigurationInterface_i::activate_this().
|
protected |
Definition at line 95 of file ServiceI.h.
Referenced by _default_POA(), and getService().
|
protected |
Definition at line 96 of file ServiceI.h.
Referenced by getCServiceDescription(), getName(), getProviderNames(), getService(), getServiceDescription(), and hasService().
|
protected |
Definition at line 99 of file ServiceI.h.
Referenced by getCServiceDescription(), and getService().