SeaBreeze
USBInterface.h
Go to the documentation of this file.
1 /***************************************************/
36 #ifndef USBINTERFACE_H
37 #define USBINTERFACE_H
38 
39 #include "common/buses/Bus.h"
40 #include "native/usb/NativeUSB.h"
41 #include "native/usb/USB.h"
43 
44 namespace seabreeze {
45 
46  class USBInterface : public Bus {
47  public:
48  USBInterface();
49  virtual ~USBInterface();
50  virtual USB *getUSBDescriptor() const;
51  virtual DeviceLocatorInterface *getLocation();
52  virtual void setLocation(const DeviceLocatorInterface &location) throw (IllegalArgumentException);
53  virtual BusFamily getBusFamily() const;
54  virtual bool open() = 0;
55  virtual void close() = 0;
56 
57  protected:
58  USB *usb;
59  DeviceLocatorInterface *deviceLocator;
60  };
61 
62 }
63 
64 #endif /* USBINTERFACE_H */
Definition: DeviceLocatorInterface.h:47
Definition: BusFamily.h:38
Definition: Bus.h:48
Definition: USB.h:42
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: IllegalArgumentException.h:43
Definition: USBInterface.h:46