Build a StreamWriter implementation. More...
#include <json.h>
Public Member Functions | |
StreamWriterBuilder () | |
~StreamWriterBuilder () override | |
StreamWriter * | newStreamWriter () const override |
bool | validate (Json::Value *invalid) const |
Value & | operator[] (const String &key) |
Public Member Functions inherited from Json::StreamWriter::Factory | |
virtual | ~Factory () |
Static Public Member Functions | |
static void | setDefaults (Json::Value *settings) |
Data Fields | |
Json::Value | settings_ |
Build a StreamWriter implementation.
Usage:
Json::StreamWriterBuilder::StreamWriterBuilder | ( | ) |
|
overridedefault |
|
overridevirtual |
std::exception | if something goes wrong (e.g. invalid settings) |
Implements Json::StreamWriter::Factory.
A simple way to update a specific setting.
|
static |
Called by ctor, but you can use this to reset settings_.
[StreamWriterBuilderDefaults]
[StreamWriterBuilderDefaults]
[StreamWriterBuilderDefaults]
[StreamWriterBuilderDefaults]
bool Json::StreamWriterBuilder::validate | ( | Json::Value * | invalid | ) | const |
Json::Value Json::StreamWriterBuilder::settings_ |
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.