Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_reader.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_reader.h"\r
7 #include "json_spirit_reader_template.h"\r
8 \r
9 using namespace json_spirit;\r
10 \r
11 #ifdef JSON_SPIRIT_VALUE_ENABLED\r
12     bool json_spirit::read( const std::string& s, Value& value )\r
13     {\r
14         return read_string( s, value );\r
15     }\r
16     \r
17     void json_spirit::read_or_throw( const std::string& s, Value& value )\r
18     {\r
19         read_string_or_throw( s, value );\r
20     }\r
21 \r
22     bool json_spirit::read( std::istream& is, Value& value )\r
23     {\r
24         return read_stream( is, value );\r
25     }\r
26 \r
27     void json_spirit::read_or_throw( std::istream& is, Value& value )\r
28     {\r
29         read_stream_or_throw( is, value );\r
30     }\r
31 \r
32     bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )\r
33     {\r
34         return read_range( begin, end, value );\r
35     }\r
36 \r
37     void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )\r
38     {\r
39         begin = read_range_or_throw( begin, end, value );\r
40     }\r
41 #endif\r
42 \r
43 #if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
44     bool json_spirit::read( const std::wstring& s, wValue& value )\r
45     {\r
46         return read_string( s, value );\r
47     }\r
48 \r
49     void json_spirit::read_or_throw( const std::wstring& s, wValue& value )\r
50     {\r
51         read_string_or_throw( s, value );\r
52     }\r
53 \r
54     bool json_spirit::read( std::wistream& is, wValue& value )\r
55     {\r
56         return read_stream( is, value );\r
57     }\r
58 \r
59     void json_spirit::read_or_throw( std::wistream& is, wValue& value )\r
60     {\r
61         read_stream_or_throw( is, value );\r
62     }\r
63 \r
64     bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )\r
65     {\r
66         return read_range( begin, end, value );\r
67     }\r
68 \r
69     void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )\r
70     {\r
71         begin = read_range_or_throw( begin, end, value );\r
72     }\r
73 #endif\r
74 \r
75 #ifdef JSON_SPIRIT_MVALUE_ENABLED\r
76     bool json_spirit::read( const std::string& s, mValue& value )\r
77     {\r
78         return read_string( s, value );\r
79     }\r
80 \r
81     void json_spirit::read_or_throw( const std::string& s, mValue& value )\r
82     {\r
83         read_string_or_throw( s, value );\r
84     }\r
85     \r
86     bool json_spirit::read( std::istream& is, mValue& value )\r
87     {\r
88         return read_stream( is, value );\r
89     }\r
90 \r
91     void json_spirit::read_or_throw( std::istream& is, mValue& value )\r
92     {\r
93         read_stream_or_throw( is, value );\r
94     }\r
95 \r
96     bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )\r
97     {\r
98         return read_range( begin, end, value );\r
99     }\r
100 \r
101     void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )\r
102     {\r
103         begin = read_range_or_throw( begin, end, value );\r
104     }\r
105 #endif\r
106 \r
107 #if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
108     bool json_spirit::read( const std::wstring& s, wmValue& value )\r
109     {\r
110         return read_string( s, value );\r
111     }\r
112 \r
113     void json_spirit::read_or_throw( const std::wstring& s, wmValue& value )\r
114     {\r
115         read_string_or_throw( s, value );\r
116     }\r
117 \r
118     bool json_spirit::read( std::wistream& is, wmValue& value )\r
119     {\r
120         return read_stream( is, value );\r
121     }\r
122 \r
123     void json_spirit::read_or_throw( std::wistream& is, wmValue& value )\r
124     {\r
125         read_stream_or_throw( is, value );\r
126     }\r
127 \r
128     bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )\r
129     {\r
130         return read_range( begin, end, value );\r
131     }\r
132 \r
133     void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )\r
134     {\r
135         begin = read_range_or_throw( begin, end, value );\r
136     }\r
137 #endif\r