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::urcHandlerRegistry Class Reference

The registry of URC handler classes - mirrors the GNSS v4 message registries. More...

#include <urcHandler.h>

Public Types

typedef urcHandler *(* urcHandlerFactoryFn) (void)
 The factory function type. More...
 

Public Member Functions

void registerHandler (urcHandlerFactoryFn factory)
 Register one URC handler class's factory function, if not already registered. More...
 
void buildAll (std::vector< urcHandler * > &handlers) const
 Construct one instance of every currently-registered URC handler class. More...
 

Static Public Member Functions

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

Detailed Description

The registry of URC handler classes - mirrors the GNSS v4 message registries.

Member Typedef Documentation

◆ urcHandlerFactoryFn

typedef urcHandler *(* SparkFun_Iridium_9604::urcHandlerRegistry::urcHandlerFactoryFn) (void)

The factory function type.

Member Function Documentation

◆ buildAll()

void SparkFun_Iridium_9604::urcHandlerRegistry::buildAll ( std::vector< urcHandler * > &  handlers) const
inline

Construct one instance of every currently-registered URC handler class.

◆ get()

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

Get the single, lazily-constructed urcHandlerRegistry instance.

◆ registerHandler()

void SparkFun_Iridium_9604::urcHandlerRegistry::registerHandler ( urcHandlerFactoryFn  factory)
inline

Register one URC handler class's factory function, if not already registered.

Called by each urcHandlerBuilder<HandlerType> at static-initialization time. De-duplicates by function-pointer value: every translation unit which includes a handler header declares its own static builder, but they all share the same (template) factory function.


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