Qt Virtual Chart Table (QVCT)
CDeviceDataSatellite.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_CDEVICEDATASATELLITE_HPP
20 #define QVCT_CDEVICEDATASATELLITE_HPP
21 
22 
24 
30 {
31 
32  //------------------------------------------------------------------------------
33  // FIELDS
34  //------------------------------------------------------------------------------
35 
36 private:
38 
39  int iPRN;
41 
42  double fdAzimuth;
44 
45  double fdElevation;
47 
48  double fdSignal;
50 
51  bool bUsed;
52 
53 
54  //------------------------------------------------------------------------------
55  // CONSTRUCTORS / DESTRUCTOR
56  //------------------------------------------------------------------------------
57 
58 public:
59  CDeviceDataSatellite( int _iPRN );
60  virtual ~CDeviceDataSatellite() {};
61 
62 
63  //------------------------------------------------------------------------------
64  // METHODS
65  //------------------------------------------------------------------------------
66 
67  // SETTERS
68 public:
70  void setAzimuth( double _fdAzimuth ) { fdAzimuth = _fdAzimuth; };
72  void setElevation( double _fdElevation ) { fdElevation = _fdElevation; };
74  void setSignal( double _fdSignal ) { fdSignal = _fdSignal; };
76  void setUsed( bool _bUsed ) { bUsed = _bUsed; };
77 
78  // GETTERS
79 public:
81  int getPRN() const { return iPRN; };
83  double getAzimuth() const { return fdAzimuth; };
85  double getElevation() const { return fdElevation; };
87  double getSignal() const { return fdSignal; };
89  bool isUsed() { return bUsed; };
90 
91 };
92 
93 #endif // QVCT_CDEVICEDATASATELLITE_HPP
Satellite data [PRN,signal,azimuth,elevation,etc.].
bool bUsed
Satellite usage status.
double fdAzimuth
Satellite azimuth, in degrees.
void setUsed(bool _bUsed)
Sets the satellite usage status.
double fdSignal
Satellite signal-to-noise ratio, in decibels.
int getPRN() const
Returns the satellite PRN (ID)
int iPRN
Satellite PRN (ID)
double getSignal() const
Returns the satellite signal-to-noise ratio, in decibels.
bool isUsed()
Returns the satellite usage status.
double getAzimuth() const
Returns the satellite azimuth, in degrees.
void setElevation(double _fdElevation)
Sets the satellite elevation, in degrees.
void setAzimuth(double _fdAzimuth)
Sets the satellite azimuth, in degrees.
double fdElevation
Satellite elevation, in degrees.
void setSignal(double _fdSignal)
Sets the satellite signal-to-noise ratio, in decibels.
double getElevation() const
Returns the satellite elevation, in degrees.