#include <balber_berdecoder.h>
This class contains the parameterized decode
functions that decode data (in BER format) from an incoming stream into bdlat
types.
See balber_berdecoder
◆ ErrorSeverity
Enumerator |
---|
e_BER_SUCCESS | |
e_BER_ERROR | |
BDEM_BER_SUCCESS | |
BDEM_BER_ERROR | |
◆ BerDecoder()
Construct a decoder object. Optionally specify decoder options
. If options
is 0, BerDecoderOptions()
is used. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ ~BerDecoder()
balber::BerDecoder::~BerDecoder |
( |
| ) |
|
Destroy this object. This destruction has no effect on objects pointed-to by the pointers provided at construction.
◆ decode() [1/2]
template<typename TYPE >
int balber::BerDecoder::decode |
( |
bsl::istream & |
stream, |
|
|
TYPE * |
variable |
|
) |
| |
|
inline |
Decode an object of parameterized TYPE
from the specified stream
and load the result into the specified modifiable variable
. Return 0 on success, and a non-zero value otherwise. If the decoding fails stream
will be invalidated.
◆ decode() [2/2]
template<typename TYPE >
int balber::BerDecoder::decode |
( |
bsl::streambuf * |
streamBuf, |
|
|
TYPE * |
variable |
|
) |
| |
Decode an object of parameterized TYPE
from the specified streamBuf
and load the result into the specified variable
. Return 0 on success, and a non-zero value otherwise.
◆ decoderOptions()
◆ errorSeverity()
Return the severity of the most severe log or error message encountered during the last call to the decode
method. The severity is reset each time decode
is called.
◆ loggedMessages()
Return a string containing any error or trace messages that were logged during the last call to the decode
method. The log is reset each time decode
is called.
◆ maxDepthExceeded()
bool balber::BerDecoder::maxDepthExceeded |
( |
| ) |
const |
|
inline |
◆ numUnknownElementsSkipped()
int balber::BerDecoder::numUnknownElementsSkipped |
( |
| ) |
const |
|
inline |
Return the number of unknown elements that were skipped during the previous decoding operation. Note that unknown elements are skipped only if true == options()->skipUnknownElements()
.
◆ setNumUnknownElementsSkipped()
void balber::BerDecoder::setNumUnknownElementsSkipped |
( |
int |
value | ) |
|
|
inline |
Set the number of unknown elements skipped by the decoder during the current decoding operation to the specified value
. The behavior is undefined unless 0 <= value
.
◆ BerDecoder_Node
The documentation for this class was generated from the following file: