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