Back to index

salome-kernel  6.5.0
Public Types | Public Member Functions | Protected Attributes
CalciumGenericUsesPort< DataManipulator, CorbaPortType, repositoryName > Class Template Reference

#include <CalciumGenericUsesPort.hxx>

Inheritance diagram for CalciumGenericUsesPort< DataManipulator, CorbaPortType, repositoryName >:
Inheritance graph
[legend]
Collaboration diagram for CalciumGenericUsesPort< DataManipulator, CorbaPortType, repositoryName >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef DataManipulator::Type DataType
typedef
DataManipulator::CorbaInType 
CorbaInDataType

Public Member Functions

virtual ~CalciumGenericUsesPort ()
void disconnect (bool provideLastGivenValue)
virtual const char * get_repository_id ()
 This is used by the component to get the CORBA repository id of the uses port.
void put (CorbaInDataType data, TimeType time, TagType tag)
virtual void uses_port_changed (Engines::DSC::uses_port *new_uses_port, const Engines::DSC::Message message)
 This method is the uses port's callback to be aware of connections states.
virtual Ports::PortProperties_ptr get_port_properties ()
 This is used to get the property object of the port.

Protected Attributes

Engines::DSC::uses_port_my_ports
PortProperties_idefault_properties

Detailed Description

template<typename DataManipulator, typename CorbaPortType, char * repositoryName>
class CalciumGenericUsesPort< DataManipulator, CorbaPortType, repositoryName >

Definition at line 35 of file CalciumGenericUsesPort.hxx.


Member Typedef Documentation

typedef DataManipulator::CorbaInType GenericUsesPort< DataManipulator, CorbaPortType, repositoryName, calcium_uses_port >::CorbaInDataType [inherited]

Definition at line 53 of file GenericUsesPort.hxx.

typedef DataManipulator::Type GenericUsesPort< DataManipulator, CorbaPortType, repositoryName, calcium_uses_port >::DataType [inherited]

Definition at line 52 of file GenericUsesPort.hxx.


Constructor & Destructor Documentation

template<typename DataManipulator, typename CorbaPortType, char * repositoryName>
virtual CalciumGenericUsesPort< DataManipulator, CorbaPortType, repositoryName >::~CalciumGenericUsesPort ( ) [inline, virtual]

Definition at line 39 of file CalciumGenericUsesPort.hxx.

{};

Member Function Documentation

template<typename DataManipulator , typename CorbaPortType , char * repositoryName>
void CalciumGenericUsesPort< DataManipulator, CorbaPortType, repositoryName >::disconnect ( bool  provideLastGivenValue) [virtual]

Reimplemented from calcium_uses_port.

Definition at line 47 of file CalciumGenericUsesPort.hxx.

                                                                                                               {

  typedef typename CorbaPortType::_ptr_type CorbaPortTypePtr;

  if (!this->_my_ports)
    throw DSC_Exception(LOC("There is no connected provides port to communicate with."));

  for(int i = 0; i < this->_my_ports->length(); i++) {
    CorbaPortTypePtr port = CorbaPortType::_narrow((*this->_my_ports)[i]);
    try {
#ifdef MYDEBUG
      std::cerr << "-------- CalciumGenericUsesPort<>::disconnect: "<< i << std::endl;
#endif

      port->disconnect(provideLastGivenValue);
    } catch(const CORBA::SystemException& ex){
      std::cerr << "Can't call disconnect on provides port " << i << std::endl;
    }
  }
  
}
Ports::PortProperties_ptr base_port::get_port_properties ( ) [virtual, inherited]

This is used to get the property object of the port.

Returns:
property's CORBA reference.

Definition at line 42 of file base_port.cxx.

{
  return default_properties->_this();
}
virtual const char* GenericUsesPort< DataManipulator, CorbaPortType, repositoryName, calcium_uses_port >::get_repository_id ( ) [virtual, inherited]

Implements uses_port.

void GenericUsesPort< DataManipulator, CorbaPortType, repositoryName, calcium_uses_port >::put ( CorbaInDataType  data,
TimeType  time,
TagType  tag 
) [inherited]
virtual void GenericUsesPort< DataManipulator, CorbaPortType, repositoryName, calcium_uses_port >::uses_port_changed ( Engines::DSC::uses_port new_uses_port,
const Engines::DSC::Message  message 
) [virtual, inherited]

Implements uses_port.


Member Data Documentation

Engines::DSC::uses_port* GenericUsesPort< DataManipulator, CorbaPortType, repositoryName, calcium_uses_port >::_my_ports [protected, inherited]

Definition at line 66 of file GenericUsesPort.hxx.

Definition at line 49 of file base_port.hxx.


The documentation for this class was generated from the following file: