34 file_writer::file_writer(FILE *f) :
writer(), m_file(f)
40 if (fwrite(s.c_str(), s.size(), 1, m_file) != 1)
Simple proxy for write operations on various types of stream.
The stdio fwrite() system call failed.
#define NAMESPACE
You can change the namespace of the whole library by changing this value.
Specific class of exceptions for IO errors of various types.
Common defs needed everywhere and, as far as is possible, platform specific changes.
virtual void write(const std::string &s)
The json_io_exception class.