Enroute Flight Navigation
A navigation app for VFR pilots
FileFormats::CUB Class Reference

CUB file support class. More...

#include <CUB.h>

Static Public Member Functions

static bool isValid (const QString &fileName, QString *info=nullptr)
 Check if file contains valid CUB data.
static QJsonDocument parse (const QString &fileName, QStringList &errorList, QStringList &warningList)
 Reads a file in CUB format and returns a GeoJSON document.

Detailed Description

CUB file support class.

The methods of this class read airspace files in the binary CUB format used by Naviter and LXNav products, as specified here: https://github.com/naviter/seeyou_file_formats/blob/main/CUB_file_format.md

NOTAM-defined airspaces and activation times are not supported. Airspaces of type NOTAM are ignored; all other airspaces are treated as permanently active.

Definition at line 39 of file CUB.h.

Member Function Documentation

◆ isValid()

bool FileFormats::CUB::isValid ( const QString & fileName,
QString * info = nullptr )
static

Check if file contains valid CUB data.

Parameters
fileNameName of a file
infoPointer to a string where additional information will be stored.
Returns
True if the file is likely to contain valid CUB data.

◆ parse()

QJsonDocument FileFormats::CUB::parse ( const QString & fileName,
QStringList & errorList,
QStringList & warningList )
static

Reads a file in CUB format and returns a GeoJSON document.

Parameters
fileNameName of the CUB file
errorListReference to a QStringList where error messages will be appended.
warningListReference to a QStringList where warnings will be appended.
Returns
If no error messages were appended, returns a QJsonDocument with GeoJSON as specified in https://github.com/Akaflieg-Freiburg/enrouteServer/wiki/GeoJSON-files-used-in-enroute-flight-navigation. If error messages were appended, returns an empty QJsonDocument

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