[#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&period;

== Synopsis

Declared in `&lt;balber&lowbar;berencoder&period;h&gt;`

[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&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balber/BerEncoder/2constructor.adoc[`BerEncoder`]         [.small]#[constructor]#
| Construct an encoder object&period;
| xref:BloombergLP/balber/BerEncoder/2destructor.adoc[`&#126;BerEncoder`] [.small]#[destructor]#
| Destroy this object&period; This destruction has no effect on objects pointed&hyphen;to by the pointers provided at construction&period;
| 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&period; The severity is reset each time `encode` is called&period;
| 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&period;
| xref:BloombergLP/balber/BerEncoder/options.adoc[`options`] 
| Return address of the options&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/balber/BerEncoder_UseArrayLengthHintGuard.adoc[BloombergLP::balber::BerEncoder&lowbar;UseArrayLengthHintGuard]`
| This class serves the purpose to set and reset the value of `d&lowbar;useArrayLengthHint`&period;
| `xref:BloombergLP/balber/BerEncoder_LevelGuard.adoc[BloombergLP::balber::BerEncoder&lowbar;LevelGuard]`
| This class serves the purpose to automatically increment&hyphen;decrement the current depth level&period;
| `xref:BloombergLP/balber/BerEncoder_UniversalElementVisitor.adoc[BloombergLP::balber::BerEncoder&lowbar;UniversalElementVisitor]`
| Visitor for top&hyphen;level and array elements during BER encoding&period;
| `xref:BloombergLP/balber/BerEncoder_Visitor.adoc[BloombergLP::balber::BerEncoder&lowbar;Visitor]`
| This class is used as a visitor for visiting contained objects during encoding&period; Produces always BER elements with CONTEXT&lowbar;SPECIFIC BER tag&period;
| `xref:BloombergLP/balber/BerEncoder_encodeProxy.adoc[BloombergLP::balber::BerEncoder&lowbar;encodeProxy]`
| Component&hyphen;private struct&period; Provides accessor that keeps current context and can be used in different `bdlat` Category Functions&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
