36 j = std::string(timeSystem);
64 return os << fmt::format(
"{}", obj);
Combo representing an enumeration.
nlohmann::json json
json namespace
std::ostream & operator<<(std::ostream &os, const NAV::TimeSystem &obj)
Stream insertion operator overload.
TimeSystemEnum
Continuous enum for the time systems.
@ IRNSST
Indian Regional Navigation Satellite System Time.
@ GST
Galileo System Time.
@ UTC
Coordinated Universal Time.
@ TimeSys_None
No Time system.
@ GLNT
GLONASS Time (GLONASST)
@ QZSST
Quasi-Zenith Satellite System Time.
static TimeSystem fromString(const std::string &typeString)
Construct new object from std::string.
TimeSystem_ value
Internal value.
TimeSystemEnum getEnumValue() const
Returns the enum value (only one must be set)
constexpr const char * toString() const
Converts the time system into a string.
void to_json(json &j, const Node &node)
Converts the provided node into a json object.
const char * to_string(gui::widgets::PositionWithFrame::ReferenceFrame refFrame)
Converts the enum to a string.
void from_json(const json &j, Node &node)
Converts the provided json object into a node object.
bool ComboTimeSystem(const char *label, TimeSystem &timeSystem)
Shows a ComboBox to select the time system.