QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FactGroupWithId Class Reference

#include <FactGroupWithId.h>

+ Inheritance diagram for FactGroupWithId:
+ Collaboration diagram for FactGroupWithId:

Public Member Functions

 FactGroupWithId (int updateRateMsecs, const QString &metaDataFile, QObject *parent=nullptr, bool ignoreCamelCase=false)
 
Factid ()
 

Protected Attributes

Fact _idFact = Fact(0, QStringLiteral("id"), FactMetaData::valueTypeUint32)
 
- Protected Attributes inherited from FactGroup
const int _updateRateMSecs = 0
 Update rate for Fact::valueChanged signals, 0: immediate update.
 
QMap< QString, Fact * > _nameToFactMap
 
QMap< QString, FactGroup * > _nameToFactGroupMap
 
QMap< QString, FactMetaData * > _nameToFactMetaDataMap
 
QStringList _factNames
 

Additional Inherited Members

- Signals inherited from FactGroup
void factNamesChanged ()
 
void factGroupNamesChanged ()
 
void telemetryAvailableChanged (bool telemetryAvailable)
 
- Protected Slots inherited from FactGroup
virtual void _updateAllValues ()
 
- Protected Member Functions inherited from FactGroup
void _addFact (Fact *fact, const QString &name)
 
void _addFact (Fact *fact)
 
void _addFactGroup (FactGroup *factGroup, const QString &name)
 
void _addFactGroup (FactGroup *factGroup)
 
void _loadFromJsonArray (const QJsonArray &jsonArray)
 
void _setTelemetryAvailable (bool telemetryAvailable)
 

Detailed Description

FactGroupWithId is a FactGroup which has an id Fact which can be used to identify the group. It is mainly used in combination with FactGroupListModel to manage dynamic FactGroups.

Definition at line 8 of file FactGroupWithId.h.

Constructor & Destructor Documentation

◆ FactGroupWithId()

FactGroupWithId::FactGroupWithId ( int  updateRateMsecs,
const QString &  metaDataFile,
QObject *  parent = nullptr,
bool  ignoreCamelCase = false 
)
explicit

Definition at line 3 of file FactGroupWithId.cc.

References FactGroup::_addFact(), and _idFact.

Member Function Documentation

◆ id()

Fact * FactGroupWithId::id ( )
inline

Definition at line 17 of file FactGroupWithId.h.

References _idFact.

Member Data Documentation

◆ _idFact

Fact FactGroupWithId::_idFact = Fact(0, QStringLiteral("id"), FactMetaData::valueTypeUint32)
protected

Definition at line 20 of file FactGroupWithId.h.

Referenced by FactGroupWithId(), and id().


The documentation for this class was generated from the following files: