Mēnsūra
|
Build a StreamWriter implementation. More...
#include <json.hpp>
Public Member Functions | |
StreamWriter * | newStreamWriter () const JSONCPP_OVERRIDE |
bool | validate (Json::Value *invalid) const |
Value & | operator[] (JSONCPP_STRING key) |
Static Public Member Functions | |
static void | setDefaults (Json::Value *settings) |
Public Attributes | |
Json::Value | settings_ |
Build a StreamWriter implementation.
Usage:
|
virtual |
std::exception | if something goes wrong (e.g. invalid settings) |
Implements Json::StreamWriter::Factory.
Value & Json::StreamWriterBuilder::operator[] | ( | JSONCPP_STRING | key | ) |
A simple way to update a specific setting.
|
static |
Called by ctor, but you can use this to reset settings_.
[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.