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

公開屬性

長度

uint8_t theLength

支援的元素清單長度。

長度為 0 表示空白清單

清單

uint8_t theList[kIntegrityType_Last]

容器含有支援的完整性類型。

其大小等於 IntegrityTypes 中的元素數量

公開函式

IntegrityTypeList

 IntegrityTypeList()

IntegrityTypeList 的預設建構函式。

建構有邏輯的空白清單。您可以透過 init() 方法或從訊息中序列化序列化來填入清單。

init

WEAVE_ERROR init(
  uint8_t,
  uint8_t *
)

使用系統支援的 IntegrityType 清單,明確初始化 IntegrityTypeList

詳細資料
參數
[in] aLength
清單長度的 8 位元值。必須小於 IntegrityTypes 中的列舉數量。
[in] aList
指向 IntegrityTypes 值的陣列。只有在 aLength 為 0 時才會為 NULL。
傳回值
WEAVE_NO_ERROR
成功。
WEAVE_ERROR_INVALID_LIST_LENGTH
如果長度過長

運算子 =

bool operator==(
  const IntegrityTypeList &
) const 

一個等號運算子。

詳細資料
參數
another
用來檢查這份清單的清單
傳回
如果清單等於,則傳回 true,否則為 false

WEAVE_ERROR pack(
  MessageIterator &
)

將物件序列化為提供的 MessageIterator

詳細資料
參數
[in] i
疊加訊息的疊代器
傳回值
WEAVE_NO_ERROR
成功。
WEAVE_ERROR_BUFFER_TOO_SMALL
如果清單過長,無法完整顯示在郵件中。

公開的靜態函式

parse

WEAVE_ERROR parse(
  MessageIterator &,
  IntegrityTypeList &
)

將物件從指定的 MessageIterator 序列化為提供的 IntegrityTypeList

詳細資料
參數
[in] i
要剖析的訊息的疊代器。
[in] aList
要包含結果的物件參照
傳回值
WEAVE_NO_ERROR
成功。
WEAVE_ERROR_BUFFER_TOO_SMALL
訊息太短。
WEAVE_ERROR_INVALID_LIST_LENGTH
如果郵件內含無效的清單長度 (資料不足,無法填滿清單,或是內容數量已超出上限)