AC_DEFUN([CHECK_OPENMPI],[
AC_ARG_WITH(openmpi,
- AC_HELP_STRING([--with-openmpi],[root directory path of openmpi installation]),
+ AC_HELP_STRING([--with-openmpi=DIR],[root directory path of openmpi installation]),
WITHOPENMPI="yes",WITHOPENMPI="no")
MPI_INCLUDES=""
using namespace std;
data_short_port_uses::data_short_port_uses() {
- _my_port = Ports::Data_Short_Port::_nil();
_my_ports = NULL;
}
return "IDL:Ports/Data_Short_Port:1.0";
}
-bool
-data_short_port_uses::set_port(Ports::Port_ptr port) {
- _my_port = Ports::Data_Short_Port::_narrow(port);
-}
-
void
data_short_port_uses::put(CORBA::Short data) {
// if (!CORBA::is_nil(_my_port))
*/
virtual const char * get_repository_id();
- /*!
- * \warning deprecated
- */
- virtual bool set_port(Ports::Port_ptr port);
-
/*!
* This method is used by the component to send
* a short value to all the provides ports connected.
const Engines::DSC::Message message);
private :
- Ports::Data_Short_Port_ptr _my_port;
Engines::DSC::uses_port * _my_ports;
};
virtual ~GenericUsesPort();
virtual const char * get_repository_id();
- virtual bool set_port(Ports::Port_ptr port);
template <typename TimeType,typename TagType>
void put(CorbaInDataType data, TimeType time, TagType tag);
}
-template <typename DataManipulator,typename CorbaPortType, char * repositoryName, typename UsesPort >
-bool
-GenericUsesPort< DataManipulator,CorbaPortType, repositoryName, UsesPort >::set_port(Ports::Port_ptr port) {
- if (_my_ports) {
- size_t n = _my_ports->length()+1;
- _my_ports->length(n);
- (*_my_ports)[n]=CorbaPortType::_narrow(port);
- return true;
- } else {
- // Vérifier si port is_nil
- _my_ports = new Engines::DSC::uses_port();
- _my_ports->length(1);
- (*_my_ports)[0]=CorbaPortType::_narrow(port);
- return true;
- }
- return false;
-}
-
template <typename DataManipulator,typename CorbaPortType, char * repositoryName, typename UsesPort >
template <typename TimeType,typename TagType>
void
*/
virtual const char * get_repository_id() = 0;
- /*!
- * DEPRECATED --- WILL BE REMOVED
- * It was used when uses port where not multiple.
- * It's an abstract method.
- *
- */
- virtual bool set_port(Ports::Port_ptr port) = 0;
-
/*!
* This method is the uses port's callback to be aware of
* connections states.