initial code repo
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_reader.cpp
diff --git a/src/ceph/src/json_spirit/json_spirit_reader.cpp b/src/ceph/src/json_spirit/json_spirit_reader.cpp
new file mode 100644 (file)
index 0000000..268acea
--- /dev/null
@@ -0,0 +1,137 @@
+//          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_reader.h"\r
+#include "json_spirit_reader_template.h"\r
+\r
+using namespace json_spirit;\r
+\r
+#ifdef JSON_SPIRIT_VALUE_ENABLED\r
+    bool json_spirit::read( const std::string& s, Value& value )\r
+    {\r
+        return read_string( s, value );\r
+    }\r
+    \r
+    void json_spirit::read_or_throw( const std::string& s, Value& value )\r
+    {\r
+        read_string_or_throw( s, value );\r
+    }\r
+\r
+    bool json_spirit::read( std::istream& is, Value& value )\r
+    {\r
+        return read_stream( is, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::istream& is, Value& value )\r
+    {\r
+        read_stream_or_throw( is, value );\r
+    }\r
+\r
+    bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )\r
+    {\r
+        return read_range( begin, end, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )\r
+    {\r
+        begin = read_range_or_throw( begin, end, value );\r
+    }\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+    bool json_spirit::read( const std::wstring& s, wValue& value )\r
+    {\r
+        return read_string( s, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( const std::wstring& s, wValue& value )\r
+    {\r
+        read_string_or_throw( s, value );\r
+    }\r
+\r
+    bool json_spirit::read( std::wistream& is, wValue& value )\r
+    {\r
+        return read_stream( is, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::wistream& is, wValue& value )\r
+    {\r
+        read_stream_or_throw( is, value );\r
+    }\r
+\r
+    bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )\r
+    {\r
+        return read_range( begin, end, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )\r
+    {\r
+        begin = read_range_or_throw( begin, end, value );\r
+    }\r
+#endif\r
+\r
+#ifdef JSON_SPIRIT_MVALUE_ENABLED\r
+    bool json_spirit::read( const std::string& s, mValue& value )\r
+    {\r
+        return read_string( s, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( const std::string& s, mValue& value )\r
+    {\r
+        read_string_or_throw( s, value );\r
+    }\r
+    \r
+    bool json_spirit::read( std::istream& is, mValue& value )\r
+    {\r
+        return read_stream( is, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::istream& is, mValue& value )\r
+    {\r
+        read_stream_or_throw( is, value );\r
+    }\r
+\r
+    bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )\r
+    {\r
+        return read_range( begin, end, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )\r
+    {\r
+        begin = read_range_or_throw( begin, end, value );\r
+    }\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+    bool json_spirit::read( const std::wstring& s, wmValue& value )\r
+    {\r
+        return read_string( s, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( const std::wstring& s, wmValue& value )\r
+    {\r
+        read_string_or_throw( s, value );\r
+    }\r
+\r
+    bool json_spirit::read( std::wistream& is, wmValue& value )\r
+    {\r
+        return read_stream( is, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::wistream& is, wmValue& value )\r
+    {\r
+        read_stream_or_throw( is, value );\r
+    }\r
+\r
+    bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )\r
+    {\r
+        return read_range( begin, end, value );\r
+    }\r
+\r
+    void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )\r
+    {\r
+        begin = read_range_or_throw( begin, end, value );\r
+    }\r
+#endif\r