This class implements the interface Engines::ConnectionManager. It is used to make connections between CALCIUM ports. More...
#include <ConnectionManager.hxx>

Classes | |
| struct | connection_infos |
Public Types | |
| typedef short | connectionId |
Public Member Functions | |
| ConnectionManager () | |
| ~ConnectionManager () | |
| ConnectionManager::connectionId | connect (Engines::DSC_ptr uses_component, const char *uses_port_name, Engines::DSC_ptr provides_component, const char *provides_port_name) |
| void | disconnect (ConnectionManager::connectionId id, Engines::DSC::Message message) |
| void | ShutdownWithExit () |
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 |
| int | _current_id |
| std::mutex | _mutex |
This class implements the interface Engines::ConnectionManager. It is used to make connections between CALCIUM ports.
Definition at line 38 of file ConnectionManager.hxx.
| typedef short ConnectionManager::connectionId |
Definition at line 44 of file ConnectionManager.hxx.
|
private |
Definition at line 78 of file ConnectionManager.hxx.
|
private |
Definition at line 76 of file ConnectionManager.hxx.
| ConnectionManager::ConnectionManager | ( | ) |
Definition at line 23 of file ConnectionManager.cxx.
| ConnectionManager::~ConnectionManager | ( | ) |
Definition at line 30 of file ConnectionManager.cxx.
| ConnectionManager::connectionId ConnectionManager::connect | ( | Engines::DSC_ptr | uses_component, |
| const char * | uses_port_name, | ||
| Engines::DSC_ptr | provides_component, | ||
| const char * | provides_port_name | ||
| ) |
connect two CALCIUM ports of two components.
Definition at line 35 of file ConnectionManager.cxx.
References _current_id, _ids, _mutex, ConnectionManager::connection_infos::provides_component, ConnectionManager::connection_infos::provides_port, ConnectionManager::connection_infos::provides_port_name, ConnectionManager::connection_infos::uses_component, and ConnectionManager::connection_infos::uses_port_name.
Referenced by gui.browser_catalog.Browser::init().
| void ConnectionManager::disconnect | ( | ConnectionManager::connectionId | id, |
| Engines::DSC::Message | message | ||
| ) |
releases a connection performed with ConnectionManager::connect.
Definition at line 64 of file ConnectionManager.cxx.
References _ids, _mutex, testCppPluginInvokation::ex, ConnectionManager::connection_infos::provides_component, ConnectionManager::connection_infos::provides_port, ConnectionManager::connection_infos::provides_port_name, ConnectionManager::connection_infos::uses_component, and ConnectionManager::connection_infos::uses_port_name.
Referenced by ShutdownWithExit().
| void ConnectionManager::ShutdownWithExit | ( | ) |
Shutdown the ConnectionManager process.
Definition at line 105 of file ConnectionManager.cxx.
References _ids, and disconnect().
|
private |
Definition at line 81 of file ConnectionManager.hxx.
Referenced by connect().
|
private |
Definition at line 80 of file ConnectionManager.hxx.
Referenced by connect(), disconnect(), and ShutdownWithExit().
|
private |
Definition at line 82 of file ConnectionManager.hxx.
Referenced by connect(), and disconnect().