Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LOW_portUsb_Factory Class Reference

Factory class for platform specific objects related to USB devices. More...

#include <LOW_portUsb_Factory.h>

List of all members.

Static Public Methods

LOW_portUsbDevicenew_portUsbDevice (const usbDeviceSpecifier_t inUsbDevSpec)
 Platform aware replacement for creating dynamic instances of LOW_portUsbDevice. More...

LOW_portUsbDevicenew_portUsbDevice (const LOW_portUsbDevice::usbVendorID_t inVendorID, const LOW_portUsbDevice::usbProductID_t inProductID)
 Platform aware replacement for creating dynamic instances of LOW_portUsbDevice. More...


Private Methods

 LOW_portUsb_Factory ()
 Constructor. More...

virtual ~LOW_portUsb_Factory ()
 Destructor. More...


Detailed Description

Factory class for platform specific objects related to USB devices.

This class also contains platform specific type definitions.

This class is thread-safe.

See also:
LOW_portUsbDevice
Author:
Harald Roelle

Definition at line 38 of file LOW_portUsb_Factory.h.


Constructor & Destructor Documentation

LOW_portUsb_Factory::LOW_portUsb_Factory   [private]
 

Constructor.

Private to prevent instaciation as this is a static factory.

Definition at line 27 of file LOW_portUsb_Factory.cpp.

LOW_portUsb_Factory::~LOW_portUsb_Factory   [private, virtual]
 

Destructor.

Private to prevent instaciation as this is a static factory.

Definition at line 32 of file LOW_portUsb_Factory.cpp.


Member Function Documentation

LOW_portUsbDevice * LOW_portUsb_Factory::new_portUsbDevice const LOW_portUsbDevice::usbVendorID_t    inVendorID,
const LOW_portUsbDevice::usbProductID_t    inProductID
[static]
 

Platform aware replacement for creating dynamic instances of LOW_portUsbDevice.

If more than one device with the same vendor/product id is present, the first device found is used.

Parameters:
inVendorID  Vendor for new USB device instance.
inProductID  Product for new USB device instance.
Returns:
Pointer to new instance of LOW_portUsbDevice.

Definition at line 50 of file LOW_portUsb_Factory.cpp.

References LOW_portUsbDevice::usbProductID_t, and LOW_portUsbDevice::usbVendorID_t.

LOW_portUsbDevice * LOW_portUsb_Factory::new_portUsbDevice const usbDeviceSpecifier_t    inUsbDevSpec [static]
 

Platform aware replacement for creating dynamic instances of LOW_portUsbDevice.

Parameters:
inPortSpec  Unique identifier for new USB device instance.
Returns:
Pointer to new instance of LOW_portUsbDevice.

Definition at line 42 of file LOW_portUsb_Factory.cpp.

Referenced by LOW_linkDS2490::LOW_linkDS2490().


The documentation for this class was generated from the following files:
Generated on Mon Oct 27 22:56:32 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001