NDEVR
API Documentation
GNSSManager

A storage class for GNSSInterface that allows the software to specify roles, or find and assign GNSS devices. More...

Inheritance diagram for GNSSManager:
[legend]
Collaboration diagram for GNSSManager:
[legend]

Public Member Functions

void addGNSSInterface (GNSSInterface *)
 Registers a GNSS interface with this manager.
void addGNSSRole (const GNSSRole &role)
 Registers a new GNSS role that devices can be assigned to.
Buffer< PositionSensor * > availableGNSSDevices () const
 Returns all GNSS devices available across all registered interfaces.
Buffer< GNSSRoleavailableRoles () const
 Returns all currently registered GNSS roles.
PositionSensorgetGNSSDevice (const UUID &id) const
 Returns the GNSS device matching the given identifier across all interfaces.
void removeGNSSInterface (const UUID &id)
 Removes a previously registered GNSS interface.

Static Public Member Functions

static GNSSManager & DefaultInstance ()
 Returns the singleton GNSSManager instance.

Protected Attributes

Buffer< GNSSRolem_gnss_roles
 The list of registered GNSS roles.
Dictionary< UUID, GNSSInterface * > m_interfaces
 Map of interface UUIDs to their GNSSInterface pointers.

Detailed Description

A storage class for GNSSInterface that allows the software to specify roles, or find and assign GNSS devices.


Definition at line 41 of file GNSSManager.h.

Member Function Documentation

◆ addGNSSInterface()

void GNSSManager::addGNSSInterface ( GNSSInterface * )

Registers a GNSS interface with this manager.

Parameters
[in]interfaceThe GNSSInterface to add.

◆ addGNSSRole()

void GNSSManager::addGNSSRole ( const GNSSRole & role)

Registers a new GNSS role that devices can be assigned to.

Parameters
[in]roleThe GNSSRole to add.

◆ getGNSSDevice()

PositionSensor * GNSSManager::getGNSSDevice ( const UUID & id) const

Returns the GNSS device matching the given identifier across all interfaces.

Parameters
[in]idThe UUID of the device to retrieve.
Returns
A pointer to the matching PositionSensor, or nullptr if not found.

◆ removeGNSSInterface()

void GNSSManager::removeGNSSInterface ( const UUID & id)

Removes a previously registered GNSS interface.

Parameters
[in]idThe UUID of the interface to remove.

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