-
+ 78609CF3F6735E920DC08E5B1FF0139B675256471F95ACA9659066DB7163A264F005128CF7E1BE38D34B3828AB313E125A29BA20FA2DB69762E22E952A506D93
bitcoin/src/json/json_spirit_reader.cpp
(0 . 0)(1 . 137)
6652 // Copyright John W. Wilkinson 2007 - 2009.
6653 // Distributed under the MIT License, see accompanying file LICENSE.txt
6654
6655 // json spirit version 4.03
6656
6657 #include "json_spirit_reader.h"
6658 #include "json_spirit_reader_template.h"
6659
6660 using namespace json_spirit;
6661
6662 bool json_spirit::read( const std::string& s, Value& value )
6663 {
6664 return read_string( s, value );
6665 }
6666
6667 void json_spirit::read_or_throw( const std::string& s, Value& value )
6668 {
6669 read_string_or_throw( s, value );
6670 }
6671
6672 bool json_spirit::read( std::istream& is, Value& value )
6673 {
6674 return read_stream( is, value );
6675 }
6676
6677 void json_spirit::read_or_throw( std::istream& is, Value& value )
6678 {
6679 read_stream_or_throw( is, value );
6680 }
6681
6682 bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
6683 {
6684 return read_range( begin, end, value );
6685 }
6686
6687 void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
6688 {
6689 begin = read_range_or_throw( begin, end, value );
6690 }
6691
6692 #ifndef BOOST_NO_STD_WSTRING
6693
6694 bool json_spirit::read( const std::wstring& s, wValue& value )
6695 {
6696 return read_string( s, value );
6697 }
6698
6699 void json_spirit::read_or_throw( const std::wstring& s, wValue& value )
6700 {
6701 read_string_or_throw( s, value );
6702 }
6703
6704 bool json_spirit::read( std::wistream& is, wValue& value )
6705 {
6706 return read_stream( is, value );
6707 }
6708
6709 void json_spirit::read_or_throw( std::wistream& is, wValue& value )
6710 {
6711 read_stream_or_throw( is, value );
6712 }
6713
6714 bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
6715 {
6716 return read_range( begin, end, value );
6717 }
6718
6719 void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
6720 {
6721 begin = read_range_or_throw( begin, end, value );
6722 }
6723
6724 #endif
6725
6726 bool json_spirit::read( const std::string& s, mValue& value )
6727 {
6728 return read_string( s, value );
6729 }
6730
6731 void json_spirit::read_or_throw( const std::string& s, mValue& value )
6732 {
6733 read_string_or_throw( s, value );
6734 }
6735
6736 bool json_spirit::read( std::istream& is, mValue& value )
6737 {
6738 return read_stream( is, value );
6739 }
6740
6741 void json_spirit::read_or_throw( std::istream& is, mValue& value )
6742 {
6743 read_stream_or_throw( is, value );
6744 }
6745
6746 bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
6747 {
6748 return read_range( begin, end, value );
6749 }
6750
6751 void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
6752 {
6753 begin = read_range_or_throw( begin, end, value );
6754 }
6755
6756 #ifndef BOOST_NO_STD_WSTRING
6757
6758 bool json_spirit::read( const std::wstring& s, wmValue& value )
6759 {
6760 return read_string( s, value );
6761 }
6762
6763 void json_spirit::read_or_throw( const std::wstring& s, wmValue& value )
6764 {
6765 read_string_or_throw( s, value );
6766 }
6767
6768 bool json_spirit::read( std::wistream& is, wmValue& value )
6769 {
6770 return read_stream( is, value );
6771 }
6772
6773 void json_spirit::read_or_throw( std::wistream& is, wmValue& value )
6774 {
6775 read_stream_or_throw( is, value );
6776 }
6777
6778 bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
6779 {
6780 return read_range( begin, end, value );
6781 }
6782
6783 void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
6784 {
6785 begin = read_range_or_throw( begin, end, value );
6786 }
6787
6788 #endif