#include <json.h>
Usage:
std::unique_ptr<StreamWriter>
const writer(
std::cout << std::endl;
}
Definition at line 1706 of file third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h.
◆ StreamWriter() [1/2]
Json::StreamWriter::StreamWriter |
( |
| ) |
|
◆ ~StreamWriter() [1/2]
Json::StreamWriter::~StreamWriter |
( |
| ) |
|
|
virtual |
◆ StreamWriter() [2/2]
Json::StreamWriter::StreamWriter |
( |
| ) |
|
◆ ~StreamWriter() [2/2]
virtual Json::StreamWriter::~StreamWriter |
( |
| ) |
|
|
virtual |
◆ write() [1/2]
virtual int Json::StreamWriter::write |
( |
Value const & |
root, |
|
|
std::ostream * |
sout |
|
) |
| |
|
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 |
Implemented in Json::BuiltStyledStreamWriter, and Json::BuiltStyledStreamWriter.
◆ write() [2/2]
virtual int Json::StreamWriter::write |
( |
Value const & |
root, |
|
|
std::ostream * |
sout |
|
) |
| |
|
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 |
Implemented in Json::BuiltStyledStreamWriter, and Json::BuiltStyledStreamWriter.
◆ sout_
std::ostream * Json::StreamWriter::sout_ |
|
protected |
The documentation for this class was generated from the following files: