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 的默认构造函数。
构建逻辑空列表。您可以通过 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。
详细信息 | |||||||
---|---|---|---|---|---|---|---|
参数 |
|
||||||
返回值 |
|