BloombergLP::balxml::Decoder::decodeAny

decodeAny overloads

Synopses

Declared in <balxml_decoder.h>

Decode into a type-erased bdlar::AnyRef from the current open input.

int
decodeAny(bdlar::AnyRef* object);
» more...

Decode object from the open input without instantiating templates.

template<class TYPE>
int
decodeAny(TYPE* object);
» more...

Decode into a type-erased bdlar::AnyRef from the specified stream.

std::istream&
decodeAny(
    std::istream& stream,
    bdlar::AnyRef* object,
    char const* uri = 0);
» more...

Decode into a type-erased bdlar::AnyRef from the specified buffer.

int
decodeAny(
    std::streambuf* buffer,
    bdlar::AnyRef* object,
    char const* uri = 0);
» more...

Decode object from stream without instantiating templates.

template<class TYPE>
std::istream&
decodeAny(
    std::istream& stream,
    TYPE* object,
    char const* uri = 0);
» more...

Decode into a type-erased bdlar::AnyRef from the specified buffer.

template<class TYPE>
int
decodeAny(
    std::streambuf* buffer,
    TYPE* object,
    char const* uri = 0);
» more...

Return Value

  • 0 on success, and a non-zero value otherwise
  • a reference to the modifiable stream

Parameters

NameDescription
objectobject being decoded
streaminput stream providing XML data
urioptional URI identifying the input document in error messages
bufferbuffer providing XML data