This class contains the parameterized encode functions that encode bdlat types to an outgoing stream in BER format.
Declared in <balber_berencoder.h>
class BerEncoder;
| Name | Description |
|---|---|
ErrorSeverity | Severity of a log or error message produced during encoding. |
| Name | Description |
|---|---|
BerEncoder [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. |
~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. The log is reset each time encode is called. |
options | Return address of the options. |
| Name | Description |
|---|---|
BloombergLP::balber::BerEncoder_UseArrayLengthHintGuard | This class serves the purpose to set and reset the value of d_useArrayLengthHint. |
BloombergLP::balber::BerEncoder_LevelGuard | This class serves the purpose to automatically increment-decrement the current depth level. |
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. |
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. |
BloombergLP::balber::BerEncoder_encodeProxy | Component-private struct. Provides accessor that keeps current context and can be used in different bdlat Category Functions. |