Public Member Functions | List of all members
TestFactory Class Reference

Detailed Description

Expose NavDataFactory protected members.

Fake factory used for testing addFactory.

Definition at line 112 of file MultiFormatNavDataFactory_T.cpp.

Inheritance diagram for TestFactory:
Inheritance graph
[legend]

Public Member Functions

bool addDataSource (const std::string &source) override
 
bool addDataSource (const std::string &source) override
 
gnsstk::NavMessageMapgetData ()
 
std::string getFactoryFormats () const override
 Return a comma-separated list of formats supported by this factory. More...
 
std::string getFactoryFormats () const override
 Return a comma-separated list of formats supported by this factory. More...
 
gnsstk::NavMessageTypeSet getTypeFilter () const
 
gnsstk::NavMessageTypeSet getTypeFilter () const
 
gnsstk::NavMessageTypeSet getTypeFilter () const
 
gnsstk::NavValidityType getValidityFilter () const
 
gnsstk::NavValidityType getValidityFilter () const
 
gnsstk::NavValidityType getValidityFilter () const
 
 TestFactory ()
 
 TestFactory ()
 
- Public Member Functions inherited from gnsstk::NavDataFactoryWithStore
bool addNavData (const NavDataPtr &nd)
 
bool addNavData (const NavDataPtr &nd, NavMessageMap &navMap, NavNearMessageMap &navNearMap, OffsetCvtMap &ofsMap)
 
void clear () override
 Remove all data from the internal store. More...
 
virtual size_t count (const NavMessageID &nmid) const
 
virtual size_t count (const SatID &satID, NavMessageType nmt=NavMessageType::Unknown) const
 
virtual size_t count (NavMessageType nmt) const
 
virtual size_t count (SatelliteSystem sys, NavMessageType nmt=NavMessageType::Unknown) const
 
void dump (std::ostream &s, DumpDetail dl) const override
 
void edit (const CommonTime &fromTime, const CommonTime &toTime) override
 
void edit (const CommonTime &fromTime, const CommonTime &toTime, const NavSatelliteID &satID) override
 
void edit (const CommonTime &fromTime, const CommonTime &toTime, const NavSignalID &signal) override
 
bool find (const NavMessageID &nmid, const CommonTime &when, NavDataPtr &navOut, SVHealth xmitHealth, NavValidityType valid, NavSearchOrder order) override
 
NavMessageIDSet getAvailableMsgs (const CommonTime &fromTime, const CommonTime &toTime) const override
 
NavSatelliteIDSet getAvailableSats (const CommonTime &fromTime, const CommonTime &toTime) const override
 
NavSatelliteIDSet getAvailableSats (NavMessageType nmt, const CommonTime &fromTime, const CommonTime &toTime) const override
 
CommonTime getFinalTime () const override
 
CommonTime getFirstTime (const SatID &sat) const
 
std::set< SatIDgetIndexSet (const CommonTime &fromTime, const CommonTime &toTime) const
 
std::set< SatIDgetIndexSet (NavMessageType nmt, const CommonTime &fromTime, const CommonTime &toTime) const
 
CommonTime getInitialTime () const override
 
CommonTime getLastTime (const SatID &sat) const
 
const NavMapgetNavMap (const NavMessageID &nmid) const
 
const NavMessageMapgetNavMessageMap () const
 Get read-only access to the nav data map (User priority). More...
 
const NavNearMessageMapgetNavNearMessageMap () const
 Get read-only access to the nav data map (Nearest priority). More...
 
bool getOffset (TimeSystem fromSys, TimeSystem toSys, const CommonTime &when, NavDataPtr &offset, SVHealth xmitHealth=SVHealth::Any, NavValidityType valid=NavValidityType::ValidOnly) override
 
const OffsetCvtMapgetTimeOffsetMap () const
 Get read-only access to the time offset map. More...
 
 NavDataFactoryWithStore ()
 Initialize internal data. More...
 
virtual size_t numSatellites () const
 Return the number of distinct signals including PRN, in the data. More...
 
virtual size_t numSignals () const
 Return the number of distinct signals (ignoring PRN) in the data. More...
 
virtual size_t size () const
 Return the number of nav messages in data. More...
 
virtual ~NavDataFactoryWithStore ()
 Clean up. More...
 
- Public Member Functions inherited from gnsstk::NavDataFactory
virtual void addTypeFilter (NavMessageType nmt)
 
virtual void clearTypeFilter ()
 
virtual std::string getClassName () const
 Returns the fully-qualified class name. Used for debugging. More...
 
std::set< SatIDgetIndexSet (const CommonTime &fromTime, const CommonTime &toTime) const
 
std::set< SatIDgetIndexSet (NavMessageType nmt, const CommonTime &fromTime, const CommonTime &toTime) const
 
NavMessageTypeSet getTypeFilter () const
 
virtual bool isPresent (const NavMessageID &nmid, const CommonTime &fromTime, const CommonTime &toTime)
 
virtual bool isTypePresent (NavMessageType nmt, const NavSatelliteID &satID, const CommonTime &fromTime, const CommonTime &toTime)
 
 NavDataFactory ()
 
virtual void setControl (const FactoryControl &ctrl)
 
virtual void setTypeFilter (const NavMessageTypeSet &nmts)
 
virtual void setValidityFilter (NavValidityType nvt)
 
virtual ~NavDataFactory ()
 Clean up. More...
 

Additional Inherited Members

