0.2.0
|
Enumerate for GNSS Codes. More...
Public Member Functions | |
constexpr | Code ()=default |
Default constructor for an empty code. | |
constexpr | Code (const Set &set) |
Constructor from a biset. | |
Code (Enum e) | |
Constructor from a single code value. | |
Code (Frequency_ freq) | |
Constructor from a frequency. | |
Code (SatelliteSystem_ sys) | |
Constructor from a satellite system. | |
const char * | getDescription () const |
Returns a short description for the code. | |
Enum | getEnumValue () const |
Returns the enum value for the code (only one must be set) | |
Frequency | getFrequency () const |
Returns the frequency for the code. | |
operator bool () const | |
Implicit bool conversion operator. Allows if(...) | |
constexpr | operator Set () const |
std::bitset conversion operator | |
operator std::string () const | |
std::string conversion operator | |
Code & | operator&= (const Code &rhs) |
Allows combining flags of the Code enum. | |
Code & | operator&= (const Enum &rhs) |
Allows combining flags of the Code enum. | |
Code & | operator&= (const Frequency &rhs) |
Allows filtering Code with Frequency. | |
Code & | operator&= (const Frequency_ &rhs) |
Allows filtering Code with Frequency. | |
Code & | operator&= (const SatelliteSystem &rhs) |
Allows filtering Code with SatelliteSystem. | |
Code & | operator&= (const SatelliteSystem_ &rhs) |
Allows filtering Code with SatelliteSystem. | |
Code & | operator|= (const Code &rhs) |
Allows combining flags of the Code enum. | |
Code & | operator|= (const Enum &rhs) |
Allows combining flags of the Code enum. | |
Code & | operator|= (const Frequency &rhs) |
Allows filtering Code with Frequency. | |
Code & | operator|= (const Frequency_ &rhs) |
Allows filtering Code with Frequency. | |
Code & | operator|= (const SatelliteSystem &rhs) |
Allows filtering Code with SatelliteSystem. | |
Code & | operator|= (const SatelliteSystem_ &rhs) |
Allows filtering Code with SatelliteSystem. | |
Code | operator~ () const |
Allows negating flags of the Code enum. | |
Static Public Member Functions | |
static Code | fromFreqAttr (Frequency freq, char attribute) |
Generates a Code from frequency and attribute. | |
static std::vector< Code > | GetAll () |
Returns a list with all possible codes. | |
static const char * | GetCodeDescription (Code code) |
Returns a short description for the code. | |
static Enum | GetCodeEnumValue (Code code) |
Returns the enum value for the code (only one must be set) | |
static Frequency | GetCodeFequency (Code code) |
Returns the frequency for the code. | |
static bool | IsCodeCombined (Code first, Code second) |
Checks if the codes are part of a combined code. | |
Enumerate for GNSS Codes.
System | Band | Code | Description |
---|---|---|---|
GPS | L1 | L1C | C/A-code |
L1S, L1L, L1X | L1C (data, pilot, combined) | ||
L1P | P-code (unencrypted) | ||
L1W | Semicodeless P(Y) tracking (Z-tracking) | ||
L1Y | Y-code (with decryption) | ||
L1M | M-code | ||
L1N | codeless | ||
L2 | L2C | C/A-code | |
L2D | Semi-codeless P(Y) tracking (L1 C/A+(P2-P1)) | ||
L2S, L2L, L2X | L2C-code (medium, long, combined) | ||
L2P | P-code (unencrypted) | ||
L2W | Semicodeless P(Y) tracking (Z-tracking) | ||
L2Y | Y-code (with decryption) | ||
L2M | M-code | ||
L2N | codeless | ||
L5 | L5I, L5Q, L5X | L5 (data, pilot, combined) | |
Galileo | E1 | L1A | PRS signal |
L1B, L1C, L1X | OS (data, pilot, combined) | ||
L1Z | PRS + OS(data+pilot) | ||
E5a | L5I, L5Q, L5X | E5a (data, pilot, combined) | |
E6 | L6A | E6 PRS signal | |
L6B, L6C, L6X | E6 (data, pilot, combined) | ||
L6Z | E6 PRS + OS(data+pilot) | ||
E5b | L7I, L7Q, L7X | E5b (data, pilot, combined) | |
E5 | L8I, L8Q, L8X | E5 AltBOC (data, pilot, combined) | |
GLONASS | L1 | L1C | C/A-code |
L1P | P-code | ||
L2 | L2C | C/A-code | |
L2P | P-code | ||
L3 | L3I, L3Q, L3X | L3 (data, pilot, combined) | |
G1a | L4A, L4B, L4X | G1a (data, pilot, combined) | |
G2b | L6A, L6B, L6X | G2a (data, pilot, combined) | |
BeiDou (BDS-2/3) | B1 | L1D, L1P, L1X | B1 (data, pilot, combined) |
B1-2 | L2I, L2Q, L2X | B1I(OS), B1Q, combined | |
B2a | L5D, L5P, L5X | B2a (data, pilot, combined) | |
B3 | L6I, L6Q, L6X | B3I, B3Q, combined | |
L6A | B3A | ||
B2b | L7I, L7Q, L7X | BDS-2: B2I(OS), B2Q, combined | |
L7D, L7P, L7Z | BDS-3: data, pilot, combined | ||
B2 | L8D, L8P, L8X | B2 (B2a+B2b): data, pilot, combined | |
QZSS | L1 | L1C | C/A-code |
L1S, L1L, L1X | L1C (data, pilot, combined) | ||
L1Z | L1-SAIF signal | ||
L2 | L2S, L2L, L2X | L2C-code (medium, long, combined) | |
L5 | L5I, L5Q, L5X | L5 (data, pilot, combined) | |
L5D, L5P, L5Z | I, Q, combined | ||
L6 | L6S, L6L, L6X | LEX signal (short, long, combined) | |
L6E | L6E | ||
L6Z | L6(D+E) | ||
IRNSS/NavIC | L5 | L5A | SPS Signal |
L5B, L5C, L5X | RS (data, pilot, combined) | ||
S | L9A | SPS signal | |
L9B, L9C, L9X | RS (data, pilot, combined) | ||
SBAS | L1 | L1C | C/A-code |
L5 | L5I, L5Q, L5X | L5 (data, pilot, combined) |
anonymous enum |
Helper variables.
enum NAV::Code::Enum |
Enumeration of all Codes.
Enumerator | |
---|---|
None | None. |
G1C | GPS L1 - C/A-code. |
G1S | GPS L1 - L1C-D (data) |
G1L | GPS L1 - L1C-P (pilot) |
G1X | GPS L1 - L1C-(D+P) (combined) |
G1P | GPS L1 - P-code (unencrypted) |
G1W | GPS L1 - Semicodeless P(Y) tracking (Z-tracking) |
G1Y | GPS L1 - Y-code (with decryption) |
G1M | GPS L1 - M-code. |
G1N | GPS L1 - codeless. |
G2C | GPS L2 - C/A-code. |
G2D | GPS L2 - Semi-codeless P(Y) tracking (L1 C/A + (P2-P1)) |
G2S | GPS L2 - L2C(M) (medium) |
G2L | GPS L2 - L2C(L) (long) |
G2X | GPS L2 - L2C(M+L) (combined) |
G2P | GPS L2 - P-code (unencrypted) |
G2W | GPS L2 - Semicodeless P(Y) tracking (Z-tracking) |
G2Y | GPS L2 - Y-code (with decryption) |
G2M | GPS L2 - M-code. |
G2N | GPS L2 - codeless. |
G5I | GPS L5 - Data. |
G5Q | GPS L5 - Pilot. |
G5X | GPS L5 - Combined. |
E1A | GAL E1 - PRS signal. |
E1B | GAL E1 - OS (data) |
E1C | GAL E1 - OS (pilot) |
E1X | GAL E1 - OS(B+C) (combined) |
E1Z | GAL E1 - PRS + OS (data + pilot) |
E5I | GAL E5a - Data. |
E5Q | GAL E5a - Pilot. |
E5X | GAL E5a - Combined. |
E6A | GAL E6 - PRS signal. |
E6B | GAL E6 - Data. |
E6C | GAL E6 - Pilot. |
E6X | GAL E6 - Combined (B+C) |
E6Z | GAL E6 - PRS + OS (A+B+C) |
E7I | GAL E5b - Data. |
E7Q | GAL E5b - Pilot. |
E7X | GAL E5b - Combined. |
E8I | GAL E5(a+b) - AltBOC (data) |
E8Q | GAL E5(a+b) - AltBOC (pilot) |
E8X | GAL E5(a+b) - AltBOC (combined) |
R1C | GLO L1 - C/A-code. |
R1P | GLO L1 - P-code. |
R2C | GLO L2 - C/A-code. |
R2P | GLO L2 - P-code. |
R3I | GLO L3 - Data. |
R3Q | GLO L3 - Pilot. |
R3X | GLO L3 - Combined. |
R4A | GLO G1a - L1OCd (data) |
R4B | GLO G1a - L1OCp (pilot) |
R4X | GLO G1a - L1OCd+L1OCp (combined) |
R6A | GLO G2a - L2CSI (data) |
R6B | GLO G2a - L2OCp (pilot) |
R6X | GLO G2a - L2CSI+L2OCp (combined) |
B1D | BeiDou B1 - Data (D) |
B1P | BeiDou B1 - Pilot(P) |
B1X | BeiDou B1 - D+P. |
B2I | BeiDou B1-2 - B1I(OS) |
B2Q | BeiDou B1-2 - B1Q. |
B2X | BeiDou B1-2 - B1I(OS), B1Q, combined. |
B5D | BeiDou B2a - Data (D) |
B5P | BeiDou B2a - Pilot(P) |
B5X | BeiDou B2a - D+P. |
B6I | BeiDou B3 - B3I. |
B6Q | BeiDou B3 - B3Q. |
B6X | BeiDou B3 - B3I, B3Q, combined. |
B6A | BeiDou B3 - B3A. |
B7I | BeiDou B2b (BDS-2) - B2I(OS) |
B7Q | BeiDou B2b (BDS-2) - B2Q. |
B7X | BeiDou B2b (BDS-2) - B2I(OS), B2Q, combined. |
B7D | BeiDou B2b (BDS-3) - Data (D) |
B7P | BeiDou B2b (BDS-3) - Pilot(P) |
B7Z | BeiDou B2b (BDS-3) - D+P. |
B8D | BeiDou B2 (B2a+B2b) - Data (D) |
B8P | BeiDou B2 (B2a+B2b) - Pilot(P) |
B8X | BeiDou B2 (B2a+B2b) - D+P. |
J1C | QZSS L1 - C/A-code. |
J1S | QZSS L1 - L1C (data) |
J1L | QZSS L1 - L1C (pilot) |
J1X | QZSS L1 - L1C (combined) |
J1Z | QZSS L1 - L1-SAIF signal. |
J2S | QZSS L2 - L2C-code (medium) |
J2L | QZSS L2 - L2C-code (long) |
J2X | QZSS L2 - L2C-code (combined) |
J5I | QZSS L5 - Data. |
J5Q | QZSS L5 - Pilot. |
J5X | QZSS L5 - Combined. |
J5D | QZSS L5S - I. |
J5P | QZSS L5S - Q. |
J5Z | QZSS L5S - I+Q. |
J6S | QZSS L6 - L6D LEX signal (short) |
J6L | QZSS L6 - L6P LEX signal (long) |
J6X | QZSS L6 - L6(D+P) LEX signal (combined) |
J6E | QZSS L6 - L6E. |
J6Z | QZSS L6 - L6(D+E) |
I5A | IRNSS L5 - SPS Signal. |
I5B | IRNSS L5 - RS (data) |
I5C | IRNSS L5 - RS (pilot) |
I5X | IRNSS L5 - RS (combined) |
I9A | IRNSS S - SPS signal. |
I9B | IRNSS S - RS (data) |
I9C | IRNSS S - RS (pilot) |
I9X | IRNSS S - RS (combined) |
S1C | SBAS L1 - C/A-code. |
S5I | SBAS L5 - Data. |
S5Q | SBAS L5 - Pilot. |
S5X | SBAS L5 - Combined. |
|
inlineexplicitconstexpr |
Constructor from a biset.
[in] | set | Bitset with values to construct the Code from |
|
explicit |
Constructor from a satellite system.
[in] | sys | System to set all codes for |
|
explicit |
Constructor from a frequency.
[in] | freq | Frequency to set all codes for |
|
inline |
Constructor from a single code value.
[in] | e | Code enum value to construct the code from |
|
static |
Returns a short description for the code.
[in] | code | GNSS signal code |
Returns the enum value for the code (only one must be set)
code | GNSS signal code |
Returns the frequency for the code.
[in] | code | GNSS signal code |
Checks if the codes are part of a combined code.
[in] | first | First GNSS signal code |
[in] | second | Second GNSS signal code |
|
inlineexplicitconstexpr |
std::bitset conversion operator
|
explicit |
std::string conversion operator
Allows combining flags of the Code enum.
[in] | rhs | Right-hand side value. |
Allows combining flags of the Code enum.
[in] | rhs | Right-hand side value. |
Code & NAV::Code::operator&= | ( | const Frequency_ & | rhs | ) |
Code & NAV::Code::operator&= | ( | const SatelliteSystem & | rhs | ) |
Allows filtering Code with SatelliteSystem.
[in] | rhs | Right-hand side enum value. |
Code & NAV::Code::operator&= | ( | const SatelliteSystem_ & | rhs | ) |
Allows filtering Code with SatelliteSystem.
[in] | rhs | Right-hand side enum value. |
Allows combining flags of the Code enum.
[in] | rhs | Right-hand side value. |
Allows combining flags of the Code enum.
[in] | rhs | Right-hand side value. |
Code & NAV::Code::operator|= | ( | const Frequency_ & | rhs | ) |
Code & NAV::Code::operator|= | ( | const SatelliteSystem & | rhs | ) |
Allows filtering Code with SatelliteSystem.
[in] | rhs | Right-hand side enum value. |
Code & NAV::Code::operator|= | ( | const SatelliteSystem_ & | rhs | ) |
Allows filtering Code with SatelliteSystem.
[in] | rhs | Right-hand side enum value. |