blip  0.1
LightSensorEvent.hpp
Go to the documentation of this file.
1 #ifndef __blip_LightSensorEvent_hpp
2 #define __blip_LightSensorEvent_hpp
3 
4 #include <blip/Blip.hpp>
5 #include <blip/SensorEvent.hpp>
6 
7 namespace blip {
8 
15 {
16  public:
17 
19  LightSensorEvent(time_ms_t eventTime, const float values[16]);
23  virtual ~LightSensorEvent();
24 
26  inline float getLightLevel() const
27  { return(getValue(0)); }
28 
29  private:
30 
31  CCXX_COPY_DECLS(LightSensorEvent);
32 };
33 
34 } // namespace blip
35 
36 #endif // __blip_LightSensorEvent_hpp
virtual ~LightSensorEvent()
Destructor.
Definition: LightSensorEvent.cpp:17
float getValue(int index) const
Get a sensor value.
float getLightLevel() const
Get the ambient light level.
Definition: LightSensorEvent.hpp:26
An abstract base class for sensor events.
Definition: SensorEvent.hpp:20
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition: AccelerometerSensorEvent.cpp:3
A light sensor event, which measures ambient light level.
Definition: LightSensorEvent.hpp:14