Usage:
More...
#include <writer.h>
|
virtual int | write (Value const &root, OStream *sout)=0 |
| Write Value into document as configured in sub-class. More...
|
|
Usage:
writer->write(value, &std::cout);
std::cout << std::endl;
}
◆ 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 |
The documentation for this class was generated from the following file: