29 std::string description;
34 DisplayValue(
int size, std::string description =
"Output value:", std::string format =
"{:4.2}", std::string unit =
"",
double multiplier = 1.0)
36 this->description = description;
37 this->format = format;
39 this->multiplier = multiplier;
63 std::vector<std::string>
FormatLines(
const double*
const vals)
const;
69 std::size_t
NumLines()
const {
return m_valueSpec.size(); }
72 std::vector<DisplayValue> m_valueSpec;
Formats the lines Trawl/ValuesDisplay shows on the HUD, one per signal.
Definition ValuesDisplayBase.h:22
static constexpr int kMaxElements
The most elements a signal can have (a format may refer to elements 0..kMaxElements-1).
Definition ValuesDisplayBase.h:25
std::size_t NumLines() const
Definition ValuesDisplayBase.h:69
std::vector< std::string > FormatLines(const double *const vals) const
ValuesDisplayBase(std::vector< DisplayValue > valueSpec)
Definition ValuesDisplayBase.h:28