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

Summary

Inheritance

Inherits from: nl::Weave::Profiles::DataManagement_Current::TraitCatalogBase< T >

Constructors and Destructors

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

Public functions

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
Given a reader positioned at the Path::kCsTag_RootSection structure on a WDM path, parse that structure and return the matching handle to the trait.
DispatchEvent(uint16_t aEvent, void *aContext) const
virtual WEAVE_ERROR
Dispatch an event to all trait data instance housed in this catalog.
HandleToAddress(TraitDataHandle aHandle, TLV::TLVWriter & aWriter, SchemaVersionRange & aSchemaVersionRange) const
virtual WEAVE_ERROR
Given a trait handle, write out the TLV for the Path::kCsTag_RootSection structure.
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
Given a handle, return a reference to the matching trait data instance.
Locate(T *aTraitInstance, TraitDataHandle & aHandle) const
virtual WEAVE_ERROR
Reverse.
Remove(TraitDataHandle aHandle)
Removes a trait instance from the catalog.

Structs

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

Public functions

Add

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 

Given a reader positioned at the Path::kCsTag_RootSection structure on a WDM path, parse that structure and return the matching handle to the trait.

DispatchEvent

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

Dispatch an event to all trait data instance housed in this catalog.

HandleToAddress

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

Given a trait handle, write out the TLV for the Path::kCsTag_RootSection structure.

Iterate

virtual void Iterate(
  IteratorCallback aCallback,
  void *aContext
)

Locate

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

Locate

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

Given a handle, return a reference to the matching trait data instance.

Locate

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

Reverse.

Remove

WEAVE_ERROR Remove(
  TraitDataHandle aHandle
)

Removes a trait instance from the catalog.

SingleResourceTraitCatalog

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