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

#include <NTRIPTransportConfig.h>

Public Member Functions

bool operator== (const NTRIPTransportConfig &) const =default
 
QString validationError () const
 
bool isValid () const
 
bool transportDiffers (const NTRIPTransportConfig &other) const
 
bool udpForwardDiffers (const NTRIPTransportConfig &other) const
 
bool whitelistDiffers (const NTRIPTransportConfig &other) const
 
QString casterIdentity () const
 

Static Public Member Functions

static NTRIPTransportConfig fromSettings (NTRIPSettings &settings)
 
static QVector< int > parseWhitelist (const QString &csv)
 

Public Attributes

QString host
 
int port = 2101
 
QString username
 
QString password
 
QString mountpoint
 
QString whitelist
 
bool useTls = false
 
bool allowSelfSignedCerts = false
 
bool udpForwardEnabled = false
 
QString udpTargetAddress
 
quint16 udpTargetPort = 0
 

Detailed Description

Definition at line 8 of file NTRIPTransportConfig.h.

Member Function Documentation

◆ casterIdentity()

QString NTRIPTransportConfig::casterIdentity ( ) const

Identity of the caster a source table belongs to: host + port + credentials

  • TLS. Excludes mountpoint/whitelist because the source table is shared across mountpoints on the same caster. Used as the source-table cache key so it cannot drift from this config's own notion of "same caster".

Definition at line 61 of file NTRIPTransportConfig.cc.

References host, password, port, username, and useTls.

◆ fromSettings()

NTRIPTransportConfig NTRIPTransportConfig::fromSettings ( NTRIPSettings settings)
static

Definition at line 35 of file NTRIPTransportConfig.cc.

References config, host, and Fact::rawValue().

Referenced by NTRIPManager::fetchMountpoints().

◆ isValid()

bool NTRIPTransportConfig::isValid ( ) const
inline

Definition at line 31 of file NTRIPTransportConfig.h.

References validationError().

◆ operator==()

bool NTRIPTransportConfig::operator== ( const NTRIPTransportConfig ) const
default

◆ parseWhitelist()

QVector< int > NTRIPTransportConfig::parseWhitelist ( const QString &  csv)
static

Parse a comma-separated RTCM message-id list (e.g. "1005,1077,1087") into the QVector<int> expected by RTCMParser::setWhitelist. Empty or non-numeric tokens are ignored.

Definition at line 77 of file NTRIPTransportConfig.cc.

Referenced by NTRIPHttpTransport::NTRIPHttpTransport().

◆ transportDiffers()

bool NTRIPTransportConfig::transportDiffers ( const NTRIPTransportConfig other) const

Hot fields: a change forces a transport reconnect (TCP/TLS handshake, HTTP GET line, auth). Excludes whitelist (parser-only) and UDP sink.

Definition at line 54 of file NTRIPTransportConfig.cc.

References allowSelfSignedCerts, host, mountpoint, password, port, username, and useTls.

◆ udpForwardDiffers()

bool NTRIPTransportConfig::udpForwardDiffers ( const NTRIPTransportConfig other) const

Warm fields: the UDP sidecar can be reconfigured without tearing down the caster connection.

Definition at line 71 of file NTRIPTransportConfig.cc.

References udpForwardEnabled, udpTargetAddress, and udpTargetPort.

◆ validationError()

QString NTRIPTransportConfig::validationError ( ) const

Returns a user-facing error string if the config is unusable, or an empty string if valid. Covers required fields plus control-character / RFC 7617 injection guards so the manager can reject before any socket is allocated.

Definition at line 9 of file NTRIPTransportConfig.cc.

References host, mountpoint, and username.

Referenced by isValid().

◆ whitelistDiffers()

bool NTRIPTransportConfig::whitelistDiffers ( const NTRIPTransportConfig other) const
inline

Cold field: RTCM whitelist is applied in the parser and does not require a reconnect or any sink reconfiguration.

Definition at line 46 of file NTRIPTransportConfig.h.

References whitelist.

Member Data Documentation

◆ allowSelfSignedCerts

bool NTRIPTransportConfig::allowSelfSignedCerts = false

Definition at line 17 of file NTRIPTransportConfig.h.

Referenced by transportDiffers().

◆ host

QString NTRIPTransportConfig::host

◆ mountpoint

QString NTRIPTransportConfig::mountpoint

◆ password

QString NTRIPTransportConfig::password

◆ port

int NTRIPTransportConfig::port = 2101

Definition at line 11 of file NTRIPTransportConfig.h.

Referenced by casterIdentity(), and transportDiffers().

◆ udpForwardEnabled

bool NTRIPTransportConfig::udpForwardEnabled = false

Definition at line 20 of file NTRIPTransportConfig.h.

Referenced by udpForwardDiffers().

◆ udpTargetAddress

QString NTRIPTransportConfig::udpTargetAddress

Definition at line 21 of file NTRIPTransportConfig.h.

Referenced by udpForwardDiffers().

◆ udpTargetPort

quint16 NTRIPTransportConfig::udpTargetPort = 0

Definition at line 22 of file NTRIPTransportConfig.h.

Referenced by udpForwardDiffers().

◆ username

QString NTRIPTransportConfig::username

◆ useTls

bool NTRIPTransportConfig::useTls = false

◆ whitelist

QString NTRIPTransportConfig::whitelist

Definition at line 15 of file NTRIPTransportConfig.h.

Referenced by whitelistDiffers().


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