source: flair-src/trunk/lib/FlairCore/src/GpsData.h@ 45

Last change on this file since 45 was 45, checked in by Sanahuja Guillaume, 7 years ago

added compile info

File size: 1.8 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5/*!
6 * \file GpsData.h
7 * \brief Class defining gps datas
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2016/07/01
10 * \version 4.0
11 */
12#ifndef GPSDATA_H
13#define GPSDATA_H
14
15#include <io_data.h>
16#include <IODataElement.h>
17#include <Vector3D.h>
18
19namespace flair {
20namespace core {
21
22/*! \class GpsData
23*
24* \brief Class defining gps datas
25*
26* GPS datas consist of
27*
28*
29*/
30class GpsData : public io_data {
31public:
32 class Type : public DataType {
33 public:
34 Type(void){}
35 std::string GetDescription() const { return "gps data"; }
36 size_t GetSize() const {
37 return 0;
38 }
39
40 private:
41 };
42
43 /*!
44 \enum PlotableData_t
45 \brief Datas wich can be plotted in a DataPlot1D
46 */
47 typedef enum {
48
49 } PlotableData_t;
50
51 /*!
52 * \brief Constructor
53 *
54 * Construct an io_data representing GPS datas. \n
55 *
56 * \param parent parent
57 * \param name name
58 * \param n number of samples
59 */
60 GpsData(const Object *parent, std::string name = "", int n = 1);
61
62 /*!
63 * \brief Destructor
64 *
65 */
66 ~GpsData();
67
68 /*!
69 * \brief Element
70 *
71 * Get a pointer to a specific element. This pointer can be used for plotting.
72 *
73 * \param data_type data type
74 *
75 * \return pointer to the element
76 */
77 IODataElement *Element(PlotableData_t data_type) const;
78
79
80 Type const &GetDataType() const { return dataType; }
81
82private:
83 /*!
84 * \brief Copy datas
85 *
86 * Reimplemented from io_data. \n
87 * See io_data::CopyDatas.
88 *
89 * \param dst destination buffer
90 */
91 void CopyDatas(char *dst) const;
92
93
94
95 void Queue(char **dst, const void *src, size_t size) const;
96 Type dataType;
97};
98
99} // end namespace core
100} // end namespace flair
101
102#endif // GPSDATA_H
Note: See TracBrowser for help on using the repository browser.