nl::Weave::Profiles::DataManagement_Current::ParserBase

#include <src/lib/profiles/data-management/Current/MessageDef.h>

Base class for WDM message parsers.

Summary

Inheritance

Direct Known Subclasses:
  nl::Weave::Profiles::DataManagement_Current::BaseMessageWithSubscribeId::Parser
  nl::Weave::Profiles::DataManagement_Current::DataElement::Parser
  nl::Weave::Profiles::DataManagement_Current::ListParserBase
  nl::Weave::Profiles::DataManagement_Current::Path::Parser
  nl::Weave::Profiles::DataManagement_Current::RejectionRecord::Parser
  nl::Weave::Profiles::DataManagement_Current::StatusElement::Parser
  nl::Weave::Profiles::DataManagement_Current::UpdateResponse::Parser

Protected attributes

mReader

Public functions

GetReaderOnTag(const uint64_t aTagToFind, nl::Weave::TLV::TLVReader *const apReader) const
Initialize a TLVReader to point to the beginning of any tagged element in this request.

Protected functions

GetSimpleValue(const uint8_t aContextTag, const nl::Weave::TLV::TLVType aTLVType, T *const apLValue) const
GetUnsignedInteger(const uint8_t aContextTag, T *const apLValue) const
ParserBase(void)

Protected attributes

mReader

nl::Weave::TLV::TLVReader mReader

Public functions

GetReaderOnTag

WEAVE_ERROR GetReaderOnTag(
  const uint64_t aTagToFind,
  nl::Weave::TLV::TLVReader *const apReader
) const 

Initialize a TLVReader to point to the beginning of any tagged element in this request.

Details
Parameters
[in] aTagToFind
Tag to find in the request
[out] apReader
A pointer to TLVReader, which will be initialized at the specified TLV element on success
Return Values
WEAVE_NO_ERROR
on success

Protected functions

GetSimpleValue

WEAVE_ERROR GetSimpleValue(
  const uint8_t aContextTag,
  const nl::Weave::TLV::TLVType aTLVType,
  T *const apLValue
) const 

GetUnsignedInteger

WEAVE_ERROR GetUnsignedInteger(
  const uint8_t aContextTag,
  T *const apLValue
) const 

ParserBase

 ParserBase(
  void
)