0.2.0
Loading...
Searching...
No Matches
SatelliteIdentifier.hpp File Reference

Structs identifying a unique satellite. More...

Go to the source code of this file.

Classes

struct  std::hash< NAV::SatId >
 Hash function for SatId (needed for unordered_map) More...
 
struct  std::hash< NAV::SatSigId >
 Hash function for SatSigId (needed for unordered_map) More...
 
struct  NAV::SatId
 Identifies a satellite (satellite system and number) More...
 
struct  NAV::SatSigId
 Identifies a satellite signal (satellite frequency and number) More...
 

Typedefs

using json
 json namespace
 

Functions

void NAV::from_json (const json &j, SatId &data)
 Converts the provided json object into a link object.
 
void NAV::from_json (const json &j, SatSigId &data)
 Converts the provided json object into a link object.
 
std::ostream & operator<< (std::ostream &os, const NAV::SatId &obj)
 Stream insertion operator overload.
 
std::ostream & operator<< (std::ostream &os, const NAV::SatSigId &obj)
 Stream insertion operator overload.
 
bool NAV::ShowSatelliteSelector (const char *label, SatId &satellite, SatelliteSystem filterSys=SatSys_All, bool displayOnlyNumber=false)
 Shows a ComboBox to select a single satellite.
 
bool NAV::ShowSatelliteSelector (const char *label, std::vector< SatId > &satellites, SatelliteSystem filterSys=SatSys_All, bool displayOnlyNumber=false)
 Shows a ComboBox to select satellites.
 
void NAV::to_json (json &j, const SatId &data)
 Converts the provided link into a json object.
 
void NAV::to_json (json &j, const SatSigId &data)
 Converts the provided link into a json object.
 

Detailed Description

Structs identifying a unique satellite.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2022-04-29

Function Documentation

◆ from_json() [1/2]

void NAV::from_json ( const json & j,
SatId & data )

Converts the provided json object into a link object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ from_json() [2/2]

void NAV::from_json ( const json & j,
SatSigId & data )

Converts the provided json object into a link object.

Parameters
[in]jJson object with the needed values
[out]dataObject to fill from the json

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream & os,
const NAV::SatId & obj )

Stream insertion operator overload.

Parameters
[in,out]osOutput stream object to stream the time into
[in]objObject to print
Returns
Returns the output stream object in order to chain stream insertions

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream & os,
const NAV::SatSigId & obj )

Stream insertion operator overload.

Parameters
[in,out]osOutput stream object to stream the time into
[in]objObject to print
Returns
Returns the output stream object in order to chain stream insertions

◆ ShowSatelliteSelector() [1/2]

bool NAV::ShowSatelliteSelector ( const char * label,
SatId & satellite,
SatelliteSystem filterSys = SatSys_All,
bool displayOnlyNumber = false )

Shows a ComboBox to select a single satellite.

Parameters
[in]labelLabel to show beside the combo box. This has to be a unique id for ImGui.
[in,out]satelliteReference to the SatId to select
[in]filterSysEnable/Disable GUI elements according to this filter
[in]displayOnlyNumberDisplay only the number, not the system

◆ ShowSatelliteSelector() [2/2]

bool NAV::ShowSatelliteSelector ( const char * label,
std::vector< SatId > & satellites,
SatelliteSystem filterSys = SatSys_All,
bool displayOnlyNumber = false )

Shows a ComboBox to select satellites.

Parameters
[in]labelLabel to show beside the combo box. This has to be a unique id for ImGui.
[in,out]satellitesReference to the SatId vector to select
[in]filterSysEnable/Disable GUI elements according to this filter
[in]displayOnlyNumberDisplay only the number, not the system

◆ to_json() [1/2]

void NAV::to_json ( json & j,
const SatId & data )

Converts the provided link into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataData to convert into json

◆ to_json() [2/2]

void NAV::to_json ( json & j,
const SatSigId & data )

Converts the provided link into a json object.

Parameters
[out]jJson object which gets filled with the info
[in]dataObject to convert into json