A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://open-source-parsers.github.io/jsoncpp-docs/doxygen/class_json_1_1_stream_writer.html below:

Usage: More...

#include <json/writer.h>

Inherited by Json::BuiltStyledStreamWriter.

Detailed Description

Usage:

void writeToStdout(StreamWriter::Factory const& factory, Value const& value)

{ std::unique_ptr<StreamWriter> const writer( factory.newStreamWriter());

writer->write(value, &std::cout);

std::cout << std::endl; // add lf and flush

}

JSON (JavaScript Object Notation).

Definition: allocator.h:14

Constructor & Destructor Documentation ◆ StreamWriter() Json::StreamWriter::StreamWriter ( ) ◆ ~StreamWriter() Json::StreamWriter::~StreamWriter ( ) virtualdefault Member Function Documentation ◆ write() virtual int Json::StreamWriter::write ( Value const &  root, OStreamsout  ) pure virtual

Write Value into document as configured in sub-class.

Do not take ownership of sout, but maintain a reference during function.

Precondition
sout != NULL
Returns
zero on success (For now, we always return zero, so check the stream instead.)
Exceptions
std::exception possibly, depending on configuration
Member Data Documentation ◆ sout_

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4