class Parser

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

Public Methods

WEAVE_ERROR Init (const nl::Weave::TLV::TLVReader & aReader)

aReader has to be on the element of anonymous container

WEAVE_ERROR CheckSchemaValidity ()

Roughly verify the schema is right, including

1) all mandatory tags are present

2) no unknown tags

3) all elements have expected data type

4) any tag can only appear once

WEAVE_ERROR GetStatusList (StatusList::Parser *const apStatusList)

Get a TLVReader for the Status. Next() must be called before accessing them.

WEAVE_ERROR GetVersionList (VersionList::Parser *const apVersionList)

Get a TLVReader at the Versions. Next() must be called before accessing it.

WEAVE_END_OF_TLV if there is no such element

WEAVE_ERROR_WRONG_TLV_TYPE if there is such element but it's not one of the right types