0.2.0
|
Time System defintions. More...
Go to the source code of this file.
Classes | |
struct | std::hash< NAV::TimeSystem > |
Hash function for TimeSystem (needed for unordered_map) More... | |
class | NAV::TimeSystem |
Time System defintions. More... | |
Typedefs | |
using | json |
json namespace | |
Enumerations | |
enum | NAV::TimeSystem_ { NAV::TimeSys_None , NAV::UTC , NAV::GPST , NAV::GLNT , NAV::GST , NAV::BDT , NAV::QZSST , NAV::IRNSST } |
List of all time systems. More... | |
Functions | |
bool | NAV::ComboTimeSystem (const char *label, TimeSystem &timeSystem) |
Shows a ComboBox to select the time system. | |
void | NAV::from_json (const json &j, TimeSystem &timeSystem) |
Converts the provided json object into a TimeSystem. | |
constexpr bool | NAV::operator!= (const TimeSystem &lhs, const TimeSystem &rhs) |
Inequal compares values. | |
constexpr bool | NAV::operator!= (const TimeSystem &lhs, const TimeSystem_ &rhs) |
Inequal compares values. | |
constexpr bool | NAV::operator!= (const TimeSystem_ &lhs, const TimeSystem &rhs) |
Inequal compares values. | |
constexpr TimeSystem | NAV::operator& (TimeSystem lhs, TimeSystem rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem | NAV::operator& (TimeSystem lhs, TimeSystem_ rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem | NAV::operator& (TimeSystem_ lhs, TimeSystem rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem_ | NAV::operator& (TimeSystem_ lhs, TimeSystem_ rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem & | NAV::operator&= (TimeSystem &lhs, const TimeSystem &rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem & | NAV::operator&= (TimeSystem &lhs, const TimeSystem_ &rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem_ & | NAV::operator&= (TimeSystem_ &lhs, const TimeSystem &rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem_ & | NAV::operator&= (TimeSystem_ &lhs, const TimeSystem_ &rhs) |
Allows combining flags of the TimeSystem enum. | |
std::ostream & | operator<< (std::ostream &os, const NAV::TimeSystem &obj) |
Stream insertion operator overload. | |
constexpr bool | NAV::operator== (const TimeSystem &lhs, const TimeSystem &rhs) |
Equal compares values. | |
constexpr bool | NAV::operator== (const TimeSystem &lhs, const TimeSystem_ &rhs) |
Equal compares values. | |
constexpr bool | NAV::operator== (const TimeSystem_ &lhs, const TimeSystem &rhs) |
Equal compares values. | |
constexpr TimeSystem | NAV::operator| (TimeSystem lhs, TimeSystem rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem | NAV::operator| (TimeSystem lhs, TimeSystem_ rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem | NAV::operator| (TimeSystem_ lhs, TimeSystem rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem_ | NAV::operator| (TimeSystem_ lhs, TimeSystem_ rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem & | NAV::operator|= (TimeSystem &lhs, const TimeSystem &rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem & | NAV::operator|= (TimeSystem &lhs, const TimeSystem_ &rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem_ & | NAV::operator|= (TimeSystem_ &lhs, const TimeSystem &rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem_ & | NAV::operator|= (TimeSystem_ &lhs, const TimeSystem_ &rhs) |
Allows combining flags of the TimeSystem enum. | |
constexpr TimeSystem | NAV::operator~ (TimeSystem rhs) |
Allows negating flags of the TimeSystem enum. | |
constexpr TimeSystem | NAV::operator~ (TimeSystem_ rhs) |
Allows negating flags of the TimeSystem enum. | |
void | NAV::to_json (json &j, const TimeSystem &timeSystem) |
Converts the provided TimeSystem into a json object. | |
const char * | NAV::to_string (TimeSystem::TimeSystemEnum timeSystem) |
Converts the enum to a string. | |
Time System defintions.
enum NAV::TimeSystem_ |
bool NAV::ComboTimeSystem | ( | const char * | label, |
TimeSystem & | timeSystem ) |
Shows a ComboBox to select the time system.
[in] | label | Label to show beside the combo box. This has to be a unique id for ImGui. |
[in] | timeSystem | Reference to the time system to select |
void NAV::from_json | ( | const json & | j, |
TimeSystem & | timeSystem ) |
Converts the provided json object into a TimeSystem.
[in] | j | Json object with the time system |
[out] | timeSystem | TimeSystem to return |
|
constexpr |
Inequal compares values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
|
constexpr |
Inequal compares values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
|
constexpr |
Inequal compares values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
std::ostream & operator<< | ( | std::ostream & | os, |
const NAV::TimeSystem & | obj ) |
Stream insertion operator overload.
[in,out] | os | Output stream object to stream the time into |
[in] | obj | Object to print |
|
constexpr |
Equal compares values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
|
constexpr |
Equal compares values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
|
constexpr |
Equal compares values.
[in] | lhs | Left-hand side of the operator |
[in] | rhs | Right-hand side of the operator |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows combining flags of the TimeSystem enum.
[in] | lhs | Left-hand side enum value. |
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows negating flags of the TimeSystem enum.
[in] | rhs | Right-hand side enum value. |
|
constexpr |
Allows negating flags of the TimeSystem enum.
[in] | rhs | Right-hand side enum value. |
void NAV::to_json | ( | json & | j, |
const TimeSystem & | timeSystem ) |
Converts the provided TimeSystem into a json object.
[out] | j | Return Json object |
[in] | timeSystem | TimeSystem to convert |
const char * NAV::to_string | ( | TimeSystem::TimeSystemEnum | timeSystem | ) |
Converts the enum to a string.
[in] | timeSystem | Enum value to convert into text |