Satellite System type. More...
Public Types | |
enum | Enum : uint8_t { Enum_GPS , Enum_GAL , Enum_GLO , Enum_BDS , Enum_QZSS , Enum_IRNSS , Enum_SBAS , Enum_COUNT , Enum_None } |
Satellite System enumeration with continuous range. Not usable as a mask. More... | |
Public Member Functions | |
std::optional< std::string > | getSatelliteInfo (uint16_t satNum) const |
Get additional information about the satellite if available. | |
std::vector< uint16_t > | getSatellites () const |
Get a list of satellites in the constellation. | |
TimeSystem | getTimeSystem () const |
Get the Time System of this Satellite System. | |
constexpr | operator bool ()=delete |
Prevent usage: if(...) | |
operator char () const | |
char conversion operator | |
constexpr | operator SatelliteSystem_ () const |
Allow switch(SatelliteSystem_(type)) and comparisons. | |
operator std::string () const | |
std::string conversion operator | |
constexpr | operator uint64_t () const |
int conversion operator | |
constexpr bool | operator< (const SatelliteSystem &rhs) const |
Less than comparison (needed for map) | |
constexpr SatelliteSystem & | operator= (SatelliteSystem_ v) |
Assignment operator from Value type. | |
constexpr | SatelliteSystem ()=default |
Default Constructor. | |
SatelliteSystem (Enum enumeration) | |
Implicit Constructor from Enum type. | |
constexpr | SatelliteSystem (SatelliteSystem_ type) |
Implicit Constructor from Value type. | |
char | toChar () const |
Returns the char representation of the object. | |
Enum | toEnumeration () const |
Returns a continuous enumeration of the object. | |
std::vector< SatelliteSystem > | toVector () const |
Get a vector representation of the specified Satellite Systems. | |
Static Public Member Functions | |
static SatelliteSystem | fromChar (char typeChar) |
Construct new object from char. | |
static SatelliteSystem | fromEnum (Enum enumeration) |
Constructs a new object from continuous enumeration. | |
static SatelliteSystem | fromString (const std::string &typeString) |
Construct new object from std::string. | |
static std::vector< SatelliteSystem > | GetAll () |
Returns a list with all possible satellite systems. | |
static std::optional< std::string > | GetSatelliteInfo (SatelliteSystem satSys, uint16_t satNum) |
Get additional information about the satellite if available. | |
static std::vector< uint16_t > | GetSatellitesForSatelliteSystem (SatelliteSystem satSys) |
Get a list of satellites in the constellation. | |
static TimeSystem | GetTimeSystemForSatelliteSystem (SatelliteSystem satSys) |
Get the Time System of the specified Satellite System. | |
static char | ToChar (SatelliteSystem satSys) |
Get char representation of the specified Satellite System. | |
static Enum | ToEnumeration (SatelliteSystem satSys) |
Get the continuous enumeration of the specified Satellite System. | |
static std::vector< SatelliteSystem > | ToVector (SatelliteSystem satSys) |
Get a vector representation of the specified Satellite Systems. | |
Private Attributes | |
SatelliteSystem_ | value |
Internal value. | |
Friends | |
constexpr bool | operator== (const SatelliteSystem &lhs, const SatelliteSystem &rhs) |
Equal compares values. | |
Satellite System type.
Definition at line 43 of file SatelliteSystem.hpp.
enum NAV::SatelliteSystem::Enum : uint8_t |
Satellite System enumeration with continuous range. Not usable as a mask.
Enumerator | |
---|---|
Enum_GPS | Global Positioning System. |
Enum_GAL | Galileo. |
Enum_GLO | Globalnaja nawigazionnaja sputnikowaja sistema (GLONASS) |
Enum_BDS | Beidou. |
Enum_QZSS | Quasi-Zenith Satellite System. |
Enum_IRNSS | Indian Regional Navigation Satellite System. |
Enum_SBAS | Satellite Based Augmentation System. |
Enum_COUNT | Count variable. |
Enum_None | No Satellite system. |
Definition at line 46 of file SatelliteSystem.hpp.
|
constexprdefault |
Default Constructor.
|
inlineconstexpr |
Implicit Constructor from Value type.
[in] | type | Value type to construct from |
Definition at line 64 of file SatelliteSystem.hpp.
|
inline |
Implicit Constructor from Enum type.
[in] | enumeration | Enum type to construct from |
Definition at line 70 of file SatelliteSystem.hpp.
|
static |
Construct new object from char.
[in] | typeChar | Character representation of the satellite system |
Definition at line 55 of file SatelliteSystem.cpp.
|
static |
Constructs a new object from continuous enumeration.
[in] | enumeration | Continuous enumeration of the satellite system |
Definition at line 80 of file SatelliteSystem.cpp.
|
static |
Construct new object from std::string.
[in] | typeString | String representation of the satellite system |
Definition at line 21 of file SatelliteSystem.cpp.
|
static |
Returns a list with all possible satellite systems.
Definition at line 306 of file SatelliteSystem.cpp.
|
static |
Get additional information about the satellite if available.
Definition at line 209 of file SatelliteSystem.cpp.
|
nodiscard |
Get additional information about the satellite if available.
[in] | satNum | Satellite Number |
Definition at line 247 of file SatelliteSystem.cpp.
|
nodiscard |
Get a list of satellites in the constellation.
Definition at line 204 of file SatelliteSystem.cpp.
|
static |
Get a list of satellites in the constellation.
[in] | satSys | Satellite System to get the list for |
Definition at line 173 of file SatelliteSystem.cpp.
|
nodiscard |
Get the Time System of this Satellite System.
Definition at line 168 of file SatelliteSystem.cpp.
|
static |
Get the Time System of the specified Satellite System.
[in] | satSys | Satellite System to get the time system for |
Definition at line 144 of file SatelliteSystem.cpp.
|
explicitconstexprdelete |
Prevent usage: if(...)
|
explicit |
char conversion operator
Definition at line 119 of file SatelliteSystem.cpp.
|
inlineexplicitconstexpr |
Allow switch(SatelliteSystem_(type)) and comparisons.
Definition at line 103 of file SatelliteSystem.hpp.
|
explicit |
std::string conversion operator
Definition at line 105 of file SatelliteSystem.cpp.
|
inlineexplicitconstexpr |
int conversion operator
Definition at line 109 of file SatelliteSystem.hpp.
|
inlineconstexpr |
Less than comparison (needed for map)
[in] | rhs | Right hand side of the operator |
Definition at line 100 of file SatelliteSystem.hpp.
|
inlineconstexpr |
Assignment operator from Value type.
[in] | v | Value type to construct from |
Definition at line 89 of file SatelliteSystem.hpp.
|
static |
Get char representation of the specified Satellite System.
[in] | satSys | Satellite System to get the continuous enumeration for |
Definition at line 281 of file SatelliteSystem.cpp.
|
nodiscard |
Returns the char representation of the object.
Definition at line 286 of file SatelliteSystem.cpp.
|
static |
Get the continuous enumeration of the specified Satellite System.
[in] | satSys | Satellite System to get the continuous enumeration for |
Definition at line 252 of file SatelliteSystem.cpp.
|
nodiscard |
Returns a continuous enumeration of the object.
Definition at line 276 of file SatelliteSystem.cpp.
|
static |
Get a vector representation of the specified Satellite Systems.
[in] | satSys | Satellite System to get the vector for |
Definition at line 291 of file SatelliteSystem.cpp.
|
nodiscard |
Get a vector representation of the specified Satellite Systems.
Definition at line 301 of file SatelliteSystem.cpp.
|
friend |
Equal compares values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
Definition at line 347 of file SatelliteSystem.hpp.
|
private |
Internal value.
Definition at line 170 of file SatelliteSystem.hpp.