28 #ifndef _CALCIUM_GENERIC_USES_PORT_HXX_
29 #define _CALCIUM_GENERIC_USES_PORT_HXX_
34 template <
typename DataManipulator,
typename CorbaPortType,
char * repositoryName >
45 template <
typename DataManipulator,
typename CorbaPortType,
char * repositoryName >
49 typedef typename CorbaPortType::_ptr_type CorbaPortTypePtr;
52 throw DSC_Exception(
LOC(
"There is no connected provides port to communicate with."));
54 for(
int i = 0; i < this->_my_ports->length(); i++) {
55 CorbaPortTypePtr port = CorbaPortType::_narrow((*this->_my_ports)[i]);
58 std::cerr <<
"-------- CalciumGenericUsesPort<>::disconnect: "<< i << std::endl;
61 port->disconnect(provideLastGivenValue);
62 }
catch(
const CORBA::SystemException& ex){
63 std::cerr <<
"Can't call disconnect on provides port " << i << std::endl;