nl::Weave::Profiles::DataManagement_Current::SingleResourceTraitCatalog

Tóm tắt

Tính kế thừa

Kế thừa từ: nl::Weave::Profiles::DataManagement_Current::TraitCatalogBase< T >

Hàm khởi tạo và hàm phá

SingleResourceTraitCatalog(ResourceIdentifier aResourceIdentifier, CatalogItem *aCatalogStore, uint32_t aNumMaxCatalogItems)

Hàm công khai

Add(uint64_t aInstanceId, T *aItem, TraitDataHandle & aHandle)
AddAt(uint64_t aInstanceId, T *aItem, TraitDataHandle aHandle)
AddressToHandle(TLV::TLVReader & aReader, TraitDataHandle & aHandle, SchemaVersionRange & aSchemaVersionRange) const
virtual WEAVE_ERROR
Với một trình đọc đã được định vị tại cấu trúc Path::kCsTag_RootSection trên một đường dẫn WDM, hãy phân tích cú pháp cấu trúc đó rồi trả về tên người dùng phù hợp cho trait.
Count() const
uint32_t
Trả về số lượng thực thể của trait trong danh mục.
DispatchEvent(uint16_t aEvent, void *aContext) const
virtual WEAVE_ERROR
Gửi một sự kiện đến tất cả thực thể dữ liệu trait có trong danh mục này.
GetInstanceId(TraitDataHandle aHandle, uint64_t & aInstanceId) const
virtual WEAVE_ERROR
GetResourceId(TraitDataHandle aHandle, ResourceIdentifier & aResourceId) const
virtual WEAVE_ERROR
HandleToAddress(TraitDataHandle aHandle, TLV::TLVWriter & aWriter, SchemaVersionRange & aSchemaVersionRange) const
virtual WEAVE_ERROR
Khi có một tên người dùng trait, hãy viết TLV cho cấu trúc Path::kCsTag_RootSection.
Iterate(IteratorCallback aCallback, void *aContext)
virtual void
Locate(uint64_t aProfileId, uint64_t aInstanceId, TraitDataHandle & aHandle) const
Locate(TraitDataHandle aHandle, T **aTraitInstance) const
virtual WEAVE_ERROR
Khi có một tên người dùng, hãy trả về một tham chiếu đến thực thể dữ liệu trait trùng khớp.
Locate(T *aTraitInstance, TraitDataHandle & aHandle) const
virtual WEAVE_ERROR
Đảo ngược.
Remove(TraitDataHandle aHandle)
Xoá một thực thể của trait khỏi danh mục.

Cấu trúc

nl::Weave::Profiles::DataManagement_Current::SingleResourceTraitCatalog::CatalogItem

Hàm công khai

Thêm

WEAVE_ERROR Add(
  uint64_t aInstanceId,
  T *aItem,
  TraitDataHandle & aHandle
)

AddAt

WEAVE_ERROR AddAt(
  uint64_t aInstanceId,
  T *aItem,
  TraitDataHandle aHandle
)

AddressToHandle

virtual WEAVE_ERROR AddressToHandle(
  TLV::TLVReader & aReader,
  TraitDataHandle & aHandle,
  SchemaVersionRange & aSchemaVersionRange
) const 

Với một trình đọc đã được định vị tại cấu trúc Path::kCsTag_RootSection trên một đường dẫn WDM, hãy phân tích cú pháp cấu trúc đó rồi trả về tên người dùng phù hợp cho trait.

Số lượt

uint32_t Count() const 

Trả về số lượng thực thể của trait trong danh mục.

DispatchEvent

virtual WEAVE_ERROR DispatchEvent(
  uint16_t aEvent,
  void *aContext
) const 

Gửi một sự kiện đến tất cả thực thể dữ liệu trait có trong danh mục này.

GetInstanceId

virtual WEAVE_ERROR GetInstanceId(
  TraitDataHandle aHandle,
  uint64_t & aInstanceId
) const 

GetResourceId

virtual WEAVE_ERROR GetResourceId(
  TraitDataHandle aHandle,
  ResourceIdentifier & aResourceId
) const 

HandleToAddress

virtual WEAVE_ERROR HandleToAddress(
  TraitDataHandle aHandle,
  TLV::TLVWriter & aWriter,
  SchemaVersionRange & aSchemaVersionRange
) const 

Khi có một tên người dùng trait, hãy viết TLV cho cấu trúc Path::kCsTag_RootSection.

Làm lại

virtual void Iterate(
  IteratorCallback aCallback,
  void *aContext
)

Định vị

WEAVE_ERROR Locate(
  uint64_t aProfileId,
  uint64_t aInstanceId,
  TraitDataHandle & aHandle
) const 

Định vị

virtual WEAVE_ERROR Locate(
  TraitDataHandle aHandle,
  T **aTraitInstance
) const 

Khi có một tên người dùng, hãy trả về một tham chiếu đến thực thể dữ liệu trait trùng khớp.

Định vị

virtual WEAVE_ERROR Locate(
  T *aTraitInstance,
  TraitDataHandle & aHandle
) const 

Đảo ngược.

Xóa

WEAVE_ERROR Remove(
  TraitDataHandle aHandle
)

Xoá một thực thể của trait khỏi danh mục.

SingleResourceTraitCatalog

 SingleResourceTraitCatalog(
  ResourceIdentifier aResourceIdentifier,
  CatalogItem *aCatalogStore,
  uint32_t aNumMaxCatalogItems
)