torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::ConnectionHandler Class Reference

#include <ConnectionHandler.hpp>

Public Member Functions

void connectPortToNet (const PortSharedPtr &inPort) throw (Error)
 
void disconnectPortFromNet (const PortSharedPtr &inPort) throw (Error)
 
void connectPortRefToNet (const PortReferenceSharedPtr &inPort) throw (Error)
 
void disconnectPortRefFromNet (const PortReferenceSharedPtr &inPort) throw (Error)
 
void connectPortListToNet (const PortListSharedPtr &inPortList) throw (Error)
 
void disconnectPortListFromNet (const PortListSharedPtr &inPortList) throw (Error)
 
 ConnectionHandler (const NetSharedPtr &inNet)
 

Private Attributes

NetSharedPtr mNet
 

Detailed Description

Definition at line 25 of file ConnectionHandler.hpp.

Constructor & Destructor Documentation

torc::generic::ConnectionHandler::ConnectionHandler ( const NetSharedPtr inNet)
inline

Definition at line 40 of file ConnectionHandler.hpp.

40  : mNet(inNet) {
41  }

Member Function Documentation

void torc::generic::ConnectionHandler::connectPortListToNet ( const PortListSharedPtr inPortList)
throw (Error
)

Definition at line 62 of file ConnectionHandler.cpp.

62  {
63  try {
64  mNet->addConnectedPortList(inPortList);
65  } catch(Error& e) {
66  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
67  throw;
68  }
69 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void torc::generic::ConnectionHandler::connectPortRefToNet ( const PortReferenceSharedPtr inPort)
throw (Error
)

Definition at line 43 of file ConnectionHandler.cpp.

43  {
44  try {
45  mNet->addConnectedPortReference(inPortRef);
46  } catch(Error& e) {
47  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
48  throw;
49  }
50 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void torc::generic::ConnectionHandler::connectPortToNet ( const PortSharedPtr inPort)
throw (Error
)

Definition at line 25 of file ConnectionHandler.cpp.

25  {
26  try {
27  mNet->addConnectedPort(inPort);
28  } catch(Error& e) {
29  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
30  throw;
31  }
32 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void torc::generic::ConnectionHandler::disconnectPortFromNet ( const PortSharedPtr inPort)
throw (Error
)

Definition at line 34 of file ConnectionHandler.cpp.

34  {
35  try {
36  mNet->removeConnectedPort(inPort);
37  } catch(Error& e) {
38  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
39  throw;
40  }
41 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void torc::generic::ConnectionHandler::disconnectPortListFromNet ( const PortListSharedPtr inPortList)
throw (Error
)

Definition at line 71 of file ConnectionHandler.cpp.

72  {
73  try {
74  mNet->removeConnectedPortList(inPortList);
75  } catch(Error& e) {
76  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
77  throw;
78  }
79 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void torc::generic::ConnectionHandler::disconnectPortRefFromNet ( const PortReferenceSharedPtr inPort)
throw (Error
)

Definition at line 52 of file ConnectionHandler.cpp.

53  {
54  try {
55  mNet->removeConnectedPortReference(inPortRef);
56  } catch(Error& e) {
57  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
58  throw;
59  }
60 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

NetSharedPtr torc::generic::ConnectionHandler::mNet
private

Definition at line 44 of file ConnectionHandler.hpp.


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