jsonv::ostream_pretty_encoder::ostream_pretty_encoder |
( |
std::ostream & |
output, |
|
|
std::size_t |
indent_size = 2 |
|
) |
| |
|
explicit |
Create an instance which places text into output.
virtual void jsonv::ostream_pretty_encoder::write_array_begin |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_array_delimiter |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_array_end |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_boolean |
( |
bool |
value | ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_decimal |
( |
double |
value | ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_integer |
( |
std::int64_t |
value | ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_null |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_object_begin |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_object_delimiter |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_object_end |
( |
| ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_object_key |
( |
string_view |
key | ) |
|
|
overrideprotectedvirtual |
virtual void jsonv::ostream_pretty_encoder::write_string |
( |
string_view |
value | ) |
|
|
overrideprotectedvirtual |
Write a string value.
- Parameters
-
value | is the string to write. It will hopefully be encoded as valid UTF-8. It is the implementation's choice of how to deal with malformed string values. Two common options are to replace malformed sequences with ?s or to simply output these encodings and let the receiver deal with them. |
Reimplemented from jsonv::ostream_encoder.
The documentation for this class was generated from the following file: