0.2.0
Loading...
Searching...
No Matches
NAV::TimeSystem Class Reference

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 TimeSystemoperator= (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)
 

Detailed Description

Time System defintions.

Member Enumeration Documentation

◆ TimeSystemEnum

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.

Constructor & Destructor Documentation

◆ TimeSystem() [1/2]

constexpr NAV::TimeSystem::TimeSystem ( TimeSystem_ type)
inlineconstexpr

Implicit Constructor from Value type.

Parameters
[in]typeValue type to construct from

◆ TimeSystem() [2/2]

constexpr NAV::TimeSystem::TimeSystem ( TimeSystemEnum timeSystem)
inlineconstexpr

Constructor

Parameters
[in]timeSystemTime system enum value

Member Function Documentation

◆ fromString()

static TimeSystem NAV::TimeSystem::fromString ( const std::string & typeString)
inlinestatic

Construct new object from std::string.

Parameters
[in]typeStringString representation of the TimeSystem

◆ GetTimeSystemEnumValue()

static TimeSystemEnum NAV::TimeSystem::GetTimeSystemEnumValue ( TimeSystem timeSystem)
static

Returns the enum value (only one must be set)

Parameters
timeSystemTime system

◆ operator int()

constexpr NAV::TimeSystem::operator int ( ) const
inlineexplicitconstexpr

int conversion operator

Returns
A int representation of the type

◆ operator std::string()

NAV::TimeSystem::operator std::string ( ) const
inlineexplicit

std::string conversion operator

Returns
A std::string representation of the type

◆ operator=()

constexpr TimeSystem & NAV::TimeSystem::operator= ( TimeSystem_ v)
inlineconstexpr

Assignment operator from Value type.

Parameters
[in]vValue type to construct from
Returns
The Type type from the value type

The documentation for this class was generated from the following file: