BloombergLP::balxml::Encoder::encodeAnyToStream

encodeAnyToStream overloads

Synopses

Declared in <balxml_encoder.h>

Encode the specified object to the specified stream without instantiating encoding templates at compile time.

int
encodeAnyToStream(
    std::ostream& stream,
    bdlar::AnyConstRef const& object);
» more...

Encode the specified non-modifiable object to the specified stream.

template<class TYPE>
int
encodeAnyToStream(
    std::ostream& stream,
    TYPE const& object);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
streamoutput stream to receive XML
objecttype-erased value to encode