SeaBreeze
TemperatureFeatureInterface.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef TEMPERATUREFEATUREINTERFACE_H
31 #define TEMPERATUREFEATUREINTERFACE_H
32 
34 #include "common/buses/Bus.h"
36 
37 namespace seabreeze {
38 
40  public:
41  virtual ~TemperatureFeatureInterface() = 0;
42  virtual unsigned char readTemperatureCount(const Protocol &protocol,
43  const Bus &bus) throw (FeatureException) = 0;
44  virtual double readTemperature(const Protocol &protocol,
45  const Bus &bus, int index) throw (FeatureException) = 0;
46  virtual std::vector<double> *readAllTemperatures(const Protocol &protocol,
47  const Bus &bus) throw (FeatureException) = 0;
48  };
49 
50  /* Default implementation for (otherwise) pure virtual destructor */
51  inline TemperatureFeatureInterface::~TemperatureFeatureInterface() {}
52 }
53 
54 #endif /* TEMPERATUREFEATUREINTERFACE_H */
Definition: Protocol.h:44
Definition: TemperatureFeatureInterface.h:39
Definition: FeatureException.h:43
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42