[#BloombergLP-balxml-Decoder-2constructor-0ec]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::Decoder
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;balxml&lowbar;decoder&period;h&gt;`

Construct a decoder using the specified `options`, `reader`, `errInfo`, and `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balxml/Decoder/2constructor-0e1.adoc[Decoder](
    xref:BloombergLP/balxml/DecoderOptions.adoc[DecoderOptions] const* options,
    xref:BloombergLP/balxml/Reader.adoc[Reader]* reader,
    xref:BloombergLP/balxml/ErrorInfo.adoc[ErrorInfo]* errInfo,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/balxml/Decoder/2constructor-0e1.adoc[_» more&period;&period;&period;_]#

Construct a decoder using the specified `options` and `reader`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balxml/Decoder/2constructor-0c.adoc[Decoder](
    xref:BloombergLP/balxml/DecoderOptions.adoc[DecoderOptions] const* options,
    xref:BloombergLP/balxml/Reader.adoc[Reader]* reader,
    xref:BloombergLP/balxml/ErrorInfo.adoc[ErrorInfo]* errInfo = 0,
    std::ostream* errorStream = 0,
    std::ostream* warningStream = 0,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balxml/Decoder/2constructor-0c.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *options*
| decoder options&semi; held, not owned
| *reader*
| XML reader used for parsing&semi; held, not owned
| *errInfo*
| error&hyphen;info structure&semi; held, not owned
| *basicAllocator*
| allocator used to supply memory
| *errorStream*
| optional stream for error messages&semi; held, not owned
| *warningStream*
| optional stream for warning messages&semi; held, not owned
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
