28 virtual std::string GetDescription()
const = 0;
30 virtual size_t GetSize()
const = 0;
35 size_t GetSize()
const {
return 0; }
36 std::string GetDescription()
const {
return "dummy"; };
43 size_t GetSize()
const {
return size; }
44 virtual std::string GetDescription()
const {
return "scalar"; };
53 std::string GetDescription()
const {
54 return "int" + std::to_string(GetSize() * 8) +
"_t";
63 std::string GetDescription()
const {
64 return "uint" + std::to_string(GetSize() * 8) +
"_t";
73 std::string GetDescription()
const {
return "float"; };
80 std::string GetDescription()
const {
return "double"; };
96 friend class ::IODevice_impl;
97 friend class ::io_data_impl;
177 virtual DataType const &GetDataType()
const = 0;
198 virtual void RawRead(
char *dst)
const = 0;
232 io_data_impl *pimpl_;
Abstract class for data types.
Definition: io_data.h:94
const io_data * Prev(int n) const
Previous data.
Time DataDeltaTime(void) const
Data delta time.
Base class for all Framework's classes.
Definition: Object.h:83
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
Time DataTime(void) const
Data time.
Class defining a mutex.
Definition: Mutex.h:29
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
virtual void RawWrite(char *src)
Raw write datas.
Definition: io_data.h:186
void SetPtrToCircle(void **ptr)
Set the datas to circle.
io_data * prev
Pointer to previous data.
Definition: io_data.h:229
void SetDataTime(Time time)
Set data time, also caluculates the delta time based on last call.
io_data(const Object *parent, std::string name, int n)
Constructor.
void AppendLogDescription(std::string description, DataType const &datatype)
Specify the description of the reimplemented class data's.
virtual ~io_data()
Destructor.
void GetDataTime(Time &time, Time &deltaTime) const
Get data time and delta time.
virtual void RawRead(char *dst) const =0
Raw read datas.