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。
详细信息 | |||||||
---|---|---|---|---|---|---|---|
参数 |
|
||||||
返回值 |
|