Encode the specified non-modifiable object to the specified stream.
Declared in <balxml_encoder.h>
template<class TYPE>
int
encodeToStream(
std::ostream& stream,
TYPE const& object);
Return 0 on success, and a non-zero value otherwise. Note that the encoder will use encoder options, error and warning streams specified at the construction time.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| stream | output stream to receive XML |
| object | value to encode |