initial code repo
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_writer.h
diff --git a/src/ceph/src/json_spirit/json_spirit_writer.h b/src/ceph/src/json_spirit/json_spirit_writer.h
new file mode 100644 (file)
index 0000000..b79b068
--- /dev/null
@@ -0,0 +1,63 @@
+#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