Back to home page

Bitcoin sources

 
 

    


File indexing completed on 2020-06-25 15:43:12

0001 //          Copyright John W. Wilkinson 2007 - 2009.
0002 // Distributed under the MIT License, see accompanying file LICENSE.txt
0003 
0004 // json spirit version 4.03
0005 
0006 #include "json_spirit_reader.h"
0007 #include "json_spirit_reader_template.h"
0008 
0009 using namespace json_spirit;
0010 
0011 bool json_spirit::read( const std::string& s, Value& value )
0012 {
0013     return read_string( s, value );
0014 }
0015 
0016 void json_spirit::read_or_throw( const std::string& s, Value& value )
0017 {
0018     read_string_or_throw( s, value );
0019 }
0020 
0021 bool json_spirit::read( std::istream& is, Value& value )
0022 {
0023     return read_stream( is, value );
0024 }
0025 
0026 void json_spirit::read_or_throw( std::istream& is, Value& value )
0027 {
0028     read_stream_or_throw( is, value );
0029 }
0030 
0031 bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
0032 {
0033     return read_range( begin, end, value );
0034 }
0035 
0036 void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
0037 {
0038     begin = read_range_or_throw( begin, end, value );
0039 }
0040 
0041 #ifndef BOOST_NO_STD_WSTRING
0042 
0043 bool json_spirit::read( const std::wstring& s, wValue& value )
0044 {
0045     return read_string( s, value );
0046 }
0047 
0048 void json_spirit::read_or_throw( const std::wstring& s, wValue& value )
0049 {
0050     read_string_or_throw( s, value );
0051 }
0052 
0053 bool json_spirit::read( std::wistream& is, wValue& value )
0054 {
0055     return read_stream( is, value );
0056 }
0057 
0058 void json_spirit::read_or_throw( std::wistream& is, wValue& value )
0059 {
0060     read_stream_or_throw( is, value );
0061 }
0062 
0063 bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
0064 {
0065     return read_range( begin, end, value );
0066 }
0067 
0068 void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
0069 {
0070     begin = read_range_or_throw( begin, end, value );
0071 }
0072 
0073 #endif
0074 
0075 bool json_spirit::read( const std::string& s, mValue& value )
0076 {
0077     return read_string( s, value );
0078 }
0079 
0080 void json_spirit::read_or_throw( const std::string& s, mValue& value )
0081 {
0082     read_string_or_throw( s, value );
0083 }
0084 
0085 bool json_spirit::read( std::istream& is, mValue& value )
0086 {
0087     return read_stream( is, value );
0088 }
0089 
0090 void json_spirit::read_or_throw( std::istream& is, mValue& value )
0091 {
0092     read_stream_or_throw( is, value );
0093 }
0094 
0095 bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
0096 {
0097     return read_range( begin, end, value );
0098 }
0099 
0100 void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
0101 {
0102     begin = read_range_or_throw( begin, end, value );
0103 }
0104 
0105 #ifndef BOOST_NO_STD_WSTRING
0106 
0107 bool json_spirit::read( const std::wstring& s, wmValue& value )
0108 {
0109     return read_string( s, value );
0110 }
0111 
0112 void json_spirit::read_or_throw( const std::wstring& s, wmValue& value )
0113 {
0114     read_string_or_throw( s, value );
0115 }
0116 
0117 bool json_spirit::read( std::wistream& is, wmValue& value )
0118 {
0119     return read_stream( is, value );
0120 }
0121 
0122 void json_spirit::read_or_throw( std::wistream& is, wmValue& value )
0123 {
0124     read_stream_or_throw( is, value );
0125 }
0126 
0127 bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
0128 {
0129     return read_range( begin, end, value );
0130 }
0131 
0132 void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
0133 {
0134     begin = read_range_or_throw( begin, end, value );
0135 }
0136 
0137 #endif