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

Code definitions. More...

Go to the source code of this file.

Classes

class  NAV::Code
 Enumerate for GNSS Codes. More...
 
struct  std::hash< NAV::Code >
 Hash function for Frequency (needed for unordered_map) More...
 

Functions

void NAV::from_json (const json &j, Code &data)
 Converts the provided json object into a link object.
 
Code NAV::operator& (const Code::Enum &lhs, const Code::Enum &rhs)
 Allows combining flags of the Code enum.
 
std::ostream & operator<< (std::ostream &os, const NAV::Code &obj)
 Stream insertion operator overload.
 
Code NAV::operator| (const Code::Enum &lhs, const Code::Enum &rhs)
 Allows combining flags of the Code enum.
 
bool NAV::ShowCodeSelector (const char *label, Code &code, const Frequency &filterFreq, bool singleSelect=false)
 Shows a ComboBox to select signal codes.
 
void NAV::to_json (json &j, const Code &data)
 Converts the provided link into a json object.
 

Variables

const Code NAV::Code_ALL
 
const Code NAV::Code_B1D_B1P_B1X
 B1 (data, pilot, combined)
 
const Code NAV::Code_B2I_B2Q_B2X
 B1I(OS), B1Q, combined.
 
const Code NAV::Code_B5D_B5P_B5X
 B2a (data, pilot, combined)
 
const Code NAV::Code_B6I_B6Q_B6X
 B3I, B3Q, combined.
 
const Code NAV::Code_B7D_B7P_B7Z
 B2b (data, pilot, combined)
 
const Code NAV::Code_B7I_B7Q_B7X
 B2I(OS), B2Q, combined.
 
const Code NAV::Code_B8D_B8P_B8X
 B2 (B2a+B2b) (data, pilot, combined)
 
const Code NAV::Code_Default
 Default selection for codes.
 
const Code NAV::Code_E1B_E1C_E1X
 OS (data, pilot, combined)
 
const Code NAV::Code_E5I_E5Q_E5X
 E5a (data, pilot, combined)
 
const Code NAV::Code_E6B_E6C_E6X
 E6 (data, pilot, combined)
 
const Code NAV::Code_E7I_E7Q_E7X
 E5b (data, pilot, combined)
 
const Code NAV::Code_E8I_E8Q_E8X
 E5 AltBOC (data, pilot, combined)
 
const Code NAV::Code_G1S_G1L_G1X
 L1C (data, pilot, combined)
 
const Code NAV::Code_G2S_G2L_G2X
 L2C-code (medium, long, combined)
 
const Code NAV::Code_G5I_G5Q_G5X
 L5 (data, pilot, combined)
 
const Code NAV::Code_I5B_I5C_I5X
 RS (data, pilot, combined)
 
const Code NAV::Code_I9B_I9C_I9X
 RS (data, pilot, combined)
 
const Code NAV::Code_J1S_J1L_J1X
 L1C (data, pilot, combined)
 
const Code NAV::Code_J2S_J2L_J2X
 L2C-code (medium, long, combined)
 
const Code NAV::Code_J5D_J5P_J5Z
 L5 (data, pilot, combined)
 
const Code NAV::Code_J5I_J5Q_J5X
 L5 (data, pilot, combined)
 
const Code NAV::Code_J6S_J6L_J6X
 LEX signal (short, long, combined)
 
const Code NAV::Code_R3I_R3Q_R3X
 L3 (data, pilot, combined)
 
const Code NAV::Code_R4A_R4B_R4X
 G1a (data, pilot, combined)
 
const Code NAV::Code_R6A_R6B_R6X
 G2a (data, pilot, combined)
 
const Code NAV::Code_S5I_S5Q_S5X
 L5 (data, pilot, combined)
 

Detailed Description

Code definitions.

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

Function Documentation

◆ from_json()

void NAV::from_json ( const json & j,
Code & 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&()

Code NAV::operator& ( const Code::Enum & lhs,
const Code::Enum & rhs )

Allows combining flags of the Code enum.

Parameters
[in]lhsLeft-hand side value.
[in]rhsRight-hand side value.
Returns
The binary ANDed value.

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const NAV::Code & 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|()

Code NAV::operator| ( const Code::Enum & lhs,
const Code::Enum & rhs )

Allows combining flags of the Code enum.

Parameters
[in]lhsLeft-hand side value.
[in]rhsRight-hand side value.
Returns
The binary ORed value.

◆ ShowCodeSelector()

bool NAV::ShowCodeSelector ( const char * label,
Code & code,
const Frequency & filterFreq,
bool singleSelect = false )

Shows a ComboBox to select signal codes.

Parameters
[in]labelLabel to show beside the combo box. This has to be a unique id for ImGui.
[in,out]codeReference to the code object to select
[in]filterFreqFrequencies to select codes for. Other Frequencies will be disabled.
[in]singleSelectIf true, only one code can be selected at a time

◆ to_json()

void NAV::to_json ( json & j,
const Code & 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

Variable Documentation

◆ Code_ALL

const Code NAV::Code_ALL

All codes set