]> git.mxchange.org Git - flightgear.git/blob - src/ATC/CommStation.hxx
Avoid compiler warnings.
[flightgear.git] / src / ATC / CommStation.hxx
1 #ifndef FG_ATC_COMM_STATION_HXX
2 #define FG_ATC_COMM_STATION_HXX
3
4 #include <Navaids/positioned.hxx>
5
6 class FGAirport;
7
8 namespace flightgear
9 {
10
11 class CommStation : public FGPositioned
12 {
13 public:
14     CommStation(const std::string& name, FGPositioned::Type t, const SGGeod& pos, int range, int freq);
15
16     void setAirport(FGAirport* apt);
17     FGAirport* airport() const { return mAirport; }
18     
19     int rangeNm() const
20         { return mRangeNM; }
21         
22     int freqKHz() const
23         { return mFreqKhz; }
24         
25     double freqMHz() const;
26     
27     static CommStation* findByFreq(int freqKhz, const SGGeod& pos, FGPositioned::Filter* filt = NULL);
28 private:
29     int mRangeNM;
30     int mFreqKhz;
31     FGAirport* mAirport;
32 }; 
33     
34 } // of namespace flightgear
35
36 #endif // of FG_ATC_COMM_STATION_HXX
37