SeaBreeze
include
vendors
OceanOptics
features
eeprom_slots
SaturationEEPROMSlotFeatureBase.h
Go to the documentation of this file.
1
/***************************************************/
30
#ifndef SATURATIONEEPROMSLOTFEATUREBASE_H
31
#define SATURATIONEEPROMSLOTFEATUREBASE_H
32
33
#include "
vendors/OceanOptics/features/spectrometer/ProgrammableSaturationFeatureBase.h
"
34
#include "
vendors/OceanOptics/features/eeprom_slots/EEPROMSlotFeatureBase.h
"
35
36
namespace
seabreeze
{
37
38
class
SaturationEEPROMSlotFeatureBase
39
:
public
EEPROMSlotFeatureBase
,
public
ProgrammableSaturationFeatureBase
{
40
public
:
41
SaturationEEPROMSlotFeatureBase
();
42
virtual
~
SaturationEEPROMSlotFeatureBase
();
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 */
ProgrammableSaturationFeatureBase.h
seabreeze::Protocol
Definition:
Protocol.h:44
seabreeze::FeatureFamily
Definition:
FeatureFamily.h:39
seabreeze::ProgrammableSaturationFeatureBase
Definition:
ProgrammableSaturationFeatureBase.h:37
seabreeze::FeatureException
Definition:
FeatureException.h:43
seabreeze::SaturationEEPROMSlotFeatureBase
Definition:
SaturationEEPROMSlotFeatureBase.h:38
seabreeze::Bus
Definition:
Bus.h:48
seabreeze
Encapsulates all SeaBreeze classes.
Definition:
DeviceFactory.h:42
seabreeze::EEPROMSlotFeatureBase
Definition:
EEPROMSlotFeatureBase.h:44
EEPROMSlotFeatureBase.h
Generated on Sun Jan 19 2020 16:01:08 for SeaBreeze by
1.8.13