encodeAny overloads
Synopses
Declared in <balxml_encoder.h>
Encode the specified object without instantiating templates at compile time. Return 0 on success, and a non‐zero value otherwise.
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. Return 0 on success, and a non‐zero value otherwise. Note that encoder will use encoder options, error and warning streams specified at the construction time. Also note that this function behaves identically to encode, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime; see the balxml package documentation for more details.
Encode the specified non‐modifiable object to the specified stream. Return a reference to stream. If an encoding error is detected, stream.fail() will be true on return. Note that the encoder will use encoder options, error and warning streams specified at the construction time. Also note that this function behaves identically to encode, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime; see the balxml package documentation for more details.
template<class TYPE>
std::ostream&
encodeAny(
std::ostream& stream,
TYPE const& object);
Encode the specified non‐modifiable object to the specified buffer. 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. Also note that this function behaves identically to encode, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime; see the balxml package documentation for more details.
template<class TYPE>
int
encodeAny(
std::streambuf* buffer,
TYPE const& object);
Created with MrDocs