Inherited by Eaagles::Dafif::Airport, Eaagles::Dafif::Ils, Eaagles::Dafif::Navaid, Eaagles::Dafif::Runway, and Eaagles::Dafif::Waypoint.
Inheritance diagram for Eaagles::Dafif::DafifRecord:


Public Types | |
| enum | Type { INVALID = -1, ANY = 0, NAVAID = 2, WAYPOINT = 3, AIRPORT = 10, RUNWAY = 11, ILS = 12, MECHANICAL, ELECTRONIC } |
Public Member Functions | |
| DafifRecord () | |
| DafifRecord (const char *const s) | |
| void | setRecord (const char *const s) |
| void | setRecord (Basic::LcString *const s) |
| virtual void | printRecord (std::ostream &) const |
| int | formatCode () const |
| int | isFormatCode (const int code) const |
| char | transactionCode () const |
| int | isTransactionCode (const char c) const |
| void | icaoCode (char code[]) const |
| int | isIcaoCode (const char code[]) const |
| void | key (char k[]) const |
| int | isKey (const char k[]) const |
| virtual void | ident (char id[]) const |
| int | isIdent (const char id[]) const |
| void | name (char n[]) const |
| int | isName (const char name[]) const |
| void | dafifType (char type[]) const |
| int | isDafifType (const char type[]) const |
| void | countryCode (char country[]) const |
| int | isCountryCode (const char country[]) const |
| int | stateCode () const |
| int | isStateCode (const int code) const |
| void | wac (char code[]) const |
| int | isWac (const char code[]) const |
| double | latitude () const |
| double | longitude () const |
| float | elevation () const |
| float | magVariance () const |
| int | dafifRecordNumber () const |
| int | isDafifRecordNumber (const int num) const |
| void | cycleDate (char date[]) const |
| int | isCycleDate (const char date[]) const |
| void | getTrueBearingRange (const double aclat, const double aclon, const double acelev, double *bearing, double *range, double *grdrange) const |
| virtual void | printTrueBearingRange (std::ostream &sout, const double aclat, const double aclon, const double acelev) const |
Static Public Member Functions | |
| static float | dsChan2freq (const int chan, const char type) |
| static int | dsFreq2chan (const float freq) |
| static double | dsAtofn (const char *const s, const int n) |
| static long | dsAtoln (const char *const s, const int n) |
| static void | dsGetString (char *const d, const char *const s, const int n) |
| static int | dsIsString (const char *const s, const char *const refStr) |
| static double | dsLatitude (const char *const p) |
| static double | dsLongitude (const char *const p) |
| static float | dsElevation (const char *const p) |
| static float | dsElevation1 (const char *const p) |
| static float | dsMagVariance (const char *const p) |
| static float | dsSlaveVariance (const char *const p) |
| static float | dsMagHeading (const char *const p) |
| static float | dsFrequency (const char *const p) |
Protected Member Functions | |
| const char * | makePointer (const size_t offset) const |
| void | resetData () |
Protected Attributes | |
| const Ptbl * | ptbl |
Classes | |
| struct | Ptbl |
DafifRecord types.
| Eaagles::Dafif::DafifRecord::DafifRecord | ( | ) |
Constructors: (creates a copy of 'string').
| Eaagles::Dafif::DafifRecord::DafifRecord | ( | const char *const | s | ) |
| void Eaagles::Dafif::DafifRecord::setRecord | ( | const char *const | s | ) |
Sets this object's record string to 'string' (does not make a copy of 'string').
| void Eaagles::Dafif::DafifRecord::setRecord | ( | Basic::LcString *const | s | ) |
| virtual void Eaagles::Dafif::DafifRecord::printRecord | ( | std::ostream & | ) | const [inline, virtual] |
Reimplemented in Eaagles::Dafif::Airport, Eaagles::Dafif::Ils, Eaagles::Dafif::Navaid, Eaagles::Dafif::Runway, and Eaagles::Dafif::Waypoint.
| int Eaagles::Dafif::DafifRecord::formatCode | ( | ) | const |
Returns the value of the Format Code field.
| int Eaagles::Dafif::DafifRecord::isFormatCode | ( | const int | code | ) | const |
Returns true if 'code' is equal to the Format Code field.
| char Eaagles::Dafif::DafifRecord::transactionCode | ( | ) | const |
Returns the character contained in the Tranaction Code field.
| int Eaagles::Dafif::DafifRecord::isTransactionCode | ( | const char | c | ) | const |
Returns true if 'code' is equal to the Tranaction Code field.
| void Eaagles::Dafif::DafifRecord::icaoCode | ( | char | code[] | ) | const |
Returns the value of the ICAO field in 'code'.
| int Eaagles::Dafif::DafifRecord::isIcaoCode | ( | const char | code[] | ) | const |
Returns true if 'code' is equal to the ICAO Code field.
| void Eaagles::Dafif::DafifRecord::key | ( | char | k[] | ) | const |
Returns the value of the record's key fields in 'key1'.
| int Eaagles::Dafif::DafifRecord::isKey | ( | const char | k[] | ) | const |
Returns true if 'key1' is equal to the record's key fields.
| void Eaagles::Dafif::DafifRecord::ident | ( | char | id[] | ) | const [virtual] |
Returns the value of the record's identifier field in 'id'.
Reimplemented in Eaagles::Dafif::Airport.
| int Eaagles::Dafif::DafifRecord::isIdent | ( | const char | id[] | ) | const |
Returns true if 'id' is equal to the record's identifier field.
| void Eaagles::Dafif::DafifRecord::name | ( | char | n[] | ) | const |
Returns the value of the name field in 'name1'.
| int Eaagles::Dafif::DafifRecord::isName | ( | const char | name[] | ) | const |
Returns true if 'name1' is equal to the Name field.
| void Eaagles::Dafif::DafifRecord::dafifType | ( | char | type[] | ) | const |
Returns the value of the record's Type field in 'type'.
| int Eaagles::Dafif::DafifRecord::isDafifType | ( | const char | type[] | ) | const |
Returns true if 'type' is equal to the record's Type field.
| void Eaagles::Dafif::DafifRecord::countryCode | ( | char | country[] | ) | const |
Returns the value of the Country Code field in 'country'.
| int Eaagles::Dafif::DafifRecord::isCountryCode | ( | const char | country[] | ) | const |
Returns true if 'code' is equal to the Country Code field.
| int Eaagles::Dafif::DafifRecord::stateCode | ( | ) | const |
Returns the value of the State/Province Code field.
| int Eaagles::Dafif::DafifRecord::isStateCode | ( | const int | code | ) | const |
Returns true if 'code' is equal to the State/Province Code field.
| void Eaagles::Dafif::DafifRecord::wac | ( | char | code[] | ) | const |
Returns the value of the WAC field in 'code'.
| int Eaagles::Dafif::DafifRecord::isWac | ( | const char | code[] | ) | const |
Returns true if 'code' is equal to the WAC Code field.
| double Eaagles::Dafif::DafifRecord::latitude | ( | ) | const |
Return the values of the latitude, longitude, elevation, and magnetic variance fields.
| double Eaagles::Dafif::DafifRecord::longitude | ( | ) | const |
| float Eaagles::Dafif::DafifRecord::elevation | ( | ) | const |
| float Eaagles::Dafif::DafifRecord::magVariance | ( | ) | const |
| int Eaagles::Dafif::DafifRecord::dafifRecordNumber | ( | ) | const |
Returns the value of the Record Number field.
| int Eaagles::Dafif::DafifRecord::isDafifRecordNumber | ( | const int | num | ) | const |
| void Eaagles::Dafif::DafifRecord::cycleDate | ( | char | date[] | ) | const |
Returns the value of the Cycle Date field in 'date'.
| int Eaagles::Dafif::DafifRecord::isCycleDate | ( | const char | date[] | ) | const |
| void Eaagles::Dafif::DafifRecord::getTrueBearingRange | ( | const double | aclat, | |
| const double | aclon, | |||
| const double | acelev, | |||
| double * | bearing, | |||
| double * | range, | |||
| double * | grdrange | |||
| ) | const |
| void Eaagles::Dafif::DafifRecord::printTrueBearingRange | ( | std::ostream & | sout, | |
| const double | aclat, | |||
| const double | aclon, | |||
| const double | acelev | |||
| ) | const [virtual] |
Reimplemented in Eaagles::Dafif::Navaid.
| float Eaagles::Dafif::DafifRecord::dsChan2freq | ( | const int | chan, | |
| const char | type | |||
| ) | [static] |
| int Eaagles::Dafif::DafifRecord::dsFreq2chan | ( | const float | freq | ) | [static] |
| double Eaagles::Dafif::DafifRecord::dsAtofn | ( | const char *const | s, | |
| const int | n | |||
| ) | [static] |
| long Eaagles::Dafif::DafifRecord::dsAtoln | ( | const char *const | s, | |
| const int | n | |||
| ) | [static] |
| void Eaagles::Dafif::DafifRecord::dsGetString | ( | char *const | d, | |
| const char *const | s, | |||
| const int | n | |||
| ) | [static] |
| int Eaagles::Dafif::DafifRecord::dsIsString | ( | const char *const | s, | |
| const char *const | refStr | |||
| ) | [static] |
| double Eaagles::Dafif::DafifRecord::dsLatitude | ( | const char *const | p | ) | [static] |
convert string to latitude
| double Eaagles::Dafif::DafifRecord::dsLongitude | ( | const char *const | p | ) | [static] |
convert string to longitude
| float Eaagles::Dafif::DafifRecord::dsElevation | ( | const char *const | p | ) | [static] |
format#1: convert string to elevation (to nearest foot)
| float Eaagles::Dafif::DafifRecord::dsElevation1 | ( | const char *const | p | ) | [static] |
format#2: convert string to elevation (to tenths of feet)
| float Eaagles::Dafif::DafifRecord::dsMagVariance | ( | const char *const | p | ) | [static] |
convert string to magnetic variation
| float Eaagles::Dafif::DafifRecord::dsSlaveVariance | ( | const char *const | p | ) | [static] |
convert string to slave magnetic variation
| float Eaagles::Dafif::DafifRecord::dsMagHeading | ( | const char *const | p | ) | [static] |
convert string to magnetic heading
| float Eaagles::Dafif::DafifRecord::dsFrequency | ( | const char *const | p | ) | [static] |
convert string to frequency (MHz)
| const char * Eaagles::Dafif::DafifRecord::makePointer | ( | const size_t | offset | ) | const [protected] |
| void Eaagles::Dafif::DafifRecord::resetData | ( | ) | [protected] |
const Ptbl* Eaagles::Dafif::DafifRecord::ptbl [protected] |
Position table; one for each instance Class field position table. Used to locate many of the common DAFIF fields.
1.5.0