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)
 

Static Public Member Functions

static bool fromSourceTableLine (const QString &line, NTRIPMountpoint &out)
 

Public Attributes

QString mountpoint
 
QString identifier
 
QString format
 
QString formatDetails
 
int carrier = 0
 
QString navSystem
 
QString network
 
QString country
 
double latitude = 0.0
 
double longitude = 0.0
 
bool nmea = false
 
bool solution = false
 
QString generator
 
QString compression
 
QString authentication
 
bool fee = false
 
int bitrate = 0
 
double distanceKm = -1.0
 

Detailed Description

Parsed NTRIP source-table STR row. Plain value type — all fields are immutable after parse except distanceKm, which is recomputed by updateDistances().

Definition at line 13 of file NTRIPSourceTable.h.

Member Function Documentation

◆ fromSourceTableLine()

bool NTRIPMountpoint::fromSourceTableLine ( const QString &  line,
NTRIPMountpoint out 
)
static

Parse one source-table line ("STR;..."). Returns true and fills out on a valid STR row; returns false (out untouched) otherwise.

Definition at line 10 of file NTRIPSourceTable.cc.

References authentication, bitrate, carrier, compression, country, fee, format, formatDetails, generator, identifier, latitude, longitude, mountpoint, navSystem, network, nmea, and solution.

Referenced by NTRIPSourceTableModel::parseSourceTable().

◆ updateDistance()

void NTRIPMountpoint::updateDistance ( const QGeoCoordinate &  from)

Recompute distanceKm from a reference coordinate. No-op for invalid references or unknown (0,0) mountpoint coordinates.

Definition at line 49 of file NTRIPSourceTable.cc.

References distanceKm, latitude, and longitude.

Member Data Documentation

◆ authentication

QString NTRIPMountpoint::authentication

Definition at line 29 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ bitrate

int NTRIPMountpoint::bitrate = 0

Definition at line 31 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ carrier

int NTRIPMountpoint::carrier = 0

Definition at line 19 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ compression

QString NTRIPMountpoint::compression

Definition at line 28 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ country

QString NTRIPMountpoint::country

Definition at line 22 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ distanceKm

double NTRIPMountpoint::distanceKm = -1.0

◆ fee

bool NTRIPMountpoint::fee = false

Definition at line 30 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ format

QString NTRIPMountpoint::format

Definition at line 17 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ formatDetails

QString NTRIPMountpoint::formatDetails

Definition at line 18 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ generator

QString NTRIPMountpoint::generator

Definition at line 27 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ identifier

QString NTRIPMountpoint::identifier

Definition at line 16 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ latitude

double NTRIPMountpoint::latitude = 0.0

◆ longitude

double NTRIPMountpoint::longitude = 0.0

◆ mountpoint

QString NTRIPMountpoint::mountpoint

Definition at line 15 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ navSystem

QString NTRIPMountpoint::navSystem

Definition at line 20 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ network

QString NTRIPMountpoint::network

Definition at line 21 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ nmea

bool NTRIPMountpoint::nmea = false

Definition at line 25 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().

◆ solution

bool NTRIPMountpoint::solution = false

Definition at line 26 of file NTRIPSourceTable.h.

Referenced by NTRIPSourceTableModel::data(), and fromSourceTableLine().


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