libusb++ API Documentation

USB::DeviceID Class Reference

A vendor/product ID pair. More...

#include <usbpp.h>

List of all members.

Public Member Functions

 DeviceID ()
 DeviceID (u_int16_t vendor, u_int16_t product)
 Standard constructor.
u_int16_t vendor (void)
 vendor number for the device
u_int16_t product (void)
 product number for the device


Detailed Description

A vendor/product ID pair.

DeviceID provides a list of (vendor, product) identification pairs. It is intended for use in a list of device numbers to search for, but there is no reason why it couldn't be used for a general purpose (vendor,product) tuple if you had some reason for this.

The description for Busses::match() provides an example of how this class might be used.

See also:
DeviceIDList, Busses::match()

Definition at line 741 of file usbpp.h.


Constructor & Destructor Documentation

USB::DeviceID::DeviceID ( u_int16_t  vendor,
u_int16_t  product 
)

Standard constructor.

This constructor takes (vendor, product) tuple, which are stored away.

Parameters:
vendor the 16 bit vendor number for the device
product the 16 bit product number for the device

Definition at line 565 of file usbpp.cpp.


Member Function Documentation

u_int16_t USB::DeviceID::vendor ( void   ) 

vendor number for the device

This method returns the 16 bit vendor number.

Definition at line 571 of file usbpp.cpp.

u_int16_t USB::DeviceID::product ( void   ) 

product number for the device

This method returns the 16 bit product number.

Definition at line 576 of file usbpp.cpp.


The documentation for this class was generated from the following files:
This file is part of the documentation for libusb++ .
Documentation copyright © 2004 Brad Hards.
Generated on Mon Jan 22 23:19:30 2007 by doxygen 1.5.1 written by Dimitri van Heesch.