Build a StreamWriter implementation. More...
#include <json/writer.h>
Public Member Functions | |
| StreamWriter * | newStreamWriter () const override |
| Configuration of this builder. | |
| bool | validate (Json::Value *invalid) const |
| Value & | operator[] (const String &key) |
| A simple way to update a specific setting. | |
| Public Member Functions inherited from Json::StreamWriter::Factory | |
| virtual | ~Factory () |
Static Public Member Functions | |
| static void | setDefaults (Json::Value *settings) |
| Called by ctor, but you can use this to reset settings_. | |
Build a StreamWriter implementation.
Usage:
|
overridevirtual |
Configuration of this builder.
Available settings (case-sensitive):
You can examine 'settings_` yourself to see the defaults. You can also write and read them just like any JSON Value.
StreamWriterBuilder(); ~StreamWriterBuilder() override;
/**
| std::exception | if something goes wrong (e.g. invalid settings) |
Implements Json::StreamWriter::Factory.
Definition at line 1167 of file json_writer.cpp.
References Json::decimalPlaces, and Json::significantDigits.
Referenced by Json::operator<<().
A simple way to update a specific setting.
Definition at line 1233 of file json_writer.cpp.
|
static |
Called by ctor, but you can use this to reset settings_.
[StreamWriterBuilderDefaults]
[StreamWriterBuilderDefaults]
Definition at line 1237 of file json_writer.cpp.
| bool Json::StreamWriterBuilder::validate | ( | Json::Value * | invalid | ) | const |
Definition at line 1210 of file json_writer.cpp.
References Json::Value::empty().
1.15.0