class Parser

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

WDM Custom Command Request parser definition

Public Methods

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

Initialize the parser object with TLVReader

Parameters

aReader [in] A pointer to a TLVReader, which should point to the beginning of this request
WEAVE_ERROR CheckSchemaValidity ()

Roughly verify the message is correctly formed

WEAVE_ERROR GetPath (Path::Parser *const apPath)

Initialize a Path::Parser with the path component in this command

Parameters

apPath [out] A pointer to a Path::Parser, which will be initialized with embedded path component on success
WEAVE_ERROR GetCommandType (uint64_t *const apCommandType)

Get the command type id for this command

Parameters

apCommandType [out] A pointer to some variable to receive the command type id on success
WEAVE_ERROR GetInitiationTimeMicroSecond (int64_t *const apInitiationTimeMicroSecond)

Get the initiation time for this command

Parameters

apInitiationTimeMicroSecond [out] A pointer to some variable to receive the Command initiation time on success
WEAVE_ERROR GetActionTimeMicroSecond (int64_t *const apActionTimeMicroSecond)

Get the scheduled action time for this command

Parameters

apActionTimeMicroSecond [out] A pointer to some variable to receive the Command action time on success
WEAVE_ERROR GetExpiryTimeMicroSecond (int64_t *const apExpiryTimeMicroSecond)

Get the expiry time for this command

Parameters

apExpiryTimeMicroSecond [out] A pointer to some variable to receive the expiry time on success
WEAVE_ERROR GetMustBeVersion (uint64_t *const apMustBeVersion)

Get the must-be version for this command

Parameters

apMustBeVersion [out] A pointer to some variable to receive the must-be version on success
WEAVE_ERROR GetReaderOnArgument (nl::Weave::TLV::TLVReader *const apReader)

Initialize a TLVReader to point to the beginning of the argument component in this command

Parameters

apReader [out] A pointer to TLVReader, which will be initialized at the argument TLV element on success
WEAVE_ERROR GetReaderOnPath (nl::Weave::TLV::TLVReader *const apReader)

Initialize a TLVReader to point to the beginning of the path component in this command

Parameters

apReader [out] A pointer to TLVReader, which will be initialized at the argument TLV element on success