summaryrefslogtreecommitdiffstats
path: root/src/json_spirit/json_spirit_reader.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/json_spirit/json_spirit_reader.cpp
parentInitial commit. (diff)
downloadceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz
ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/json_spirit/json_spirit_reader.cpp')
-rw-r--r--src/json_spirit/json_spirit_reader.cpp137
1 files changed, 137 insertions, 0 deletions
diff --git a/src/json_spirit/json_spirit_reader.cpp b/src/json_spirit/json_spirit_reader.cpp
new file mode 100644
index 00000000..268aceac
--- /dev/null
+++ b/src/json_spirit/json_spirit_reader.cpp
@@ -0,0 +1,137 @@
+// Copyright John W. Wilkinson 2007 - 2011
+// Distributed under the MIT License, see accompanying file LICENSE.txt
+
+// json spirit version 4.05
+
+#include "json_spirit_reader.h"
+#include "json_spirit_reader_template.h"
+
+using namespace json_spirit;
+
+#ifdef JSON_SPIRIT_VALUE_ENABLED
+ bool json_spirit::read( const std::string& s, Value& value )
+ {
+ return read_string( s, value );
+ }
+
+ void json_spirit::read_or_throw( const std::string& s, Value& value )
+ {
+ read_string_or_throw( s, value );
+ }
+
+ bool json_spirit::read( std::istream& is, Value& value )
+ {
+ return read_stream( is, value );
+ }
+
+ void json_spirit::read_or_throw( std::istream& is, Value& value )
+ {
+ read_stream_or_throw( is, value );
+ }
+
+ bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
+ {
+ return read_range( begin, end, value );
+ }
+
+ void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
+ {
+ begin = read_range_or_throw( begin, end, value );
+ }
+#endif
+
+#if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
+ bool json_spirit::read( const std::wstring& s, wValue& value )
+ {
+ return read_string( s, value );
+ }
+
+ void json_spirit::read_or_throw( const std::wstring& s, wValue& value )
+ {
+ read_string_or_throw( s, value );
+ }
+
+ bool json_spirit::read( std::wistream& is, wValue& value )
+ {
+ return read_stream( is, value );
+ }
+
+ void json_spirit::read_or_throw( std::wistream& is, wValue& value )
+ {
+ read_stream_or_throw( is, value );
+ }
+
+ bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
+ {
+ return read_range( begin, end, value );
+ }
+
+ void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
+ {
+ begin = read_range_or_throw( begin, end, value );
+ }
+#endif
+
+#ifdef JSON_SPIRIT_MVALUE_ENABLED
+ bool json_spirit::read( const std::string& s, mValue& value )
+ {
+ return read_string( s, value );
+ }
+
+ void json_spirit::read_or_throw( const std::string& s, mValue& value )
+ {
+ read_string_or_throw( s, value );
+ }
+
+ bool json_spirit::read( std::istream& is, mValue& value )
+ {
+ return read_stream( is, value );
+ }
+
+ void json_spirit::read_or_throw( std::istream& is, mValue& value )
+ {
+ read_stream_or_throw( is, value );
+ }
+
+ bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
+ {
+ return read_range( begin, end, value );
+ }
+
+ void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
+ {
+ begin = read_range_or_throw( begin, end, value );
+ }
+#endif
+
+#if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
+ bool json_spirit::read( const std::wstring& s, wmValue& value )
+ {
+ return read_string( s, value );
+ }
+
+ void json_spirit::read_or_throw( const std::wstring& s, wmValue& value )
+ {
+ read_string_or_throw( s, value );
+ }
+
+ bool json_spirit::read( std::wistream& is, wmValue& value )
+ {
+ return read_stream( is, value );
+ }
+
+ void json_spirit::read_or_throw( std::wistream& is, wmValue& value )
+ {
+ read_stream_or_throw( is, value );
+ }
+
+ bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
+ {
+ return read_range( begin, end, value );
+ }
+
+ void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
+ {
+ begin = read_range_or_throw( begin, end, value );
+ }
+#endif