C/C++ API Reference
Loading...
Searching...
No Matches
pw::protobuf::DecodeHandler Class Referenceabstract

Overview

The event-handling interface implemented for a proto callback decoding operation (CallbackDecoder).

Public Member Functions

virtual Status ProcessField (CallbackDecoder &decoder, uint32_t field_number)=0
 

Member Function Documentation

◆ ProcessField()

virtual Status pw::protobuf::DecodeHandler::ProcessField ( CallbackDecoder decoder,
uint32_t  field_number 
)
pure virtual

Callback invoked for each field encountered in the decoded proto message.

Receives a reference to the CallbackDecoder object, allowing the handler to call the appropriate method to extract the field's data.

Parameters
[in]decoderThe callback decoder instance processing the field.
[in]field_numberThe tag number of the encountered field.
Returns
  • OK: Field processed successfully, continue decoding.
  • CANCELLED: Stop decoding early without returning an error.
  • Other statuses: Stop decoding and exit with the returned error status.

The documentation for this class was generated from the following file: