--- /dev/null
+#ifndef JSON_SPIRIT_WRITER\r
+#define JSON_SPIRIT_WRITER\r
+\r
+// Copyright John W. Wilkinson 2007 - 2011\r
+// Distributed under the MIT License, see accompanying file LICENSE.txt\r
+\r
+// json spirit version 4.05\r
+\r
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)\r
+# pragma once\r
+#endif\r
+\r
+#include "json_spirit_value.h"\r
+#include "json_spirit_writer_options.h"\r
+#include <iostream>\r
+\r
+namespace json_spirit\r
+{\r
+ // these functions to convert JSON Values to text\r
+\r
+#ifdef JSON_SPIRIT_VALUE_ENABLED\r
+ void write( const Value& value, std::ostream& os, unsigned int options = 0 );\r
+ std::string write( const Value& value, unsigned int options = 0 );\r
+#endif\r
+\r
+#ifdef JSON_SPIRIT_MVALUE_ENABLED\r
+ void write( const mValue& value, std::ostream& os, unsigned int options = 0 );\r
+ std::string write( const mValue& value, unsigned int options = 0 );\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+ void write( const wValue& value, std::wostream& os, unsigned int options = 0 );\r
+ std::wstring write( const wValue& value, unsigned int options = 0 );\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+ void write( const wmValue& value, std::wostream& os, unsigned int options = 0 );\r
+ std::wstring write( const wmValue& value, unsigned int options = 0 );\r
+#endif\r
+\r
+ // these "formatted" versions of the "write" functions are the equivalent of the above functions\r
+ // with option "pretty_print"\r
+ \r
+#ifdef JSON_SPIRIT_VALUE_ENABLED\r
+ void write_formatted( const Value& value, std::ostream& os );\r
+ std::string write_formatted( const Value& value );\r
+#endif\r
+#ifdef JSON_SPIRIT_MVALUE_ENABLED\r
+ void write_formatted( const mValue& value, std::ostream& os );\r
+ std::string write_formatted( const mValue& value );\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+ void write_formatted( const wValue& value, std::wostream& os );\r
+ std::wstring write_formatted( const wValue& value );\r
+#endif\r
+#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+ void write_formatted( const wmValue& value, std::wostream& os );\r
+ std::wstring write_formatted( const wmValue& value );\r
+#endif\r
+}\r
+\r
+#endif\r