//
// Written by Curtis Olson, started May 2004.
//
-// Copyright (C) 2004 Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2004 Curtis L. Olson - http://www.flightgear.org/~curt
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
SG_USING_STD(istream);
-#define FG_NAV_DEFAULT_RANGE 50
-#define FG_LOC_DEFAULT_RANGE 18
-#define FG_DME_DEFAULT_RANGE 50
+#define FG_NAV_DEFAULT_RANGE 50 // nm
+#define FG_LOC_DEFAULT_RANGE 18 // nm
+#define FG_DME_DEFAULT_RANGE 50 // nm
+#define FG_NAV_MAX_RANGE 300 // nm
class FGNavRecord {
inline int get_range() const { return range; }
inline double get_multiuse() const { return multiuse; }
inline void set_multiuse( double m ) { multiuse = m; }
- inline const char *get_ident() { return ident.c_str(); }
- inline string get_name() { return name; }
- inline string get_apt_id() { return apt_id; }
- inline bool get_serviceable() { return serviceable; }
- inline const char *get_trans_ident() { return trans_ident.c_str(); }
+ inline const char *get_ident() const { return ident.c_str(); }
+ inline const string& get_name() const { return name; }
+ inline const string& get_apt_id() const { return apt_id; }
+ inline bool get_serviceable() const { return serviceable; }
+ inline const char *get_trans_ident() const { return trans_ident.c_str(); }
friend istream& operator>> ( istream&, FGNavRecord& );
};
return in;
}
+class FGTACANRecord {
+ string channel;
+ int freq;
+
+public:
+
+ inline FGTACANRecord(void);
+ inline ~FGTACANRecord(void) {}
+
+ inline const string& get_channel() const { return channel; }
+ inline int get_freq() const { return freq; }
+ friend istream& operator>> ( istream&, FGTACANRecord& );
+ };
+
+
+inline
+FGTACANRecord::FGTACANRecord(void) :
+ channel(""),
+ freq(0)
+
+{
+}
+
+inline istream&
+operator >> ( istream& in, FGTACANRecord& n )
+{
+ in >> n.channel >> n.freq ;
+ //getline( in, n.name );
+
+ return in;
+}
#endif // _FG_NAVRECORD_HXX