This class provides current context for BER decoding process and represents a node for BER element. The BER element consists of element tag, length field, body field and optional end of tag. The class also provides various methods to read the different parts of BER element such as tag header (tag itself and length fields), body for any type of data, and optional tag trailer.
Synopsis
Declared in <balber_berdecoder.h>
class BerDecoder_Node;
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this decoder node. |
Return field name for this node. |
|
Return formatting mode for this node. |
|
Return |
|
Return expected length of the body or ‐1 when the length is indefinite. |
|
Set the node severity to |
|
Function call operators |
|
Return the address of the parent node. |
|
Print the content of node to the specified stream |
|
Print the chain of nodes to the specified |
|
Read the node tag field containing tag class, tag type and tag number, and the node length field. Return zero on success, and a non‐zero value otherwise. |
|
Read the node end‐of‐octets field, if such exists, so the stream will be positioned at the start of next node. Return zero on success and a non‐zero value otherwise. |
|
Load the node body content into the specified |
|
Load the node body content into the specified |
|
Set object field name associated with this node to the specified |
|
Set formatting mode specified by |
|
Skip the field body. The identifier octet and length have already been extracted. Return zero on success, and a non‐zero value otherwise. Note that method must be called when input stream is positioned at the first byte of the body field. |
|
Return the position of node tag from the beginning of input stream. |
|
Return the BER tag class for this node. |
|
Return the BER tag number for this node. |
|
Return the BER tag type for this node. |
Created with MrDocs