Enroute Flight Navigation
A navigation app for VFR pilots
Traffic::TransponderDB Class Reference

Transponder database. This class implements an algorithm to decode the 24-bit transponder address to a callsign for some countries. It is based on code from dump1090 at https://github.com/mutability/dump1090/blob/unmaintained/public_html/registrations.js under GPLv2 license. More...

#include <TransponderDB.h>

Public Member Functions

 TransponderDB (QObject *parent=nullptr)
 Default constructor.
Q_INVOKABLE QString getRegistration (const QString &address) const
 Get registration for a given ICAO address.

Detailed Description

Transponder database. This class implements an algorithm to decode the 24-bit transponder address to a callsign for some countries. It is based on code from dump1090 at https://github.com/mutability/dump1090/blob/unmaintained/public_html/registrations.js under GPLv2 license.

Definition at line 22 of file TransponderDB.h.

Constructor & Destructor Documentation

◆ TransponderDB()

Traffic::TransponderDB::TransponderDB ( QObject * parent = nullptr)
explicit

Default constructor.

This constructor initializes the database from a file or embedded data.

Parameters
parentThe standard QObject parent pointer

Member Function Documentation

◆ getRegistration()

Q_INVOKABLE QString Traffic::TransponderDB::getRegistration ( const QString & address) const

Get registration for a given ICAO address.

Parameters
addressThe ICAO 24-bit transponder address (hexadecimal string).
Returns
The aircraft registration, or an empty string if not found.

The documentation for this class was generated from the following file: