nl:: Weave:: Profiles:: SoftwareUpdate:: IntegrityTypeList
#include <src/lib/profiles/software-update/SoftwareUpdateProfile.h>
這個輔助類別,可在圖片查詢中保留完整性類型清單。
摘要
可調整大小的簡易包裝函式,可容納任何可能的完整性類型子集。為了完成這項工作,此工作的大小等於 IntegrityTypes 中的元素數量。用於產生 ImageQuery 訊息中支援的完整性類型清單。
建構函式和解構函式 |
|
---|---|
IntegrityTypeList()
IntegrityTypeList 的預設建構函式。
|
公開屬性 |
|
---|---|
theLength
|
uint8_t
支援的元素清單長度。
|
theList[kIntegrityType_Last]
|
uint8_t
容器保留支援的完整性類型。
|
公用函式 |
|
---|---|
init(uint8_t, uint8_t *)
|
使用支援的 IntegrityType 清單明確初始化 IntegrityTypeList。
|
operator==(const IntegrityTypeList &) const
|
bool
等號運算子。
|
pack(MessageIterator &)
|
將物件序列化至提供的 MessageIterator。
|
公開的靜態函式 |
|
---|---|
parse(MessageIterator &, IntegrityTypeList &)
|
將指定 MessageIterator 中的物件反序列化至提供的 IntegrityTypeList。
|
公開屬性
theLength
uint8_t theLength
支援的元素清單長度。
長度為 0 表示空白清單
公用函式
IntegrityTypeList
IntegrityTypeList()
IntegrityTypeList 的預設建構函式。
建立邏輯空白清單。您可以透過 init() 方法填入清單,或是透過訊息取消序列化清單。
init
WEAVE_ERROR init( uint8_t, uint8_t * )
使用支援的 IntegrityType 清單明確初始化 IntegrityTypeList。
詳細說明 | |||||
---|---|---|---|---|---|
參數 |
|
||||
傳回值 |
|
運算子==
bool operator==( const IntegrityTypeList & ) const
等號運算子。
詳細說明 | |||
---|---|---|---|
參數 |
|
||
傳回 |
如果清單相等,則為 true,否則傳回 false
|
包
WEAVE_ERROR pack( MessageIterator & )
將物件序列化至提供的 MessageIterator。
詳細說明 | |||||
---|---|---|---|---|---|
參數 |
|
||||
傳回值 |
|
公開的靜態函式
parse
WEAVE_ERROR parse( MessageIterator &, IntegrityTypeList & )
將指定 MessageIterator 中的物件反序列化至提供的 IntegrityTypeList。
詳細說明 | |||||||
---|---|---|---|---|---|---|---|
參數 |
|
||||||
傳回值 |
|