SeaBreeze
SaturationEEPROMSlotFeatureBase.h
Go to the documentation of this file.
1 /***************************************************/
30 #ifndef SATURATIONEEPROMSLOTFEATUREBASE_H
31 #define SATURATIONEEPROMSLOTFEATUREBASE_H
32 
35 
36 namespace seabreeze {
37 
40  public:
43 
44  /* Inherited from ProgrammableSaturationFeature */
45  virtual unsigned int getSaturation() throw (FeatureException);
46 
47  /* Inherited from Feature */
48  virtual bool initialize(const Protocol &protocol, const Bus &bus)
49  throw (FeatureException);
50 
51  virtual FeatureFamily getFeatureFamily();
52 
53  protected:
54  /* Derived classes must implement this in whatever way is appropriate
55  * to get the saturation level for the device.
56  */
57  virtual unsigned int getSaturation(const Protocol &protocol,
58  const Bus &bus) throw (FeatureException) = 0;
59 
60  private:
61  unsigned int saturation;
62  bool valid;
63  };
64 
65 } /* end namespace seabreeze */
66 
67 #endif /* SATURATIONEEPROMSLOTFEATUREBASE_H */
Definition: Protocol.h:44
Definition: FeatureFamily.h:39
Definition: ProgrammableSaturationFeatureBase.h:37
Definition: FeatureException.h:43
Definition: SaturationEEPROMSlotFeatureBase.h:38
Definition: Bus.h:48
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: EEPROMSlotFeatureBase.h:44