SeaBreeze
RawUSBBusAccessFeatureInterface.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef SEABREEZE_RAW_USB_BUS_ACCESS_FEATURE_INTERFACE_H
31 #define SEABREEZE_RAW_USB_BUS_ACCESS_FEATURE_INTERFACE_H
32 
36 
37 namespace seabreeze {
38 
40  public:
41  virtual ~RawUSBBusAccessFeatureInterface() = 0;
42  virtual std::vector<byte> readUSB(const USBInterface *bus, int endpoint,
43  unsigned int length ) throw (FeatureException) = 0;
44  virtual int writeUSB(const USBInterface *bus, int endpoint,
45  const std::vector<byte> &data) throw (FeatureException) = 0;
46  };
47 
48  /* Default implementation for (otherwise) pure virtual destructor */
49  inline RawUSBBusAccessFeatureInterface::~RawUSBBusAccessFeatureInterface() {}
50 }
51 
52 #endif
Definition: RawUSBBusAccessFeatureInterface.h:39
Definition: FeatureException.h:43
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: USBInterface.h:46