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.

Public Types

typedef std::vector< usbDeviceSpecifier_t > usbDevSpecVec_t
 Vector type of USB device specifiers.


Static Public Member Functions

usbDevSpecVec_t getPortSpecifiers (const LOW_portUsbDevice::usbVendorID_t inVendorID, const LOW_portUsbDevice::usbProductID_t inProductID)
 Get a list of port specifiers of devices with a certain vendor and product ID.

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


Private Member Functions

 LOW_portUsb_Factory ()
 Constructor.

virtual ~LOW_portUsb_Factory ()
 Destructor.


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.


Member Typedef Documentation

typedef std::vector<usbDeviceSpecifier_t> LOW_portUsb_Factory::usbDevSpecVec_t
 

Vector type of USB device specifiers.

Definition at line 56 of file LOW_portUsb_Factory.h.

Referenced by LOW_portUsbDevice_Linux::getPortSpecifiers(), and getPortSpecifiers().


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_portUsb_Factory::usbDevSpecVec_t LOW_portUsb_Factory::getPortSpecifiers const LOW_portUsbDevice::usbVendorID_t  inVendorID,
const LOW_portUsbDevice::usbProductID_t  inProductID
[static]
 

Get a list of port specifiers of devices with a certain vendor and product ID.

Parameters:
inVendorID Vendor for new USB device instance.
inProductID Product for new USB device instance.
Returns:
List of port specifiers.

Definition at line 42 of file LOW_portUsb_Factory.cpp.

References LOW_portUsbDevice_Linux::getPortSpecifiers(), and usbDevSpecVec_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 51 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 Tue Feb 3 11:31:06 2004 for OneWireLibrary++ by doxygen 1.3.2