Qt Virtual Chart Table (QVCT)
CDataCourseValidity.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_CDATACOURSEVALIDITY_HPP
20 #define QVCT_CDATACOURSEVALIDITY_HPP
21 
22 // QVCT
23 #include "data/CDataValidity.hpp"
24 
25 
27 
33 {
34 
35  //------------------------------------------------------------------------------
36  // FIELDS
37  //------------------------------------------------------------------------------
38 
39 private:
41 
44 
47 
49 
51 
54 
55  double fdErrorSpeed;
57 
59 
61 
64 
67 
69 
70 
71  //------------------------------------------------------------------------------
72  // CONSTRUCTORS / DESTRUCTOR
73  //------------------------------------------------------------------------------
74 
75 public:
77  virtual ~CDataCourseValidity() {};
78 
79 
80  //------------------------------------------------------------------------------
81  // METHODS
82  //------------------------------------------------------------------------------
83 
84  // SETTERS
85 public:
87  void setValidityBearing( double _fdTimeLastBearing, double _fdErrorBearing, bool _bInvalidBearing = false )
88  { fdTimeLastBearing = _fdTimeLastBearing; fdErrorBearing = _fdErrorBearing; bInvalidBearing = _bInvalidBearing; };
90  void setValiditySpeed( double _fdTimeLastSpeed, double _fdErrorSpeed, bool _bInvalidSpeed = false )
91  { fdTimeLastSpeed = _fdTimeLastSpeed; fdErrorSpeed = _fdErrorSpeed; bInvalidSpeed = _bInvalidSpeed; };
93  void setValiditySpeedVertical( double _fdTimeLastSpeedVertical, double _fdErrorSpeedVertical, bool _bInvalidSpeedVertical = false )
94  { fdTimeLastSpeedVertical = _fdTimeLastSpeedVertical; fdErrorSpeedVertical = _fdErrorSpeedVertical; bInvalidSpeedVertical = _bInvalidSpeedVertical; };
95 
96  // GETTERS
97 public:
99  double getTimeLastBearing() const { return fdTimeLastBearing; };
101  double getErrorBearing() const { return fdErrorBearing; };
103  bool isInvalidBearing() const { return bInvalidBearing; };
105 
106  bool isValidBearing() const;
107 
109  double getTimeLastSpeed() const { return fdTimeLastSpeed; };
111  double getErrorSpeed() const { return fdErrorSpeed; };
113  bool isInvalidSpeed() const { return bInvalidSpeed; };
115 
116  bool isValidSpeed() const;
117 
121  double getErrorSpeedVertical() const { return fdErrorSpeedVertical; };
125 
126  bool isValidSpeedVertical() const;
127 
128 };
129 
131 
137 {
138 
139  //------------------------------------------------------------------------------
140  // FIELDS
141  //------------------------------------------------------------------------------
142 
143 public:
148 
149 
150  //------------------------------------------------------------------------------
151  // CONSTRUCTORS / DESTRUCTOR
152  //------------------------------------------------------------------------------
153 
154 public:
156  CDataCourseValidityGA( const CDataCourseValidity& _roGroundGeoCourseValidity, const CDataCourseValidity& _roApparentGeoCourseValidity );
158 
159 };
160 
161 #endif // QVCT_CDATACOURSEVALIDITY_HPP
Ground and apparent geographical courses validity container.
CDataCourseValidity GroundCourseValidity
Ground course validity.
CDataCourseValidity ApparentCourseValidity
Apparent course validity.
Course data validity.
double getTimeLastSpeed() const
Returns the horizontal speed's last-set time, in seconds from Unix epoch.
void setValiditySpeed(double _fdTimeLastSpeed, double _fdErrorSpeed, bool _bInvalidSpeed=false)
Sets the horizontal speed's validity parameters.
bool bInvalidBearing
Bearing (forced) invalidity status.
double fdErrorSpeedVertical
Vertical speed error, in meters per second.
double fdTimeLastSpeed
Horizontal speed last-set time, in seconds from Unix epoch.
double fdTimeLastSpeedVertical
Vertical speed last-set time, in seconds from Unix epoch.
double getTimeLastBearing() const
Returns the bearing's last-set time, in seconds from Unix epoch.
bool isInvalidSpeed() const
Returns the horizontal speed's (forced) invalidity status.
bool isInvalidBearing() const
Returns the bearing's (forced) invalidity status.
void setValiditySpeedVertical(double _fdTimeLastSpeedVertical, double _fdErrorSpeedVertical, bool _bInvalidSpeedVertical=false)
Sets the vertical speed's validity parameters.
double getErrorSpeed() const
Returns the horizontal speed's error, in seconds.
void setValidityBearing(double _fdTimeLastBearing, double _fdErrorBearing, bool _bInvalidBearing=false)
Sets the bearing's validity parameters.
bool isValidSpeedVertical() const
Returns the vertical speed's (global) validity status.
double getErrorBearing() const
Returns the bearing's error, in seconds.
bool isValidSpeed() const
Returns the horizontal speed's (global) validity status.
double fdTimeLastBearing
Bearing last-set time, in seconds from Unix epoch.
bool isValidBearing() const
Returns the bearing's (global) validity status.
double getTimeLastSpeedVertical() const
Returns the vertical speed's last-set time, in seconds from Unix epoch.
bool bInvalidSpeed
Horizontal speed (forced) invalidity status.
double getErrorSpeedVertical() const
Returns the vertical speed's error, in seconds.
bool bInvalidSpeedVertical
Vertical speed (forced) invalidity status.
double fdErrorBearing
Bearing error, in meters.
double fdErrorSpeed
Horizontal speed error, in meters per second.
bool isInvalidSpeedVertical() const
Returns the vertical speed's (forced) invalidity status.
Generic data validity management class.