New classes: Sensor and Extrospector
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef _EXTROSPECTOR_H
|
||||
#define _EXTROSPECTOR_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
class Extrospector
|
||||
{
|
||||
public:
|
||||
Extrospector(uint32_t _id, uint32_t _value = 0)
|
||||
: id(_id), value(_value)
|
||||
{}
|
||||
~Extrospector() = default;
|
||||
|
||||
public:
|
||||
uint32_t id;
|
||||
uint64_t value;
|
||||
};
|
||||
|
||||
#endif // _EXTROSPECTOR_H
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef _SENSOR_H
|
||||
#define _SENSOR_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
class Sensor
|
||||
{
|
||||
public:
|
||||
Sensor(uint32_t _id, uint32_t _value = 0)
|
||||
: id(_id), value(_value)
|
||||
{}
|
||||
~Sensor() = default;
|
||||
|
||||
public:
|
||||
uint32_t id;
|
||||
uint64_t value;
|
||||
};
|
||||
|
||||
#endif // _SENSOR_H
|
||||
Reference in New Issue
Block a user