0.2.0
|
Time System defintions. More...
Public Types | |
enum class | TimeSystemEnum { TimeSys_None , UTC , GPST , GLNT , GST , BDT , QZSST , IRNSST , COUNT } |
Continuous enum for the time systems. More... | |
Public Member Functions | |
TimeSystemEnum | getEnumValue () const |
Returns the enum value (only one must be set) | |
constexpr | operator bool ()=delete |
Prevent usage: if(...) | |
constexpr | operator int () const |
int conversion operator | |
operator std::string () const | |
std::string conversion operator | |
constexpr | operator TimeSystem_ () const |
Allow switch(TimeSystem_(type)) and comparisons. | |
constexpr TimeSystem & | operator= (TimeSystem_ v) |
Assignment operator from Value type. | |
constexpr | TimeSystem ()=default |
Default Constructor. | |
constexpr | TimeSystem (TimeSystem_ type) |
Implicit Constructor from Value type. | |
constexpr | TimeSystem (TimeSystemEnum timeSystem) |
constexpr const char * | toString () const |
Converts the time system into a string. | |
Static Public Member Functions | |
static TimeSystem | fromString (const std::string &typeString) |
Construct new object from std::string. | |
static TimeSystemEnum | GetTimeSystemEnumValue (TimeSystem timeSystem) |
Returns the enum value (only one must be set) | |
Time System defintions.
|
strong |
Continuous enum for the time systems.
Enumerator | |
---|---|
TimeSys_None | No Time system. |
UTC | Coordinated Universal Time. |
GPST | GPS Time. |
GLNT | GLONASS Time (GLONASST) |
GST | Galileo System Time. |
BDT | BeiDou Time. |
QZSST | Quasi-Zenith Satellite System Time. |
IRNSST | Indian Regional Navigation Satellite System Time. |
COUNT | Amount of items in the enum. |
|
inlineconstexpr |
Implicit Constructor from Value type.
[in] | type | Value type to construct from |
|
inlineconstexpr |
Constructor
[in] | timeSystem | Time system enum value |
|
inlinestatic |
Construct new object from std::string.
[in] | typeString | String representation of the TimeSystem |
|
static |
Returns the enum value (only one must be set)
timeSystem | Time system |
|
inlineexplicitconstexpr |
int conversion operator
|
inlineexplicit |
std::string conversion operator
|
inlineconstexpr |
Assignment operator from Value type.
[in] | v | Value type to construct from |