![]() |
ATSC3
24.10.0
|
Build a StreamWriter implementation. More...
#include <atsc_core_utils_json.h>
Inherits Json::StreamWriter::Factory.
Public Member Functions | |
StreamWriter * | newStreamWriter () const override |
bool | validate (Json::Value *invalid) const |
Value & | operator[] (const JSONCPP_STRING &key) |
Static Public Member Functions | |
static void | setDefaults (Json::Value *settings) |
Public Attributes | |
Json::Value | settings_ |
Build a StreamWriter implementation.
Usage:
|
overridevirtual |
std::exception | if something goes wrong (e.g. invalid settings) |
Implements Json::StreamWriter::Factory.
Value & Json::StreamWriterBuilder::operator[] | ( | const 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.