[#BloombergLP-balber-BerEncoder] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::BerEncoder :relfileprefix: ../../ :mrdocs: This class contains the parameterized `encode` functions that encode `bdlat` types to an outgoing stream in BER format. == Synopsis Declared in `<balber_berencoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BerEncoder; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerEncoder/ErrorSeverity-02.adoc[`ErrorSeverity`] | Severity of a log or error message produced during encoding. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balber/BerEncoder/2constructor.adoc[`BerEncoder`] [.small]#[constructor]# | Construct an encoder object. Optionally specify encoder `options`. If `options` is 0, `BerEncoderOptions()` is used. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. | xref:BloombergLP/balber/BerEncoder/2destructor.adoc[`~BerEncoder`] [.small]#[destructor]# | Destroy this object. This destruction has no effect on objects pointed‐to by the pointers provided at construction. | xref:BloombergLP/balber/BerEncoder/encode-07.adoc[`encode`] | `encode` overloads | xref:BloombergLP/balber/BerEncoder/encodeAny-03.adoc[`encodeAny`] | `encodeAny` overloads | xref:BloombergLP/balber/BerEncoder/errorSeverity-03.adoc[`errorSeverity`] | Return the severity of the most severe warning or error encountered during the last call to the `encode` method. The severity is reset each time `encode` is called. | xref:BloombergLP/balber/BerEncoder/loggedMessages.adoc[`loggedMessages`] | Return a string containing any error, warning, or trace messages that were logged during the last call to the `encode` method. The log is reset each time `encode` is called. | xref:BloombergLP/balber/BerEncoder/options.adoc[`options`] | Return address of the options. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/balber/BerEncoder_UseArrayLengthHintGuard.adoc[BloombergLP::balber::BerEncoder_UseArrayLengthHintGuard]` | This class serves the purpose to set and reset the value of `d_useArrayLengthHint`. | `xref:BloombergLP/balber/BerEncoder_LevelGuard.adoc[BloombergLP::balber::BerEncoder_LevelGuard]` | This class serves the purpose to automatically increment‐decrement the current depth level. | `xref:BloombergLP/balber/BerEncoder_UniversalElementVisitor.adoc[BloombergLP::balber::BerEncoder_UniversalElementVisitor]` | This class is used as a visitor for visiting the top‐level element and also array elements during encoding. This class is required so that the universal tag number of the element can be determined when the element is visited. | `xref:BloombergLP/balber/BerEncoder_Visitor.adoc[BloombergLP::balber::BerEncoder_Visitor]` | This class is used as a visitor for visiting contained objects during encoding. Produces always BER elements with CONTEXT_SPECIFIC BER tag. | `xref:BloombergLP/balber/BerEncoder_encodeProxy.adoc[BloombergLP::balber::BerEncoder_encodeProxy]` | Component‐private struct. Provides accessor that keeps current context and can be used in different `bdlat` Category Functions. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#