- Public Types inherited from gnsstk::NavDataFactoryWithStore
typedef std::map< TimeCvtKey, OffsetEpochMapOffsetCvtMap
 Map from the time system conversion pair to the conversion objects. More...
 
typedef std::map< CommonTime, OffsetMapOffsetEpochMap
 
typedef std::map< NavSatelliteID, NavDataPtrOffsetMap
 
- Public Attributes inherited from gnsstk::NavDataFactory
NavSignalSet supportedSignals
 
- Protected Member Functions inherited from gnsstk::NavDataFactoryWithStore
virtual bool findNearest (const NavMessageID &nmid, const CommonTime &when, NavDataPtr &navData, SVHealth xmitHealth, NavValidityType valid)
 
virtual bool findUser (const NavMessageID &nmid, const CommonTime &when, NavDataPtr &navData, SVHealth xmitHealth, NavValidityType valid)
 
bool matchHealth (NavData *ndp, SVHealth xmitHealth)
 
bool updateInitialFinal (const CommonTime &begin, const CommonTime &end)
 
bool validityCheck (const NavDataPtr &ndp, NavValidityType valid, SVHealth xmitHealth, const CommonTime &when)
 
bool validityCheck (const NavMap::iterator &ti, NavMap &nm, NavValidityType valid, SVHealth xmitHealth, const CommonTime &when)
 
- Protected Attributes inherited from gnsstk::NavDataFactoryWithStore
NavMessageMap data
 Internal storage of navigation data for User searches. More...
 
CommonTime finalTime
 Store the latest applicable orbit time here, by addNavData. More...
 
std::map< SatID, std::pair< CommonTime, CommonTime > > firstLastMap
 Map subject satellite ID to time stamp pair (oldest,newest). More...
 
CommonTime initialTime
 Store the earliest applicable orbit time here, by addNavData. More...
 
NavNearMessageMap nearestData
 Internal storage of navigation data for Nearest searches. More...
 
OffsetCvtMap offsetData
 
- Protected Attributes inherited from gnsstk::NavDataFactory
FactoryControl factControl
 Configuration for the behavior of this factory. More...
 
NavValidityType navValidity
 
NavMessageTypeSet procNavTypes
 

Constructor & Destructor Documentation

◆ TestFactory() [1/2]

TestFactory::TestFactory ( )
inline

Definition at line 87 of file NavLibrary_T.cpp.

◆ TestFactory() [2/2]

TestFactory::TestFactory ( )
inline

Definition at line 52 of file NavTimeSystemConverter_T.cpp.

Member Function Documentation

◆ addDataSource() [1/2]

bool TestFactory::addDataSource ( const std::string &  source)
inlineoverridevirtual

Add a data source for this factory. This could be a file name, an IP address and port, or something else entirely, depending on the factory implementation. This method is declared here so that NavDataFactoryPtr objects can be set up without having to do any casting of pointers.

Parameters
[in]sourceA string describing the source of data for the factory.
Returns
true If the factory was able to process the data in source.

Implements gnsstk::NavDataFactory.

Definition at line 79 of file NavTimeSystemConverter_T.cpp.

◆ addDataSource() [2/2]

bool TestFactory::addDataSource ( const std::string &  source)
inlineoverridevirtual

Add a data source for this factory. This could be a file name, an IP address and port, or something else entirely, depending on the factory implementation. This method is declared here so that NavDataFactoryPtr objects can be set up without having to do any casting of pointers.

Parameters
[in]sourceA string describing the source of data for the factory.
Returns
true If the factory was able to process the data in source.

Implements gnsstk::NavDataFactory.

Definition at line 114 of file NavLibrary_T.cpp.

◆ getData()

gnsstk::NavMessageMap& TestFactory::getData ( )
inline

Definition at line 115 of file MultiFormatNavDataFactory_T.cpp.

◆ getFactoryFormats() [1/2]

std::string TestFactory::getFactoryFormats ( ) const
inlineoverridevirtual

Return a comma-separated list of formats supported by this factory.

Implements gnsstk::NavDataFactory.

Definition at line 81 of file NavTimeSystemConverter_T.cpp.

◆ getFactoryFormats() [2/2]

std::string TestFactory::getFactoryFormats ( ) const
inlineoverridevirtual

Return a comma-separated list of formats supported by this factory.

Implements gnsstk::NavDataFactory.

Definition at line 116 of file NavLibrary_T.cpp.

◆ getTypeFilter() [1/3]

gnsstk::NavMessageTypeSet TestFactory::getTypeFilter ( ) const
inline

Definition at line 77 of file NavTimeSystemConverter_T.cpp.

◆ getTypeFilter() [2/3]

gnsstk::NavMessageTypeSet TestFactory::getTypeFilter ( ) const
inline

Definition at line 112 of file NavLibrary_T.cpp.

◆ getTypeFilter() [3/3]

gnsstk::NavMessageTypeSet TestFactory::getTypeFilter ( ) const
inline

Definition at line 119 of file MultiFormatNavDataFactory_T.cpp.

◆ getValidityFilter() [1/3]

gnsstk::NavValidityType TestFactory::getValidityFilter ( ) const
inline

Definition at line 75 of file NavTimeSystemConverter_T.cpp.

◆ getValidityFilter() [2/3]

gnsstk::NavValidityType TestFactory::getValidityFilter ( ) const
inline

Definition at line 110 of file NavLibrary_T.cpp.

◆ getValidityFilter() [3/3]

gnsstk::NavValidityType TestFactory::getValidityFilter ( ) const
inline

Definition at line 117 of file MultiFormatNavDataFactory_T.cpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:43