Last change
on this file since 115 was 15, checked in by Bayard Gildas, 8 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.3 KB
|
Rev | Line | |
---|
[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] | 27 | class io_data_impl {
|
---|
| 28 | public:
|
---|
| 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;
|
---|
| 39 | flair::core::Time time;
|
---|
| 40 | void **circle_ptr;
|
---|
[2] | 41 |
|
---|
[15] | 42 | private:
|
---|
| 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.