DeviceConnector interface.
This interface provides the functions which the GeneralDeviceConnector implements. The functions are for wrapping the native code to .NET. All we need are the properties:
The DeviceCount is set and can be used after DiscoverDevices.
Public Member Functions | |
Rx::Interop::Runtime30::Camera::INativeDeviceDo * | CreateNativeDeviceDriver (int iCamID, Rx::Interop::Runtime30::IStatusCameraCallback *pxMessageCall) |
Creates a native device. More... | |
int | DiscoverDevices (Rx::Interop::Runtime30::IStatusCameraCallback *pxMessageCall) |
Calls discover function in native device driver. More... | |
array< System::String^ >^ | GetDependencies () |
Returns a string array of DLL dependencies for the specific connector type of the camera type. More... | |
void | Release (Rx::Interop::Runtime30::IStatusCameraCallback *pxMessageCall) |
Calls release function in native device driver. More... | |
Properties | |
System::String^ | ConnectorName [get] |
Gets the name of this connector. More... | |
int | DeviceCount [get] |
Gets the number of discovered devices. Only valid after DiscoverDevices. More... | |
EConnectorType | Type [get] |
Gets or sets the type of the connector. More... | |
Rx::Interop::Runtime30::Camera::INativeDeviceDo* Rx::InteropNet::Runtime30::Camera::IDeviceConnector::CreateNativeDeviceDriver | ( | int | iCamID, |
Rx::Interop::Runtime30::IStatusCameraCallback * | pxMessageCall | ||
) |
Creates a native device.
This native C++ devices implements INativeDeviceDo and consists of specific C++ driver implementation for the connector- camtype combination.
iCamID | Identifier for the camera. |
pxMessageCall | [in,out] If non-null, the message call. |
int Rx::InteropNet::Runtime30::Camera::IDeviceConnector::DiscoverDevices | ( | Rx::Interop::Runtime30::IStatusCameraCallback * | pxMessageCall | ) |
Calls discover function in native device driver.
pxMessageCall | [in] the message callback pointer. |
array<System::String^> ^ Rx::InteropNet::Runtime30::Camera::IDeviceConnector::GetDependencies | ( | ) |
Returns a string array of DLL dependencies for the specific connector type of the camera type.
void Rx::InteropNet::Runtime30::Camera::IDeviceConnector::Release | ( | Rx::Interop::Runtime30::IStatusCameraCallback * | pxMessageCall | ) |
Calls release function in native device driver.
This function releases all devices connected to this connector and additionally frees all memory used. If no camera has been discovered only the memory will be freed.
pxMessageCall | [in,out] If non-null, the message call. |
|
get |
Gets the name of this connector.
The connectors name.
|
get |
Gets the number of discovered devices. Only valid after DiscoverDevices.
The count of discovered Devices.
|
get |
Gets or sets the type of the connector.
The type of the connector.