79 mpoa(poa), mservice(service)
90 return PortableServer::POA::_duplicate(
mpoa);
96 return CORBA::string_dup(
mservice->getName().c_str() );
102 return CORBA::string_dup(
mservice->doc().c_str() );
109 ::RTT::corba::CService::CProviderNames_var result = new ::RTT::corba::CService::CProviderNames();
110 result->length( names.size() );
111 for (
unsigned int i=0; i != names.size(); ++i )
112 result[i] = CORBA::string_dup( names[i].c_str() );
114 return result._retn();
118 const char * service_name)
122 return RTT::corba::CService::_nil();
125 for(Servants::iterator it =
mservs.begin(); it !=
mservs.end(); ++it) {
126 CORBA::String_var sname = it->first->getName();
127 if ( sname.in() == service_name )
128 return RTT::corba::CService::_duplicate( it->first.in() );
133 RTT::corba::CService_var serv;
136 mservs.push_back( std::pair<RTT::corba::CService_var,PortableServer::ServantBase_var>( RTT::corba::CService::_duplicate(serv.in()), serv_i ) );
138 return RTT::corba::CService::_duplicate( serv.in() );
144 return mservice->hasService( name );
virtual ::CORBA::Boolean hasService(const char *name)
virtual ::RTT::corba::CService_ptr getService(const char *name)
virtual char * getName(void)
std::vector< std::string > ProviderNames
PortableServer::POA_var mpoa
virtual ~RTT_corba_CService_i(void)
boost::shared_ptr< Service > shared_ptr
PortableServer::POA_ptr _default_POA()
Convenient short notation for every sub-namespace of RTT.
sequence< string > CProviderNames
RTT_corba_CService_i(RTT::ServicePtr service, PortableServer::POA_ptr poa)
RTT::Service::shared_ptr mservice
virtual RTT::corba::CService_ptr activate_this()
virtual ::RTT::corba::CService::CProviderNames * getProviderNames(void)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Represents a remote data flow interface.
virtual char * getServiceDescription(void)