Usage:
More...
#include <json/writer.h>
Usage:
writer->write(value, &std::cout);
std::cout << std::endl;
}
A simple abstract factory.
virtual StreamWriter * newStreamWriter() const =0
Allocate a CharReader via operator new().
JSON (JavaScript Object Notation).
Definition at line 41 of file writer.h.
◆ StreamWriter()
Json::StreamWriter::StreamWriter |
( |
| ) |
|
◆ ~StreamWriter()
Json::StreamWriter::~StreamWriter |
( |
| ) |
|
|
virtualdefault |
◆ write()
virtual int Json::StreamWriter::write |
( |
Value const & | root, |
|
|
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 |
◆ sout_
The documentation for this class was generated from the following files: