Base class for all CompInfo types. More...
#include <CompInfo.h>
Public Member Functions | |
| CompInfo (COMP_METADATA_TYPE type_, uint8_t compId_, Vehicle *vehicle_, QObject *parent=nullptr) | |
| const QString & | uriMetaData () const |
| const QString & | uriMetaDataFallback () const |
| const QString & | uriTranslation () const |
| uint32_t | crcMetaData () const |
| uint32_t | crcMetaDataFallback () const |
| bool | crcMetaDataValid () const |
| bool | crcMetaDataFallbackValid () const |
| void | setUriMetaData (const QString &uri, uint32_t crc) |
| virtual void | setJson (const QString &metaDataJsonFileName)=0 |
| bool | available () const |
Public Attributes | |
| const COMP_METADATA_TYPE | type |
| Vehicle *const | vehicle = nullptr |
| const uint8_t | compId = MAV_COMP_ID_ALL |
Friends | |
| class | CompInfoGeneral |
Base class for all CompInfo types.
Definition at line 14 of file CompInfo.h.
| CompInfo::CompInfo | ( | COMP_METADATA_TYPE | type_, |
| uint8_t | compId_, | ||
| Vehicle * | vehicle_, | ||
| QObject * | parent = nullptr ) |
Definition at line 3 of file CompInfo.cc.
References compId, type, and vehicle.
Referenced by CompInfoActuators::CompInfoActuators(), CompInfoEvents::CompInfoEvents(), CompInfoGeneral::CompInfoGeneral(), CompInfoParam::CompInfoParam(), and CompInfoGeneral::setUris().
|
inline |
Definition at line 34 of file CompInfo.h.
|
inline |
Definition at line 25 of file CompInfo.h.
Referenced by CompInfoGeneral.
|
inline |
Definition at line 26 of file CompInfo.h.
Referenced by CompInfoGeneral.
|
inline |
Definition at line 28 of file CompInfo.h.
Referenced by CompInfoGeneral.
|
inline |
Definition at line 27 of file CompInfo.h.
Referenced by CompInfoGeneral.
|
pure virtual |
Implemented in CompInfoActuators, CompInfoEvents, CompInfoGeneral, and CompInfoParam.
| void CompInfo::setUriMetaData | ( | const QString & | uri, |
| uint32_t | crc ) |
Definition at line 12 of file CompInfo.cc.
|
inline |
Definition at line 21 of file CompInfo.h.
Referenced by CompInfoGeneral.
|
inline |
Definition at line 22 of file CompInfo.h.
Referenced by CompInfoGeneral.
|
inline |
Definition at line 23 of file CompInfo.h.
Referenced by CompInfoGeneral.
|
friend |
Definition at line 41 of file CompInfo.h.
References CompInfoGeneral, crcMetaData(), crcMetaDataFallback(), crcMetaDataFallbackValid(), crcMetaDataValid(), uriMetaData(), uriMetaDataFallback(), and uriTranslation().
Referenced by CompInfoGeneral.
| const uint8_t CompInfo::compId = MAV_COMP_ID_ALL |
Definition at line 38 of file CompInfo.h.
Referenced by CompInfo(), CompInfoActuators::setJson(), CompInfoEvents::setJson(), CompInfoGeneral::setJson(), and CompInfoParam::setJson().
| const COMP_METADATA_TYPE CompInfo::type |
Definition at line 36 of file CompInfo.h.
Referenced by CompInfo(), and CompInfoGeneral::setUris().
| Vehicle* const CompInfo::vehicle = nullptr |
Definition at line 37 of file CompInfo.h.
Referenced by CompInfo(), CompInfoActuators::setJson(), and CompInfoEvents::setJson().