This class provides current context for BER decoding process and represents a node for BER element.
Declared in <balber_berdecoder.h>
class BerDecoder_Node;
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.
| Name | Description |
|---|---|
BerDecoder_Node [constructor] | Constructors |
~BerDecoder_Node [destructor] | Destroy this decoder node. |
fieldName | Return field name for this node. |
formattingMode | Return formatting mode for this node. |
hasMore | Return true if current node has more embedded elements and return false otherwise. |
length | Return expected length of the body or -1 when the length is indefinite. |
logError | Log a decode error for this node and return a non-zero value. |
operator() | Function call operators |
parent | Return the address of the parent node. |
print | Print this node to the specified out stream. |
printStack | Print the chain of nodes to the specified out stream, starting from this node and iterating to the parent node, then its parent, etc. |
readTagHeader | 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. |
readTagTrailer | Read the node end-of-octets field, if present. |
readVectorChar | Load the node body content into the specified variable. Return 0 on success, and a non-zero value otherwise. |
readVectorUnsignedChar | Load the node body content into the specified variable. Return 0 on success, and a non-zero value otherwise. |
setFieldName | Set the object field name associated with this node to the specified name. |
setFormattingMode | Set the formatting mode to the specified formattingMode. |
skipField | Skip the field body of the current node. |
startPos | Return the position of node tag from the beginning of input stream. |
tagClass | Return the BER tag class for this node. |
tagNumber | Return the BER tag number for this node. |
tagType | Return the BER tag type for this node. |