

using namespace Json; CharReaderBuilder builder; builder.settings_["collectComments"] = false; Value value; std::string errs; bool ok = parseFromStream(builder, std::cin, &value, &errs);
Public Member Functions | |
| CharReaderBuilder () | |
| virtual | ~CharReaderBuilder () |
| virtual CharReader * | newCharReader () const |
| bool | validate (JB_Json::Value *invalid) const |
| |
Static Public Member Functions | |
| static void | setDefaults (JB_Json::Value *settings) |
| Called by ctor, but you can use this to reset settings_. | |
| static void | strictMode (JB_Json::Value *settings) |
| Same as old Features::strictMode(). | |
Public Attributes | |
| JB_Json::Value | settings_ |
| Configuration of this builder. | |
| ~CharReaderBuilder | ( | ) | [virtual] |
| CharReader * newCharReader | ( | ) | const [virtual] |
Allocate a CharReader via operator new().
| std::exception | if something goes wrong (e.g. invalid settings) |
Implements CharReader::Factory.
| bool validate | ( | JB_Json::Value * | invalid | ) | const |
| void setDefaults | ( | JB_Json::Value * | settings | ) | [static] |
Called by ctor, but you can use this to reset settings_.
[CharReaderBuilderDefaults]
[CharReaderBuilderDefaults]
| void strictMode | ( | JB_Json::Value * | settings | ) | [static] |
Same as old Features::strictMode().
[CharReaderBuilderStrictMode]
[CharReaderBuilderStrictMode]
Configuration of this builder.
These are case-sensitive. 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.
1.5.3