source: flair-src/trunk/lib/FlairCore/src/unexported/io_data_impl.h

Last change on this file was 223, checked in by Sanahuja Guillaume, 4 years ago

add delta time to io_data

File size: 1.3 KB
RevLine 
[2]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[2]4// %flair:license}
5/*!
6 * \file io_data_impl.h
7 * \brief Abstract class for data types.
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2012/03/21
10 * \version 4.0
11 */
12
13#ifndef IO_DATA_IMPL_H
14#define IO_DATA_IMPL_H
15
16#include "io_data.h"
17
18/*! \class io_data_impl
19* \brief Abstract class for data types.
20*
[15]21* Use this class to define a custom data type. Data types ares used for logging
22*and graphs. \n
[2]23* The reimplemented class must call SetSize() in its constructor. \n
24* io_data can be constructed with n samples (see io_data::io_data).
25* In this case, old samples can be accessed throug io_data::Prev.
26*/
[15]27class io_data_impl {
28public:
29 io_data_impl(flair::core::io_data *self, int n);
30 ~io_data_impl();
31 void Circle(void);
32 bool IsConsistent(void);
33 void SetConsistent(bool status);
34 void WriteLogDescriptor(std::fstream &desc_file, int *index);
35 void PrintLogDescriptor(void);
36 void AppendLogDescription(std::string description,
37 flair::core::DataType const &datatype);
38 size_t size;
[223]39 flair::core::Time time,deltaTime;
[15]40 void **circle_ptr;
[2]41
[15]42private:
43 flair::core::io_data *self;
44 int n;
45 bool is_consistent;
46 std::vector<std::string> descriptors;
[2]47};
48
49#endif // IO_DATA_IMPL_H
Note: See TracBrowser for help on using the repository browser.