nl:: Weave:: Profiles:: SoftwareUpdate:: UpdateSchemeList
#include <src/lib/profiles/software-update/SoftwareUpdateProfile.h>
An auxiliary class to hold a list of update schemes as a part of the image query.
Summary
A simple wrapper, sized to hold any subset of possible update schemes. In order to accomplish this task, its size is equal to the number of elements in the UpdateSchemes is used to generate the list of supported update schemes in the ImageQuery message.
Constructors and Destructors |
|
---|---|
UpdateSchemeList()
The default constructor for an UpdateSchemeList.
|
Public attributes |
|
---|---|
theLength
|
uint8_t
Length of the supported element list.
|
theList[kUpdateScheme_Last]
|
uint8_t
Container holding supported update schemes.
|
Public functions |
|
---|---|
init(uint8_t, uint8_t *)
|
Explicitly initialize the IntegrityTypeList with an list of supported IntegrityTypes.
|
operator==(const UpdateSchemeList &) const
|
bool
An equality operator.
|
pack(MessageIterator &)
|
Serialize the object to the provided MessageIterator.
|
Public static functions |
|
---|---|
parse(MessageIterator &, UpdateSchemeList &)
|
Deserialize the object from the given MessageIterator into provided UpdateSchemeList.
|
Public attributes
theLength
uint8_t theLength
Length of the supported element list.
Length of 0 indicates an empty list
theList
uint8_t theList[kUpdateScheme_Last]
Container holding supported update schemes.
It is sized equal to the number of elements in UpdateSchemes
Public functions
UpdateSchemeList
UpdateSchemeList()
The default constructor for an UpdateSchemeList.
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 UpdateSchemeList & ) 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 &, UpdateSchemeList & )
Deserialize the object from the given MessageIterator into provided UpdateSchemeList.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Return Values |
|