simth::Connection Class Reference
This class represents a connection between two interfaces of two devices.
More...
#include <connection.h>
List of all members.
Detailed Description
This class represents a connection between two interfaces of two devices.
The connection is directed from a certain output interface of a device A to an certain input interface of device B. Hence, here we call the device A the output device and the device B the input device. Note that device A and device B could be the same device. However, this is rather unusual.
Constructor & Destructor Documentation
simth::Connection::Connection |
( |
int |
fromDev, |
|
|
int |
fromInterf, |
|
|
int |
toDev, |
|
|
int |
toInterf |
|
) |
|
|
|
Class constructor. - Parameters:
-
| fromDev | index of output device |
| fromInterf | index of output interface (note: starts by zero!) |
| toDev | index of input device |
| toInterf | index of input interface (note: starts by zero!) |
|
Member Function Documentation
int simth::Connection::fromDevice |
( |
|
) |
const [inline] |
|
|
Returns the index of the connected output device. |
int simth::Connection::fromInterface |
( |
|
) |
const [inline] |
|
|
Returns the index of the connected output interface. Note that the index starts by zero. |
int simth::Connection::toDevice |
( |
|
) |
const [inline] |
|
|
Returns the index of the connected input device. |
int simth::Connection::toInterface |
( |
|
) |
const [inline] |
|
|
Returns the index of the connected input interface. Note that the index starts by zero. |
Generated on Mon Apr 24 21:19:19 2006 for simthetic by
1.4.1