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