encodeAny overloads
Synopses
Declared in <balxml_encoder.h>
Encode the specified object without instantiating templates at compile time.
int
encodeAny(
Formatter& formatter,
bdlar::AnyConstRef const& object);
Encode the specified object to the specified stream without instantiating encoding templates at compile time.
std::ostream&
encodeAny(
std::ostream& stream,
bdlar::AnyConstRef const& object);
Encode the specified object to the specified buffer without instantiating encoding templates at compile time.
int
encodeAny(
std::streambuf* buffer,
bdlar::AnyConstRef const& object);
Encode the specified non‐modifiable object to the specified formatter.
Encode the specified non‐modifiable object to the specified stream.
template<class TYPE>
std::ostream&
encodeAny(
std::ostream& stream,
TYPE const& object);
Encode the specified non‐modifiable object to the specified buffer.
template<class TYPE>
int
encodeAny(
std::streambuf* buffer,
TYPE const& object);
Return Value
-
0 on success, and a non‐zero value otherwise
-
a reference to the modifiable
stream
Parameters
Name |
Description |
formatter |
XML formatter to receive the encoded value |
object |
type‐erased value to encode |
stream |
output stream to receive XML |
buffer |
output stream buffer to receive XML |
Created with MrDocs