Define a wrapper class for all known PNBNavDataFactory classes, allowing a single class to be used to handle all GNSSes.
Definition at line 66 of file PNBMultiGNSSNavDataFactory.hpp.
#include <PNBMultiGNSSNavDataFactory.hpp>
Public Member Functions | |
bool | addData (const PackedNavBitsPtr &navIn, NavDataPtrList &navOut, double cadence=-1) override |
PNBMultiGNSSNavDataFactory () | |
Initialize myFactories. More... | |
void | resetState () override |
void | setControl (const FactoryControl &ctrl) override |
void | setTypeFilter (const NavMessageTypeSet &nmts) override |
void | setValidityFilter (NavValidityType nvt) override |
![]() | |
PNBNavDataFactory () | |
Static Public Member Functions | |
static bool | addFactory (NavType navType, PNBNavDataFactoryPtr &fact) |
Static Protected Member Functions | |
static std::shared_ptr< PNBNavDataFactoryMap > | factories () |
Protected Attributes | |
std::shared_ptr< PNBNavDataFactoryMap > | myFactories |
![]() | |
FactoryControl | factControl |
Configuration for the behavior of this factory. More... | |
NavValidityType | navValidity |
Determines how the factory should filter added data. More... | |
bool | processAlm |
If true, almanac data will be output by addData. More... | |
bool | processEph |
If true, ephemeris data will be output by addData. More... | |
bool | processHea |
If true, health data will be output by addData. More... | |
bool | processIono |
If true, ionospheric data will be output by addData. More... | |
bool | processISC |
If true, inter-signal correction data will be output by addData. More... | |
bool | processTim |
If true, time offset data will be output by addData. More... | |
gnsstk::PNBMultiGNSSNavDataFactory::PNBMultiGNSSNavDataFactory | ( | ) |
Initialize myFactories.
Definition at line 45 of file PNBMultiGNSSNavDataFactory.cpp.
|
overridevirtual |
Process a PackedNavBits object, producing NavData objects as appropriate.
[in] | navIn | The PackedNavBits data to process. |
[out] | navOut | Any resulting NavData objects that were completed, usually as a result of adding navIn to the set of data. |
[in] | cadence | The data rate of the navigation messages being processed. If cadence < 0, The default values of NavData::msgLenSec will be used. Values >= 0 will override the default. |
Implements gnsstk::PNBNavDataFactory.
Definition at line 73 of file PNBMultiGNSSNavDataFactory.cpp.
|
static |
Add a new factory to the support map. The factory must be derived from PNBNavDataFactory but not an instance of this class.
[in] | navType | The nav message that the factory processes. |
[in] | fact | The PNBNavDataFactory object to add. |
Definition at line 91 of file PNBMultiGNSSNavDataFactory.cpp.
|
staticprotected |
Known PNB -> nav data factories, organized by navigation message type. Declared static so that the user doesn't have to add all the factories themselves.
Definition at line 119 of file PNBMultiGNSSNavDataFactory.cpp.
|
overridevirtual |
Reset the state of the data accumulator. Most PNBNavDataFactory child classes will maintain some state to assemble data prior to processing. This method is intended to be used to clear out that intermediate data to start from a fresh state, e.g. if you're loading discontinuous data.
Implements gnsstk::PNBNavDataFactory.
Definition at line 109 of file PNBMultiGNSSNavDataFactory.cpp.
|
overridevirtual |
Set the configuration parameters for this and any child PNBNavDataFactory objects.
[in] | ctrl | The configuration for the factory/factories. |
Reimplemented from gnsstk::PNBNavDataFactory.
Definition at line 128 of file PNBMultiGNSSNavDataFactory.cpp.
|
overridevirtual |
Indicate what nav message types the factories should be loading. This should be called before any addData() calls.
[in] | nmts | The set of nav message types to be processed by the factories. |
Reimplemented from gnsstk::PNBNavDataFactory.
Definition at line 63 of file PNBMultiGNSSNavDataFactory.cpp.
|
overridevirtual |
Set the factories' handling of valid and invalid navigation data. This should be called before any addData() calls.
[in] | nvt | The new nav data loading filter method. |
Reimplemented from gnsstk::PNBNavDataFactory.
Definition at line 53 of file PNBMultiGNSSNavDataFactory.cpp.
|
protected |
Keep a cached copy of the shared_ptr to the static PNBNavDataFactoryMap so that windows doesn't destroy it before destroying this.
Definition at line 136 of file PNBMultiGNSSNavDataFactory.hpp.