Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

LLRP::CDecoder Class Reference
[Core LTK Library classes and functions]

LTK LLRP Decoder class. More...

#include <ltkcpp_base.h>

List of all members.

Public Member Functions

 CDecoder (const CTypeRegistry *pTypeRegistry)
 Constructor to build a decoder for the given type registry.
virtual CMessagedecodeMessage (void)=0
 Decodes a message into the return value CMessage.

Public Attributes

CErrorDetails m_ErrorDetails
 The error details from the last decode operation.

Protected Attributes

const CTypeRegistrym_pRegistry


Detailed Description

LTK LLRP Decoder class.

By way of example, this is how the CDecoder and CDecoderStream classes work. This example is for decoding a binary frame.

+-------------------+ +---------------+ | | | | | CDecoder --------------->| CTypeRegistry | | | | | +--|----------------+ +---------------+ | ^ pointer | | to next | | +-------------------+ byte | | | | pointer to msg end | ^---- CDecoderStream ----------------+ | | | | | | | +-------------------+ | | | ^ | | | | | | | +-------------------+ ptr to | | | | | TLV end | | ^---- CDecoderStream ------------+ | | | | | | | | | +-------------------+ | | | | ^ | | | | | | | | | +-------------------+ | | | | | | | | | ^---- CDecoderStream --------+ | | | | | | | | | +-------------------+ | | | | | | | +-------------------+ | | | | | | | v v v v +---------------------------------------------------------------+ | Binary Frame Buffer | +---------------------------------------------------------------+

|_________________| Nested TLVs |________________||___________________________| Nested TLVs |_________________________________________________| Message

In the case of binary frame the references are to bytes within the buffer. Lookups are by type number.

In the case of an XML DOM tree, the references are to nodes in the DOM tre. Lookups are by string name.

Definition at line 1209 of file ltkcpp_base.h.


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 12:27:57 2008 for LTKCPP-- LLRP Toolkit C Plus Plus Library by  doxygen 1.3.9.1