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