Encode value into JSON and write it to stream.
Synopses
Declared in <baljsn_printutil.h>
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdldfp::Decimal64 value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bool value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
char value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
double value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
float value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
int value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
long value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
long long value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
short value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
signed char value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
unsigned char value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
unsigned int value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
unsigned long value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
unsigned long long value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
unsigned short value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdlt::Date const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
DateOrDateTz const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdlt::DateTz const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdlt::Datetime const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdlt::DatetimeInterval const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
DatetimeOrDatetimeTz const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdlt::DatetimeTz const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdlt::Time const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
TimeOrTimeTz const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
bdlt::TimeTz const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
std::string_view const& value,
EncoderOptions const* options = 0);
Encode value into JSON and write it to stream.
static
int
printValue(
std::ostream& stream,
char const* value,
EncoderOptions const* options = 0);
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
stream |
output stream for JSON |
value |
value to encode |
options |
encoding options; null uses defaults |
Created with MrDocs