BloombergLP::balber::BerEncoder

This class contains the parameterized encode functions that encode bdlat types to an outgoing stream in BER format.

Synopsis

Declared in <balber_berencoder.h>

class BerEncoder;

Enums

NameDescription
ErrorSeverity Severity of a log or error message produced during encoding.

Member Functions

NameDescription
BerEncoder [constructor]Construct an encoder object.
~BerEncoder [destructor]Destroy this object. This destruction has no effect on objects pointed-to by the pointers provided at construction.
encode encode overloads
encodeAny encodeAny overloads
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.
loggedMessages Return a string containing any error, warning, or trace messages that were logged during the last call to the encode method.
options Return address of the options.

Friends

NameDescription
BloombergLP::balber::BerEncoder_UseArrayLengthHintGuardThis class serves the purpose to set and reset the value of d_useArrayLengthHint.
BloombergLP::balber::BerEncoder_LevelGuardThis class serves the purpose to automatically increment-decrement the current depth level.
BloombergLP::balber::BerEncoder_UniversalElementVisitorVisitor for top-level and array elements during BER encoding.
BloombergLP::balber::BerEncoder_VisitorThis class is used as a visitor for visiting contained objects during encoding. Produces always BER elements with CONTEXT_SPECIFIC BER tag.
BloombergLP::balber::BerEncoder_encodeProxyComponent-private struct. Provides accessor that keeps current context and can be used in different bdlat Category Functions.