Extrospector and Interoceptor both inherit from Sensor now
This commit is contained in:
@@ -2,18 +2,22 @@
|
|||||||
#define _EXTROSPECTOR_H
|
#define _EXTROSPECTOR_H
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include <sensors/sensor.h>
|
||||||
|
|
||||||
|
namespace hk {
|
||||||
|
namespace sensors {
|
||||||
|
|
||||||
class Extrospector
|
class Extrospector
|
||||||
|
: public Sensor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Extrospector(uint32_t _id, uint32_t _value = 0)
|
Extrospector(void) = default;
|
||||||
: id(_id), value(_value)
|
|
||||||
{}
|
|
||||||
~Extrospector() = default;
|
~Extrospector() = default;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
uint32_t id;
|
|
||||||
uint64_t value;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace sensors
|
||||||
|
} // namespace hk
|
||||||
|
|
||||||
#endif // _EXTROSPECTOR_H
|
#endif // _EXTROSPECTOR_H
|
||||||
|
|||||||
@@ -2,8 +2,13 @@
|
|||||||
#define _INTEROCEPTOR_H
|
#define _INTEROCEPTOR_H
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include <sensors/sensor.h>
|
||||||
|
|
||||||
|
namespace hk {
|
||||||
|
namespace sensors {
|
||||||
|
|
||||||
class Interoceptor
|
class Interoceptor
|
||||||
|
: public Sensor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Interoceptor(uint32_t _id, uint32_t _value = 0)
|
Interoceptor(uint32_t _id, uint32_t _value = 0)
|
||||||
@@ -98,4 +103,7 @@ public:
|
|||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace sensors
|
||||||
|
} // namespace hk
|
||||||
|
|
||||||
#endif // _INTEROCEPTOR_H
|
#endif // _INTEROCEPTOR_H
|
||||||
|
|||||||
@@ -3,17 +3,19 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
namespace hk {
|
||||||
|
namespace sensors {
|
||||||
|
|
||||||
class Sensor
|
class Sensor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Sensor(uint32_t _id, uint32_t _value = 0)
|
Sensor() = default;
|
||||||
: id(_id), value(_value)
|
|
||||||
{}
|
|
||||||
~Sensor() = default;
|
~Sensor() = default;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
uint32_t id;
|
|
||||||
uint64_t value;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace sensors
|
||||||
|
} // namespace hk
|
||||||
|
|
||||||
#endif // _SENSOR_H
|
#endif // _SENSOR_H
|
||||||
|
|||||||
Reference in New Issue
Block a user