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 < (int)this->_my_ports->length(); i++) {
55 CorbaPortTypePtr
port = CorbaPortType::_narrow((*this->_my_ports)[i]);
58 std::cerr <<
"-------- CalciumGenericUsesPort<>::disconnect: "<< i << std::endl;
60 port->disconnect(provideLastGivenValue);
61 }
catch(
const CORBA::SystemException& ex){
62 std::cerr <<
"Can't call disconnect on provides port " << i << std::endl;
#define LOC(message)
Definition: DSC_Exception.hxx:55
Definition: CalciumGenericUsesPort.hxx:37
virtual ~CalciumGenericUsesPort()
Definition: CalciumGenericUsesPort.hxx:39
void disconnect(bool provideLastGivenValue)
Definition: CalciumGenericUsesPort.hxx:47
Definition: GenericUsesPort.hxx:49
bool VerbosityActivated()
Called by any log message macros to decide about log output in Release and Debug mode dynamically rel...
Definition: libSALOMELog.cxx:48
port
Definition: salome_instance.py:114
Definition: DSC_Exception.hxx:94