This class implements the interface Engines::ConnectionManager. More...
#include <ConnectionManager_i.hxx>
Data Structures | |
struct | connection_infos |
Public Member Functions | |
ConnectionManager_i (CORBA::ORB_ptr orb) | |
virtual | ~ConnectionManager_i () |
Engines::ConnectionManager::connectionId | connect (Engines::DSC_ptr uses_component, const char *uses_port_name, Engines::DSC_ptr provides_component, const char *provides_port_name) |
CORBA method : connect two ports of two components. More... | |
void | disconnect (Engines::ConnectionManager::connectionId id, Engines::DSC::Message message) |
CORBA method : releases a connection performed with ConnectionManager_i::connect. More... | |
void | ShutdownWithExit () |
Shutdown the ConnectionManager process. More... | |
CORBA::Long | getPID () |
Returns the PID of the connection manager. More... | |
Protected Attributes | |
CORBA::ORB_var | _orb |
Private Types | |
typedef std::map < Engines::ConnectionManager::connectionId, connection_infos * > | ids_type |
typedef std::map < Engines::ConnectionManager::connectionId, connection_infos * >::iterator | ids_it_type |
Private Attributes | |
ids_type | ids |
ids_it_type | ids_it |
int | current_id |
pthread_mutex_t | mutex |
This class implements the interface Engines::ConnectionManager.
|
private |
|
private |
ConnectionManager_i::ConnectionManager_i | ( | CORBA::ORB_ptr | orb | ) |
References _orb, current_id, mutex, and SALOME_NamingService::Register().
|
virtual |
Engines::ConnectionManager::connectionId ConnectionManager_i::connect | ( | Engines::DSC_ptr | uses_component, |
const char * | uses_port_name, | ||
Engines::DSC_ptr | provides_component, | ||
const char * | provides_port_name | ||
) |
CORBA method : connect two ports of two components.
References current_id, ids, mutex, ConnectionManager_i::connection_infos::provides_component, ConnectionManager_i::connection_infos::provides_port, ConnectionManager_i::connection_infos::provides_port_name, ConnectionManager_i::connection_infos::uses_component, and ConnectionManager_i::connection_infos::uses_port_name.
void ConnectionManager_i::disconnect | ( | Engines::ConnectionManager::connectionId | id, |
Engines::DSC::Message | message | ||
) |
CORBA method : releases a connection performed with ConnectionManager_i::connect.
References ids, ids_it, ConnectionManager_i::connection_infos::provides_component, ConnectionManager_i::connection_infos::provides_port, ConnectionManager_i::connection_infos::provides_port_name, ConnectionManager_i::connection_infos::uses_component, and ConnectionManager_i::connection_infos::uses_port_name.
Referenced by ShutdownWithExit().
CORBA::Long ConnectionManager_i::getPID | ( | ) |
Returns the PID of the connection manager.
void ConnectionManager_i::ShutdownWithExit | ( | ) |
Shutdown the ConnectionManager process.
References _orb, disconnect(), ids, ids_it, and Engines::DSC::RemovingConnection.
|
protected |
Referenced by ConnectionManager_i(), and ShutdownWithExit().
|
private |
Referenced by connect(), and ConnectionManager_i().
|
private |
Referenced by connect(), disconnect(), and ShutdownWithExit().
|
private |
Referenced by disconnect(), and ShutdownWithExit().
|
private |
Referenced by connect(), and ConnectionManager_i().