SparkFun Iridium 9604  v1.0.0
Library for the Iridium 9604 Hybrid LTE-M Cellular + Iridium Satellite (SBD) + GNSS IoT module
Loading...
Searching...
No Matches
SparkFun_Iridium_9604::nmeaMessageRegistry Class Reference

The registry of NMEA message classes - mirrors the GNSS v4 nmeaMessageRegistry. More...

#include <nmeaMessageRegistry.h>

Public Types

typedef nmeaMessage *(* nmeaMessageFactoryFn) (void)
 The factory function type. More...
 

Public Member Functions

void registerMessage (nmeaMessageFactoryFn factory)
 Register one NMEA message class's factory function, if not already registered. More...
 
void buildAll (std::vector< nmeaMessage * > &messages) const
 Construct one instance of every currently-registered NMEA message class. More...
 

Static Public Member Functions

static nmeaMessageRegistry & get (void)
 Get the single, lazily-constructed nmeaMessageRegistry instance. More...
 

Detailed Description

The registry of NMEA message classes - mirrors the GNSS v4 nmeaMessageRegistry.

Member Typedef Documentation

◆ nmeaMessageFactoryFn

typedef nmeaMessage *(* SparkFun_Iridium_9604::nmeaMessageRegistry::nmeaMessageFactoryFn) (void)

The factory function type.

Member Function Documentation

◆ buildAll()

void SparkFun_Iridium_9604::nmeaMessageRegistry::buildAll ( std::vector< nmeaMessage * > &  messages) const
inline

Construct one instance of every currently-registered NMEA message class.

Parameters
messagesVector to append each newly-constructed nmeaMessage* into (ownership passes to the caller - see nmeaMessageVector's constructor/destructor).

◆ get()

static nmeaMessageRegistry & SparkFun_Iridium_9604::nmeaMessageRegistry::get ( void  )
inlinestatic

Get the single, lazily-constructed nmeaMessageRegistry instance.

Returns
Reference to the process-wide registry singleton.

◆ registerMessage()

void SparkFun_Iridium_9604::nmeaMessageRegistry::registerMessage ( nmeaMessageFactoryFn  factory)
inline

Register one NMEA message class's factory function, if not already registered.

Called by each nmeaMessageBuilder<MessageType> at static-initialization time. De-duplicates by function-pointer value, mirroring ubxMessageRegistry::registerMessage()

  • see ubxMessageRegistry.h's file-level comment for why this is needed.
Parameters
factoryFunction that constructs one instance of the message class being registered.

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