Qt Virtual Chart Table (QVCT)
CDeviceDataDop.hpp
Go to the documentation of this file.
1 // INDENTING (emacs/vi): -*- mode:c++; tab-width:2; c-basic-offset:2; intent-tabs-mode:nil; -*- ex: set tabstop=2 expandtab:
2 
3 /*
4  * Qt Virtual Chart Table (QVCT)
5  * Copyright (C) 2012 Cedric Dufour <http://cedric.dufour.name>
6  * Author: Cedric Dufour <http://cedric.dufour.name>
7  *
8  * The Qt Virtual Chart Table (QVCT) is free software:
9  * you can redistribute it and/or modify it under the terms of the GNU General
10  * Public License as published by the Free Software Foundation, Version 3.
11  *
12  * The Qt Virtual Chart Table (QVCT) is distributed in the hope
13  * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
14  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  * See the GNU General Public License for more details.
17  */
18 
19 #ifndef QVCT_CDEVICEDATADOP_HPP
20 #define QVCT_CDEVICEDATADOP_HPP
21 
22 // QVCT
24 #include "data/CDataPosition.hpp"
25 #include "data/CDataCourse.hpp"
26 
27 
29 
35 {
36 
37  //------------------------------------------------------------------------------
38  // CONSTANTS / STATIC
39  //------------------------------------------------------------------------------
40 
41 public:
43  static const double UNDEFINED_VALUE;
45  static const CDeviceDataDop UNDEFINED;
46 
47 
48  //------------------------------------------------------------------------------
49  // FIELDS
50  //------------------------------------------------------------------------------
51 
52 private:
54 
57 
58  double fdDopVertical;
60 
61  double fdDopTime;
62 
63 
64  //------------------------------------------------------------------------------
65  // CONSTRUCTORS / DESTRUCTOR
66  //------------------------------------------------------------------------------
67 
68 public:
69  CDeviceDataDop( double _fdDopHorizontal = UNDEFINED_VALUE,
70  double _fdDopVertical = UNDEFINED_VALUE,
71  double _fdDopTime = UNDEFINED_VALUE );
72  virtual ~CDeviceDataDop() {};
73 
74 
75  //------------------------------------------------------------------------------
76  // METHODS
77  //------------------------------------------------------------------------------
78 
79  // SETTERS
80 public:
82  void setDop( const CDeviceDataDop& _roDeviceDataDop );
84  void setDopPosition( double _fdDopHorizontal, double _fdDopVertical = UNDEFINED_VALUE ) { fdDopHorizontal = _fdDopHorizontal; fdDopVertical = _fdDopVertical; };
86  void setDopTime( double _fdDopTime ) { fdDopTime = _fdDopTime; };
87 
88  // GETTERS
89 public:
91  double getDopTime() const { return fdDopTime; };
93  double getDopHorizontal() const { return fdDopHorizontal; };
95  double getDopVertical() const { return fdDopVertical; };
97  double getDopPosition() const;
99  double getDopGlobal() const;
100 
101  // OPERATORS
102 public:
104 
105  bool operator==( const CDeviceDataDop& _roDeviceDataDop ) const;
107 
108  bool operator!=( const CDeviceDataDop& _roDeviceDataDop ) const;
109 
110 };
111 
112 #endif // QVCT_CDEVICEDATADOP_HPP
Dilution-of-Precision (DOP) data.
void setDopTime(double _fdDopTime)
Sets the time Dilution-of-Precision (TDOP)
void setDop(const CDeviceDataDop &_roDeviceDataDop)
Sets (copy) the Dilution-of-Precision (HDOP, VDOP, TDOP) values from other DOP data.
bool operator!=(const CDeviceDataDop &_roDeviceDataDop) const
Inequality operator.
double getDopGlobal() const
Returns the global Dilution-of-Precision (GDOP)
double fdDopHorizontal
Horizontal position Dilution-of-Precision (HDOP)
void setDopPosition(double _fdDopHorizontal, double _fdDopVertical=UNDEFINED_VALUE)
Sets the position Dilution-of-Precision (HDOP, VDOP)
double getDopPosition() const
Returns the position Dilution-of-Precision (PDOP)
double fdDopTime
Time Dilution-of-Precision (TDOP)
CDeviceDataDop(double _fdDopHorizontal=UNDEFINED_VALUE, double _fdDopVertical=UNDEFINED_VALUE, double _fdDopTime=UNDEFINED_VALUE)
static const double UNDEFINED_VALUE
Specific value for an undefined component.
double getDopTime() const
Returns the time Dilution-of-Precision (TDOP)
static const CDeviceDataDop UNDEFINED
Specific value for undefined DOP data.
double getDopHorizontal() const
Returns the horizontal position Dilution-of-Precision (HDOP)
double getDopVertical() const
Returns the vertical position Dilution-of-Precision (VDOP)
bool operator==(const CDeviceDataDop &_roDeviceDataDop) const
Equality operator.
virtual ~CDeviceDataDop()
double fdDopVertical
Vertical position Dilution-of-Precision (VDOP)