#include <json.h>
|
| virtual int | write (Value const &root, std::ostream *sout)=0 |
| |
Usage:
std::unique_ptr<StreamWriter> const writer(
writer->write(value, &std::cout);
std::cout << std::endl;
}
A simple abstract factory.
Definition json.h:1661
virtual StreamWriter * newStreamWriter() const =0
Allocate a CharReader via operator new().
Represents a JSON value.
Definition json.h:536
JSON (JavaScript Object Notation).
Definition json-forwards.h:182
◆ write()
| 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.
The documentation for this class was generated from the following files:
- RavEngine/deps/ozz-animation/extern/jsoncpp/dist/json/json.h
- RavEngine/deps/ozz-animation/extern/jsoncpp/dist/jsoncpp.cpp