decodeAny overloads
Declared in <baljsn_decoder.h>
Decode into the specified value without instantiating templates at compile time. Return 0 on success, and a non-zero value otherwise.
int
decodeAny(
std::istream& stream,
bdlar::AnyRef* value,
DecoderOptions const& options);
» more...
Decode into the specified value without instantiating templates at compile time. Return 0 on success, and a non-zero value otherwise.
int
decodeAny(
std::streambuf* streamBuf,
bdlar::AnyRef* value,
DecoderOptions const& options);
» more...
Decode into the specified value, of a (template parameter) TYPE, the JSON data read from the specified stream and using the specified options. TYPE shall be a bdlat-compatible sequence, choice, or array type, or a bdlat-compatible dynamic type referring to one of those types. Specifying a nullptr options is equivalent to passing a default-constructed DecoderOptions in options. Return 0 on success, and a non-zero value otherwise. Note that this function behaves identically to decode, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime; see the baljsn package documentation for more details.
template<class TYPE>
int
decodeAny(
std::istream& stream,
TYPE* value,
DecoderOptions const& options);
» more...
Same as the preceding overload, accepting a nullable options pointer.
template<class TYPE>
int
decodeAny(
std::istream& stream,
TYPE* value,
DecoderOptions const* options = 0);
» more...
Decode into the specified value, of a (template parameter) TYPE, the JSON data read from the specified streamBuf and using the specified options. Specifying a nullptr options is equivalent to passing a default-constructed DecoderOptions in options. TYPE shall be a bdlat-compatible sequence, choice, or array type, or a bdlat-compatible dynamic type referring to one of those types. Return 0 on success, and a non-zero value otherwise. Note that this function behaves identically to decode, but does not instantiate any templates at compile time at the expense of being slightly slower at runtime; see the baljsn package documentation for more details.
template<class TYPE>
int
decodeAny(
std::streambuf* streamBuf,
TYPE* value,
DecoderOptions const& options);
» more...
Same as the preceding overload, accepting a nullable options pointer.
template<class TYPE>
int
decodeAny(
std::streambuf* streamBuf,
TYPE* value,
DecoderOptions const* options = 0);
» more...