nl::Weave::TLV::Debug

Questo spazio dei nomi include tipi e interfacce per il debug e il logging di Weave TLV.

Riepilogo

Typedef

DumpWriter)(const char *aFormat,...) typedef
void(*

Funzioni

DecodeTagControl(const TLVTagControl aTagControl)
const char *
Decodifica un controllo tag TLV con una stringa descrittiva.
DecodeType(const TLVType aType)
const char *
Decodifica un tipo TLV con una stringa descrittiva.
Dump(const TLVReader & aReader, DumpWriter aWriter)
Esegui il dump dei dati TLV all'interno del lettore specificato in formato leggibile con l'autore specificato.
DumpHandler(DumpWriter aWriter, const char *aIndent, const TLVReader & aReader, size_t aDepth)
void
Esegui il dump dell'elemento TLV a cui fa riferimento aReader in formato leggibile utilizzando aWriter.
DumpHandler(const TLVReader & aReader, size_t aDepth, void *aContext)
Registra i dati TLV all'interno del lettore specificato in formato leggibile.
DumpIterator(DumpWriter aWriter, const TLVReader & aReader)
Registra i dati TLV all'interno del lettore specificato in formato leggibile per l'autore specificato.

Strutture

nl::Weave::TLV::Debug::DumpContext

Typedef

DumpWriter

void(* DumpWriter)(const char *aFormat,...)

Funzioni

DecodeTagControl

const char * DecodeTagControl(
  const TLVTagControl aTagControl
)

Decodifica un controllo tag TLV con una stringa descrittiva.

Dettagli
Parametri
[in] aTagControl
Il controllo tag TLV per la decodifica e per il quale restituire una stringa descrittiva.
Restituisce
Un puntatore a una stringa con terminazione NULL che descrive il controllo tag specificato in caso di esito positivo. In caso contrario, NULL.

DecodeType

const char * DecodeType(
  const TLVType aType
)

Decodifica un tipo TLV con una stringa descrittiva.

Dettagli
Parametri
[in] aType
Il tipo TLV da decodificare e per il quale restituire una stringa descrittiva.
Restituisce
Un puntatore a una stringa con terminazione NULL che descrive il tipo specificato in caso di esito positivo; in caso contrario, NULL.

Dump

WEAVE_ERROR Dump(
  const TLVReader & aReader,
  DumpWriter aWriter
)

Esegui il dump dei dati TLV all'interno del lettore specificato in formato leggibile con l'autore specificato.

Dettagli
Parametri
[in] aReader
Un riferimento di sola lettura al lettore TLV contenente i dati TLV da registrare.
[in] aWriter
Un writer di dump per registrare i dati TLV del lettore TLV.
Valori restituiti
WEAVE_NO_ERROR
In caso di successo.

DumpHandler

void DumpHandler(
  DumpWriter aWriter,
  const char *aIndent,
  const TLVReader & aReader,
  size_t aDepth
)

Esegui il dump dell'elemento TLV a cui fa riferimento aReader in formato leggibile utilizzando aWriter.

Dettagli
Parametri
[in] aWriter
L'autore della registrazione dei dati TLV.
[in] aIndent
Il rientro per registrare la profondità attuale nei dati TLV.
[in] aReader
Un riferimento di sola lettura al lettore TLV contenente i dati TLV da registrare.
[in] aDepth
La profondità corrente dei dati TLV.

DumpHandler

WEAVE_ERROR DumpHandler(
  const TLVReader & aReader,
  size_t aDepth,
  void *aContext
)

Registra i dati TLV all'interno del lettore specificato in formato leggibile.

Dettagli
Parametri
[in] aReader
Un riferimento di sola lettura al lettore TLV contenente i dati TLV da registrare.
[in] aDepth
La profondità corrente dei dati TLV.
[in,out] aContext
Un puntatore al contesto specifico del gestore.
Valori restituiti
WEAVE_NO_ERROR
In caso di successo.
WEAVE_ERROR_INVALID_ARGUMENT
Se aContext è NULL o se aContext->mWriter è NULL.

DumpIterator

WEAVE_ERROR DumpIterator(
  DumpWriter aWriter,
  const TLVReader & aReader
)

Registra i dati TLV all'interno del lettore specificato in formato leggibile per l'autore specificato.

Dettagli
Parametri
[in] aWriter
L'autore della registrazione dei dati TLV.
[in] aReader
Un riferimento di sola lettura al lettore TLV contenente i dati TLV da registrare.
Valori restituiti
WEAVE_NO_ERROR
Incondizionatamente.