[#BloombergLP-balber-BerDecoder_Node] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerDecoder_Node :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BerDecoder_Node; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerDecoder_Node/2constructor-03.adoc[`BerDecoder_Node`] [.small]#[constructor]# | Constructors | xref:BloombergLP/balber/BerDecoder_Node/2destructor.adoc[`~BerDecoder_Node`] [.small]#[destructor]# | Destroy this decoder node. | xref:BloombergLP/balber/BerDecoder_Node/fieldName.adoc[`fieldName`] | Return field name for this node. | xref:BloombergLP/balber/BerDecoder_Node/formattingMode.adoc[`formattingMode`] | Return formatting mode for this node. | xref:BloombergLP/balber/BerDecoder_Node/hasMore.adoc[`hasMore`] | Return `true` if current node has more embedded elements and return `false` otherwise. | xref:BloombergLP/balber/BerDecoder_Node/length.adoc[`length`] | Return expected length of the body or ‐1 when the length is indefinite. | xref:BloombergLP/balber/BerDecoder_Node/logError.adoc[`logError`] | Set the node severity to `e_BER_ERROR`, print the error message specified by `msg` to the decoder's log, print the stack of nodes to the decoder's log, and return a non‐zero value. | xref:BloombergLP/balber/BerDecoder_Node/operator_call-0b.adoc[`operator()`] | Function call operators | xref:BloombergLP/balber/BerDecoder_Node/parent.adoc[`parent`] | Return the address of the parent node. | xref:BloombergLP/balber/BerDecoder_Node/print.adoc[`print`] | Print the content of node to the specified stream `out`. `depth` is the value `d_decoder‐>currentDepth` assumed after node was created. | xref:BloombergLP/balber/BerDecoder_Node/printStack.adoc[`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. | xref:BloombergLP/balber/BerDecoder_Node/readTagHeader.adoc[`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. | xref:BloombergLP/balber/BerDecoder_Node/readTagTrailer.adoc[`readTagTrailer`] | 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. | xref:BloombergLP/balber/BerDecoder_Node/readVectorChar.adoc[`readVectorChar`] | Load the node body content into the specified `variable`. Return 0 on success, and a non‐zero value otherwise. | xref:BloombergLP/balber/BerDecoder_Node/readVectorUnsignedChar.adoc[`readVectorUnsignedChar`] | Load the node body content into the specified `variable`. Return 0 on success, and a non‐zero value otherwise. | xref:BloombergLP/balber/BerDecoder_Node/setFieldName.adoc[`setFieldName`] | Set object field name associated with this node to the specified `name`. | xref:BloombergLP/balber/BerDecoder_Node/setFormattingMode.adoc[`setFormattingMode`] | Set formatting mode specified by `formattingMode`. | xref:BloombergLP/balber/BerDecoder_Node/skipField.adoc[`skipField`] | 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. | xref:BloombergLP/balber/BerDecoder_Node/startPos.adoc[`startPos`] | Return the position of node tag from the beginning of input stream. | xref:BloombergLP/balber/BerDecoder_Node/tagClass.adoc[`tagClass`] | Return the BER tag class for this node. | xref:BloombergLP/balber/BerDecoder_Node/tagNumber.adoc[`tagNumber`] | Return the BER tag number for this node. | xref:BloombergLP/balber/BerDecoder_Node/tagType.adoc[`tagType`] | Return the BER tag type for this node. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#