nl::Weave::Profiles::SoftwareUpdate::ProductSpec

#include <src/lib/profiles/software-update/SoftwareUpdateProfile.h>

代表產品規格的輔助類別。

摘要

建構函式和解構函式

ProductSpec(uint16_t aVendor, uint16_t aProduct, uint16_t aRevision)
ProductSpec 物件的建構函式。
ProductSpec()
建立無效 ProductSpec 物件的預設建構函式。

公開屬性

productId
uint16_t
取自供應商管理的命名空間的 16 位元產品 ID。
productRev
uint16_t
取自供應商代管命名空間的 16 位元產品修訂版本。
vendorId
uint16_t
取自 Weave 供應商識別碼註冊資料庫中的 Weave 供應商 ID。

公用函式

operator==(const ProductSpec &) const
bool
等號運算子。

公開屬性

productId

uint16_t productId

取自供應商管理的命名空間的 16 位元產品 ID。

productRev

uint16_t productRev

取自供應商代管命名空間的 16 位元產品修訂版本。

vendorId

uint16_t vendorId

取自 Weave 供應商識別碼註冊資料庫中的 Weave 供應商 ID。

公用函式

ProductSpec

 ProductSpec(
  uint16_t aVendor,
  uint16_t aProduct,
  uint16_t aRevision
)

ProductSpec 物件的建構函式。

詳細說明
參數
[in] aVendor
指定產品的供應商 ID
[in] aProduct
供應商專屬產品 ID
[in] aRevision
供應商專屬產品修訂版本編號

ProductSpec

 ProductSpec()

建立無效 ProductSpec 物件的預設建構函式。

如果物件已從訊息中反序列化,則會使用這個值。

運算子==

bool operator==(
  const ProductSpec &
) const 

等號運算子。

詳細說明
參數
another
用於檢查此 ProductSpecProductSpec
傳回
如果兩個物件中的所有欄位都相同,則傳回 true,否則傳回 false