17#include <fmt/format.h>
18#include <nlohmann/json.hpp>
19using json = nlohmann::json;
119#ifndef DOXYGEN_IGNORE
123struct fmt::formatter<
NAV::TemperatureModel> : fmt::formatter<std::string>
129 template<
typename FormatContext>
132 return fmt::formatter<std::string>::format(
NAV::to_string(data), ctx);
nlohmann::json json
json namespace
Temperature Model parameters.
double _constantTemperature
Temperature for the constant temperature model [K].
friend const char * to_string(const TemperatureModel &temperatureModel)
Converts the enum to a string.
friend bool ComboTemperatureModel(const char *label, TemperatureModel &temperatureModel)
Shows a ComboBox to select the temperature model.
TemperatureModel(Model model)
Constructor.
friend void from_json(const json &j, TemperatureModel &obj)
Converts the provided json object into a node object.
friend void to_json(json &j, const TemperatureModel &obj)
Converts the provided object into json.
double calcAbsoluteTemperature(double altitudeMSL) const
Calculates the absolute temperature.
Model
Available temperature Models.
@ None
No temperature model.
@ ISA
ICAO Standard Atmosphere.
@ COUNT
Amount of items in the enum.
friend constexpr bool operator==(const TemperatureModel &lhs, const TemperatureModel &rhs)
Equal compares Pin::Kind values.
Model _model
Selected model.
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 ComboTemperatureModel(const char *label, TemperatureModel &temperatureModel)
Shows a ComboBox to select the temperature model.
constexpr bool operator==(const Node::Kind &lhs, const Node::Kind &rhs)
Equal compares Node::Kind values.