0.2.0
Loading...
Searching...
No Matches
TimeEdit.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
18
19#include <nlohmann/json.hpp>
20using json = nlohmann::json;
21
22namespace NAV
23{
24namespace gui::widgets
25{
26
29{
31 enum class Format
32 {
33 YMDHMS,
35 COUNT,
36 };
37
40};
41
48bool TimeEdit(const char* str_id, InsTime& insTime, TimeEditFormat& timeEditFormat, float itemWidth = 170.0F);
49
53void to_json(json& j, const TimeEditFormat& timeEditFormat);
57void from_json(const json& j, TimeEditFormat& timeEditFormat);
58
59} // namespace gui::widgets
60
65
66} // namespace NAV
void from_json(const json &j, DynamicInputPins &obj, Node *node)
Converts the provided json object into a node object.
void to_json(json &j, const DynamicInputPins &obj)
Converts the provided object into json.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
The class is responsible for all time-related tasks.
const char * to_string(gui::widgets::PositionWithFrame::ReferenceFrame refFrame)
Converts the enum to a string.
bool TimeEdit(const char *str_id, InsTime &insTime, TimeEditFormat &timeEditFormat, float itemWidth=170.0F)
Inputs to edit an InsTime object.
Time System defintions.
@ GPST
GPS Time.
Definition TimeSystem.hpp:29
The class is responsible for all time-related tasks.
Definition InsTime.hpp:667
Time System defintions.
Definition TimeSystem.hpp:39
Time Edit format and system.
Definition TimeEdit.hpp:29
TimeSystem system
Time System.
Definition TimeEdit.hpp:39
Format format
Time format.
Definition TimeEdit.hpp:38
Format
Format to edit the time in.
Definition TimeEdit.hpp:32
@ COUNT
Amount of items in the enum.
@ YMDHMS
YearMonthDayHourMinuteSecond (UTC)
@ GPSWeekToW
GPS Week and TimeOfWeek.