2011-05-25 07:50:15 +01:00
|
|
|
#ifndef FG_ATC_COMM_STATION_HXX
|
|
|
|
#define FG_ATC_COMM_STATION_HXX
|
|
|
|
|
2013-03-06 23:21:29 +01:00
|
|
|
#include <Airports/airports_fwd.hxx>
|
2011-05-25 07:50:15 +01:00
|
|
|
#include <Navaids/positioned.hxx>
|
|
|
|
|
|
|
|
namespace flightgear
|
|
|
|
{
|
|
|
|
|
|
|
|
class CommStation : public FGPositioned
|
|
|
|
{
|
|
|
|
public:
|
2012-08-28 00:26:36 +01:00
|
|
|
CommStation(PositionedID aGuid, const std::string& name, FGPositioned::Type t, const SGGeod& pos, int range, int freq);
|
2011-05-25 07:50:15 +01:00
|
|
|
|
2012-08-28 00:26:36 +01:00
|
|
|
void setAirport(PositionedID apt);
|
2013-03-06 23:21:29 +01:00
|
|
|
FGAirportRef airport() const;
|
2011-05-25 07:50:15 +01:00
|
|
|
|
|
|
|
int rangeNm() const
|
|
|
|
{ return mRangeNM; }
|
|
|
|
|
|
|
|
int freqKHz() const
|
|
|
|
{ return mFreqKhz; }
|
|
|
|
|
|
|
|
double freqMHz() const;
|
|
|
|
|
2013-03-06 23:21:29 +01:00
|
|
|
static CommStationRef findByFreq(int freqKhz, const SGGeod& pos, FGPositioned::Filter* filt = NULL);
|
2011-05-25 07:50:15 +01:00
|
|
|
private:
|
|
|
|
int mRangeNM;
|
|
|
|
int mFreqKhz;
|
2012-08-28 00:26:36 +01:00
|
|
|
PositionedID mAirport;
|
2013-03-04 16:31:37 +01:00
|
|
|
};
|
|
|
|
|
2011-05-25 07:50:15 +01:00
|
|
|
} // of namespace flightgear
|
|
|
|
|
|
|
|
#endif // of FG_ATC_COMM_STATION_HXX
|
|
|
|
|