Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_writer.cpp
1 //          Copyright John W. Wilkinson 2007 - 2011\r
2 // Distributed under the MIT License, see accompanying file LICENSE.txt\r
3 \r
4 // json spirit version 4.05\r
5 \r
6 #include "json_spirit_writer.h"\r
7 #include "json_spirit_writer_template.h"\r
8 \r
9 using namespace json_spirit;\r
10 \r
11 #ifdef JSON_SPIRIT_VALUE_ENABLED\r
12     void json_spirit::write( const Value& value, std::ostream& os, unsigned int options )\r
13     {\r
14         write_stream( value, os, options );\r
15     }\r
16     std::string json_spirit::write( const Value& value, unsigned int options )\r
17     {\r
18         return write_string( value, options );\r
19     }\r
20 \r
21     void json_spirit::write_formatted( const Value& value, std::ostream& os )\r
22     {\r
23         write_stream( value, os, pretty_print );\r
24     }\r
25 \r
26     std::string json_spirit::write_formatted( const Value& value )\r
27     {\r
28         return write_string( value, pretty_print );\r
29     }\r
30 #endif\r
31 \r
32 #ifdef JSON_SPIRIT_MVALUE_ENABLED\r
33     void json_spirit::write( const mValue& value, std::ostream& os, unsigned int options )\r
34     {\r
35         write_stream( value, os, options );\r
36     }\r
37 \r
38     std::string json_spirit::write( const mValue& value, unsigned int options )\r
39     {\r
40         return write_string( value, options );\r
41     }\r
42 \r
43     void json_spirit::write_formatted( const mValue& value, std::ostream& os )\r
44     {\r
45         write_stream( value, os, pretty_print );\r
46     }\r
47 \r
48     std::string json_spirit::write_formatted( const mValue& value )\r
49     {\r
50         return write_string( value, pretty_print );\r
51     }\r
52 #endif\r
53 \r
54 #if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
55     void json_spirit::write( const wValue& value, std::wostream& os, unsigned int options )\r
56     {\r
57         write_stream( value, os, options );\r
58     }\r
59 \r
60     std::wstring json_spirit::write( const wValue& value, unsigned int options )\r
61     {\r
62         return write_string( value, options );\r
63     }\r
64 \r
65     void json_spirit::write_formatted( const wValue& value, std::wostream& os )\r
66     {\r
67         write_stream( value, os, pretty_print );\r
68     }\r
69 \r
70     std::wstring json_spirit::write_formatted( const wValue& value )\r
71     {\r
72         return write_string( value, pretty_print );\r
73     }\r
74 #endif\r
75 \r
76 #if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
77     void json_spirit::write_formatted( const wmValue& value, std::wostream& os )\r
78     {\r
79         write_stream( value, os, pretty_print );\r
80     }\r
81 \r
82     std::wstring json_spirit::write_formatted( const wmValue& value )\r
83     {\r
84         return write_string( value, pretty_print );\r
85     }\r
86 \r
87     void json_spirit::write( const wmValue& value, std::wostream& os, unsigned int options )\r
88     {\r
89         write_stream( value, os, options );\r
90     }\r
91 \r
92     std::wstring json_spirit::write( const wmValue& value, unsigned int options )\r
93     {\r
94         return write_string( value, options );\r
95     }\r
96 #endif\r