#include <balber_berencoder.h>
This class contains the parameterized encode
functions that encode bdlat
types to an outgoing stream in BER format.
See balber_berencoder
◆ ErrorSeverity
Enumerator |
---|
e_BER_SUCCESS | |
e_BER_ERROR | |
BDEM_BER_SUCCESS | |
BDEM_BER_ERROR | |
◆ BerEncoder()
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()
balber::BerEncoder::~BerEncoder |
( |
| ) |
|
Destroy this object. This destruction has no effect on objects pointed-to by the pointers provided at construction.
◆ encode() [1/2]
template<typename TYPE >
int balber::BerEncoder::encode |
( |
bsl::ostream & |
stream, |
|
|
const TYPE & |
value |
|
) |
| |
Encode the specified non-modifiable value
to the specified stream
. Return 0 on success, and a non-zero value otherwise. If the encoding fails stream
will be invalidated.
◆ encode() [2/2]
template<typename TYPE >
int balber::BerEncoder::encode |
( |
bsl::streambuf * |
streamBuf, |
|
|
const TYPE & |
value |
|
) |
| |
Encode the specified non-modifiable value
to the specified streamBuf
. Return 0 on success, and a non-zero value otherwise.
◆ 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()
◆ BerEncoder_encodeProxy
◆ BerEncoder_LevelGuard
◆ BerEncoder_UniversalElementVisitor
◆ BerEncoder_Visitor
The documentation for this class was generated from the following file: