QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
NTRIPMountpoint Struct Reference

#include <NTRIPSourceTable.h>

Public Member Functions

void updateDistance (const QGeoCoordinate &from)
 Recompute distanceKm, or mark it unknown for invalid reference/mountpoint coordinates.
 
QString details () const
 

Static Public Member Functions

static std::optional< NTRIPMountpoint > fromSourceTableLine (const QString &line)
 Parses one source-table line ("STR;..."); none unless it is a valid STR row.
 

Public Attributes

QString mountpoint
 The format, navigation systems, country, bitrate and distance that are known, as one line.
 
QString format
 
QString navSystem
 
QString country
 
int bitrate = 0
 
double distanceKm = -1.0
 
double latitude = qQNaN()
 
double longitude = qQNaN()
 

Detailed Description

The parsed fields of an NTRIP source-table STR row that the mountpoint list shows or sorts by. All fields are immutable after parse except distanceKm, which is recomputed by updateDistances(). Each property is a model role of the same name.

Definition at line 20 of file NTRIPSourceTable.h.

Member Function Documentation

◆ details()

QString NTRIPMountpoint::details ( ) const

Definition at line 61 of file NTRIPSourceTable.cc.

References bitrate, country, distanceKm, format, and navSystem.

◆ fromSourceTableLine()

std::optional< NTRIPMountpoint > NTRIPMountpoint::fromSourceTableLine ( const QString &  line)
static

Parses one source-table line ("STR;..."); none unless it is a valid STR row.

Definition at line 26 of file NTRIPSourceTable.cc.

References bitrate, country, format, latitude, longitude, mountpoint, and navSystem.

Referenced by NTRIPSourceTableModel::parseSourceTable().

◆ updateDistance()

void NTRIPMountpoint::updateDistance ( const QGeoCoordinate &  from)

Recompute distanceKm, or mark it unknown for invalid reference/mountpoint coordinates.

Definition at line 51 of file NTRIPSourceTable.cc.

References distanceKm, latitude, and longitude.

Referenced by NTRIPSourceTableModel::updateDistances().

Member Data Documentation

◆ bitrate

int NTRIPMountpoint::bitrate = 0

Definition at line 37 of file NTRIPSourceTable.h.

Referenced by details(), and fromSourceTableLine().

◆ country

QString NTRIPMountpoint::country

Definition at line 36 of file NTRIPSourceTable.h.

Referenced by details(), and fromSourceTableLine().

◆ distanceKm

double NTRIPMountpoint::distanceKm = -1.0

◆ format

QString NTRIPMountpoint::format

Definition at line 34 of file NTRIPSourceTable.h.

Referenced by details(), and fromSourceTableLine().

◆ latitude

double NTRIPMountpoint::latitude = qQNaN()

Definition at line 39 of file NTRIPSourceTable.h.

Referenced by fromSourceTableLine(), and updateDistance().

◆ longitude

double NTRIPMountpoint::longitude = qQNaN()

Definition at line 40 of file NTRIPSourceTable.h.

Referenced by fromSourceTableLine(), and updateDistance().

◆ mountpoint

QString NTRIPMountpoint::mountpoint

The format, navigation systems, country, bitrate and distance that are known, as one line.

Definition at line 33 of file NTRIPSourceTable.h.

Referenced by fromSourceTableLine().

◆ navSystem

QString NTRIPMountpoint::navSystem

Definition at line 35 of file NTRIPSourceTable.h.

Referenced by details(), and fromSourceTableLine().


The documentation for this struct was generated from the following files: