Build a StreamWriter implementation. More...
#include <json.h>

Public Member Functions | |
| virtual StreamWriter * | newStreamWriter () const |
| Value & | operator[] (std::string key) |
| StreamWriterBuilder () | |
| bool | validate (Json::Value *invalid) const |
| virtual | ~StreamWriterBuilder () |
Public Member Functions inherited from Json::StreamWriter::Factory | |
| virtual | ~Factory () |
Static Public Member Functions | |
| static void | setDefaults (Json::Value *settings) |
Public Attributes | |
| Json::Value | settings_ |
Build a StreamWriter implementation.
Usage:
| Json::StreamWriterBuilder::StreamWriterBuilder | ( | ) |
Definition at line 5024 of file jsoncpp.cpp.
|
virtual |
Definition at line 5028 of file jsoncpp.cpp.
|
virtual |
| std::exception | if something goes wrong (e.g. invalid settings) |
Implements Json::StreamWriter::Factory.
Definition at line 5030 of file jsoncpp.cpp.
| Value & Json::StreamWriterBuilder::operator[] | ( | std::string | key | ) |
A simple way to update a specific setting.
Definition at line 5084 of file jsoncpp.cpp.
|
static |
Called by ctor, but you can use this to reset settings_.
[StreamWriterBuilderDefaults]
[StreamWriterBuilderDefaults]
Definition at line 5089 of file jsoncpp.cpp.
| bool Json::StreamWriterBuilder::validate | ( | Json::Value * | invalid | ) | const |
Definition at line 5067 of file jsoncpp.cpp.
| 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.