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.
|
Count() const
|
uint32_t
Return the number of trait instances in the catalog.
|
DispatchEvent(uint16_t aEvent, void *aContext) const
|
virtual WEAVE_ERROR
Dispatch an event to all trait data instance housed in this catalog.
|
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
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:: |
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.
Count
uint32_t Count() const
Return the number of trait instances in the catalog.
DispatchEvent
virtual WEAVE_ERROR DispatchEvent( uint16_t aEvent, void *aContext ) const
Dispatch an event to all trait data instance housed in this catalog.
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
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.
SingleResourceTraitCatalog
SingleResourceTraitCatalog( ResourceIdentifier aResourceIdentifier, CatalogItem *aCatalogStore, uint32_t aNumMaxCatalogItems )