nl:: Weave:: Profiles:: SoftwareUpdate:: IntegrityTypeList
#include <src/lib/profiles/software-update/SoftwareUpdateProfile.h>
An auxiliary class to hold a list of integrity types as a part of the image query.
Summary
A simple wrapper, sized to hold any subset of possible integrity types. In order to accomplish this task, its size is equal to the number of elements in the IntegrityTypes. It is used to generate the list of supported integrity types in the ImageQuery message.
Constructors and Destructors |
|
---|---|
IntegrityTypeList()
The default constructor for an IntegrityTypeList.
|
Public attributes |
|
---|---|
theLength
|
uint8_t
Length of the supported element list.
|
theList[kIntegrityType_Last]
|
uint8_t
Container holding supported integrity types.
|
Public functions |
|
---|---|
init(uint8_t, uint8_t *)
|
Explicitly initialize the IntegrityTypeList with an list of supported IntegrityTypes.
|
operator==(const IntegrityTypeList &) const
|
bool
An equality operator.
|
pack(MessageIterator &)
|
Serialize the object to the provided MessageIterator.
|
Public static functions |
|
---|---|
parse(MessageIterator &, IntegrityTypeList &)
|
Deserialize the object from the given MessageIterator into provided IntegrityTypeList.
|
Public attributes
theLength
uint8_t theLength
Length of the supported element list.
Length of 0 indicates an empty list
theList
uint8_t theList[kIntegrityType_Last]
Container holding supported integrity types.
It is sized equal to the number of elements in IntegrityTypes
Public functions
IntegrityTypeList
IntegrityTypeList()
The default constructor for an IntegrityTypeList.
Constructs a logically empty list. The list may be populated via the init() method or by deserializing the list from a message.
init
WEAVE_ERROR init( uint8_t, uint8_t * )
Explicitly initialize the IntegrityTypeList with an list of supported IntegrityTypes.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
operator==
bool operator==( const IntegrityTypeList & ) const
An equality operator.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
true if the lists are equal, false otherwise
|
pack
WEAVE_ERROR pack( MessageIterator & )
Serialize the object to the provided MessageIterator.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
Public static functions
parse
WEAVE_ERROR parse( MessageIterator &, IntegrityTypeList & )
Deserialize the object from the given MessageIterator into provided IntegrityTypeList.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|