initial code repo
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_writer.cpp
diff --git a/src/ceph/src/json_spirit/json_spirit_writer.cpp b/src/ceph/src/json_spirit/json_spirit_writer.cpp
new file mode 100644 (file)
index 0000000..da00954
--- /dev/null
@@ -0,0 +1,96 @@
+//          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
+#include "json_spirit_writer.h"\r
+#include "json_spirit_writer_template.h"\r
+\r
+using namespace json_spirit;\r
+\r
+#ifdef JSON_SPIRIT_VALUE_ENABLED\r
+    void json_spirit::write( const Value& value, std::ostream& os, unsigned int options )\r
+    {\r
+        write_stream( value, os, options );\r
+    }\r
+    std::string json_spirit::write( const Value& value, unsigned int options )\r
+    {\r
+        return write_string( value, options );\r
+    }\r
+\r
+    void json_spirit::write_formatted( const Value& value, std::ostream& os )\r
+    {\r
+        write_stream( value, os, pretty_print );\r
+    }\r
+\r
+    std::string json_spirit::write_formatted( const Value& value )\r
+    {\r
+        return write_string( value, pretty_print );\r
+    }\r
+#endif\r
+\r
+#ifdef JSON_SPIRIT_MVALUE_ENABLED\r
+    void json_spirit::write( const mValue& value, std::ostream& os, unsigned int options )\r
+    {\r
+        write_stream( value, os, options );\r
+    }\r
+\r
+    std::string json_spirit::write( const mValue& value, unsigned int options )\r
+    {\r
+        return write_string( value, options );\r
+    }\r
+\r
+    void json_spirit::write_formatted( const mValue& value, std::ostream& os )\r
+    {\r
+        write_stream( value, os, pretty_print );\r
+    }\r
+\r
+    std::string json_spirit::write_formatted( const mValue& value )\r
+    {\r
+        return write_string( value, pretty_print );\r
+    }\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+    void json_spirit::write( const wValue& value, std::wostream& os, unsigned int options )\r
+    {\r
+        write_stream( value, os, options );\r
+    }\r
+\r
+    std::wstring json_spirit::write( const wValue& value, unsigned int options )\r
+    {\r
+        return write_string( value, options );\r
+    }\r
+\r
+    void json_spirit::write_formatted( const wValue& value, std::wostream& os )\r
+    {\r
+        write_stream( value, os, pretty_print );\r
+    }\r
+\r
+    std::wstring json_spirit::write_formatted( const wValue& value )\r
+    {\r
+        return write_string( value, pretty_print );\r
+    }\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+    void json_spirit::write_formatted( const wmValue& value, std::wostream& os )\r
+    {\r
+        write_stream( value, os, pretty_print );\r
+    }\r
+\r
+    std::wstring json_spirit::write_formatted( const wmValue& value )\r
+    {\r
+        return write_string( value, pretty_print );\r
+    }\r
+\r
+    void json_spirit::write( const wmValue& value, std::wostream& os, unsigned int options )\r
+    {\r
+        write_stream( value, os, options );\r
+    }\r
+\r
+    std::wstring json_spirit::write( const wmValue& value, unsigned int options )\r
+    {\r
+        return write_string( value, options );\r
+    }\r
+#endif\r