template <typename T>

class TraitCatalogBase

Defined at line 88 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/TraitCatalog.h

A catalog interface that all concrete catalogs need to adhere to.

Public Methods

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

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.

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

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

WEAVE_ERROR Locate (TraitDataHandle aHandle, T ** aTraitInstance)

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

WEAVE_ERROR Locate (T * aTraitInstance, TraitDataHandle & aHandle)

Reverse

WEAVE_ERROR DispatchEvent (uint16_t aEvent, void * aContext)

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

void Iterate (IteratorCallback aCallback, void * aContext)