|
JS8Call-Improved master
|
Reader and lookup helper for CTY prefix files. More...
#include <CountryDat.h>
Public Member Functions | |
| void | init (const QString filename) |
| Set the filename of the CTY/cty.dat file to parse. | |
| void | load () |
| Parse the configured file and populate the internal mapping. | |
| QString | find (QString prefix) const |
| Find the country/entity name for a callsign prefix. | |
| QStringList | getCountryNames () const |
| Get a list of country/entity names discovered in the file. | |
Reader and lookup helper for CTY prefix files.
Typical usage: call init(filename) then load() to populate the internal prefix->country mapping. Use find() to resolve a prefix to the country name and getCountryNames() to obtain the set of known entities.
| QString CountryDat::find | ( | QString | call | ) | const |
Find the country/entity name for a callsign prefix.
Find the country name associated with a given callsign prefix.
| prefix | Callsign prefix to resolve. |
| call | The callsign prefix to search for. |
|
inline |
Get a list of country/entity names discovered in the file.
| void CountryDat::init | ( | const QString | filename | ) |
Set the filename of the CTY/cty.dat file to parse.
Initialize the CountryDat instance with the specified filename.
| filename | Path to the CTY data file. |
| filename | The path to the country data file. |
| void CountryDat::load | ( | ) |
Parse the configured file and populate the internal mapping.
Load country data from the specified file.