BloombergLP::balxml::Decoder::Decoder

Construct a decoder using the specified options and reader.

Synopsis

Declared in <balxml_decoder.h>

Decoder(
    DecoderOptions const* options,
    Reader* reader,
    ErrorInfo* errInfo = 0,
    std::ostream* errorStream = 0,
    std::ostream* warningStream = 0,
    bslma::Allocator* basicAllocator = 0);

Description

Construct a decoder object using the specified options and the specified reader to perform the XML-level parsing. If the (optionally) specified errorInfo is non-null, it is used to store information about most serious error encountered during parsing. During parsing, error and warning messages will be written to the (optionally) specified errorStream and warningStream respectively. The behavior is undefined unless options and reader are both non-zero. The behavior becomes undefined if the objects pointed to by any of the arguments is destroyed before this object has completed parsing.

Parameters

NameDescription
optionsdecoder options; held, not owned
readerXML reader used for parsing; held, not owned
errInfooptional error-info structure; held, not owned
errorStreamoptional stream for error messages; held, not owned
warningStreamoptional stream for warning messages; held, not owned
basicAllocatorallocator used to supply memory