SeaBreeze
DataBufferProtocolInterface.h
Go to the documentation of this file.
1 /***************************************************/
35 #ifndef DATABUFFERPROTOCOLINTERFACE_H
36 #define DATABUFFERPROTOCOLINTERFACE_H
37 
38 #include "common/buses/Bus.h"
41 
42 namespace seabreeze {
43 
45  public:
47  virtual ~DataBufferProtocolInterface();
48 
49  virtual void clearBuffer(const Bus &bus, unsigned char bufferIndex)
50  throw (ProtocolException) = 0;
51 
52  virtual unsigned long getNumberOfElements(const Bus &bus,
53  unsigned char bufferIndex)
54  throw (ProtocolException) = 0;
55 
56  virtual unsigned long getBufferCapacity(const Bus &bus,
57  unsigned char bufferIndex)
58  throw (ProtocolException) = 0;
59 
60  virtual unsigned long getBufferCapacityMinimum(const Bus &bus,
61  unsigned char bufferIndex)
62  throw (ProtocolException) = 0;
63 
64  virtual unsigned long getBufferCapacityMaximum(const Bus &bus,
65  unsigned char bufferIndex)
66  throw (ProtocolException) = 0;
67 
68  virtual void setBufferCapacity(const Bus &bus,
69  unsigned char bufferIndex,
70  const unsigned long capacity)
71  throw (ProtocolException) = 0;
72  };
73 
74 } /* end namespace */
75 
76 #endif /* DATABUFFERPROTOCOLINTERFACE_H */
77 
Definition: DataBufferProtocolInterface.h:44
Definition: Protocol.h:44
Definition: ProtocolException.h:44
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: ProtocolHelper.h:46