initial code repo
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_reader.h
diff --git a/src/ceph/src/json_spirit/json_spirit_reader.h b/src/ceph/src/json_spirit/json_spirit_reader.h
new file mode 100644 (file)
index 0000000..e8caa8f
--- /dev/null
@@ -0,0 +1,62 @@
+#ifndef JSON_SPIRIT_READER\r
+#define JSON_SPIRIT_READER\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_error_position.h"\r
+#include <iostream>\r
+\r
+namespace json_spirit\r
+{\r
+    // functions to reads a JSON values\r
+\r
+#ifdef JSON_SPIRIT_VALUE_ENABLED\r
+    bool read( const std::string& s, Value& value );\r
+    bool read( std::istream& is,     Value& value );\r
+    bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );\r
+\r
+    void read_or_throw( const std::string& s, Value& value );  \r
+    void read_or_throw( std::istream& is,     Value& value );\r
+    void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+    bool read( const std::wstring& s, wValue& value );\r
+    bool read( std::wistream&  is,    wValue& value );\r
+    bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );    \r
+\r
+    void read_or_throw( const std::wstring& s, wValue& value );\r
+    void read_or_throw( std::wistream& is,     wValue& value );\r
+    void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );\r
+#endif\r
+\r
+#ifdef JSON_SPIRIT_MVALUE_ENABLED\r
+    bool read( const std::string& s, mValue& value );\r
+    bool read( std::istream& is,     mValue& value );\r
+    bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );\r
+\r
+    void read_or_throw( const std::string& s, mValue& value );  \r
+    void read_or_throw( std::istream& is,     mValue& value );\r
+    void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );\r
+#endif\r
+\r
+#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )\r
+    bool read( const std::wstring& s, wmValue& value );\r
+    bool read( std::wistream& is,     wmValue& value );\r
+    bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );    \r
+\r
+    void read_or_throw( const std::wstring& s, wmValue& value );\r
+    void read_or_throw( std::wistream& is,     wmValue& value );\r
+    void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );\r
+#endif\r
+}\r
+\r
+#endif\r