17 _fields.append({fact.factGroupName, fact.factName});
30 for (
const Field& field : _fields) {
36 const QMap<QString, FactGroup*>& factGroups = vehicle->
factGroups();
37 for (
auto it = factGroups.cbegin(); it != factGroups.cend(); ++it) {
38 if (it.key().compare(field.factGroupName, Qt::CaseInsensitive) == 0) {
39 factGroup = it.value();
44 if (!factGroup || !factGroup->
factExists(field.factName)) {
47 const Fact*
const fact = factGroup->
getFact(field.factName);
Used to group Facts together into an object hierarachy.
const QMap< QString, FactGroup * > & factGroups() const
Q_INVOKABLE Fact * getFact(const QString &name) const
Q_INVOKABLE bool factExists(const QString &name) const
@ return true: if the fact exists in the group
static QList< LayoutFact > layoutFacts(const QString &settingsGroup)
A Fact is used to hold a single value within the system.
QString cookedUnits() const
QString shortDescription() const
QString cookedValueString() const
static const QString telemetryBarSettingsGroup
static constexpr const char * vehicleFactGroupName
static MultiVehicleManager * instance()
Vehicle * activeVehicle() const
std::optional< QList< Value > > read() const
A Fact a layout shows, named as InstrumentValueData names it.