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);
Decode object from the open input without instantiating templates.
template<class TYPE>
int
decodeAny(TYPE* object);
Decode into a type‐erased bdlar::AnyRef from the specified stream.
std::istream&
decodeAny(
std::istream& stream,
bdlar::AnyRef* object,
char const* uri = 0);
Decode into a type‐erased bdlar::AnyRef from the specified buffer.
int
decodeAny(
std::streambuf* buffer,
bdlar::AnyRef* object,
char const* uri = 0);
Decode object from stream without instantiating templates.
template<class TYPE>
std::istream&
decodeAny(
std::istream& stream,
TYPE* object,
char const* uri = 0);
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);
Return Value
-
0 on success, and a non‐zero value otherwise
-
a reference to the modifiable
stream
Parameters
Name |
Description |
object |
object being decoded |
stream |
input stream providing XML data |
uri |
optional URI identifying the input document in error messages |
buffer |
buffer providing XML data |
Created with MrDocs