-
+ 28F2D586E50555E9C1C86F6D9CC39288C49DE44F90B81793194F6D3AF2BB53FE64D8D360E418A50DE4D1AD91A02B4B464658847BC343EA5A45D96D5AF7628D79
bitcoin/src/json/json_spirit_reader.h
(0 . 0)(1 . 62)
6793 #ifndef JSON_SPIRIT_READER
6794 #define JSON_SPIRIT_READER
6795
6796 // Copyright John W. Wilkinson 2007 - 2009.
6797 // Distributed under the MIT License, see accompanying file LICENSE.txt
6798
6799 // json spirit version 4.03
6800
6801 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
6802 # pragma once
6803 #endif
6804
6805 #include "json_spirit_value.h"
6806 #include "json_spirit_error_position.h"
6807 #include <iostream>
6808
6809 namespace json_spirit
6810 {
6811 // functions to reads a JSON values
6812
6813 bool read( const std::string& s, Value& value );
6814 bool read( std::istream& is, Value& value );
6815 bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
6816
6817 void read_or_throw( const std::string& s, Value& value );
6818 void read_or_throw( std::istream& is, Value& value );
6819 void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
6820
6821 #ifndef BOOST_NO_STD_WSTRING
6822
6823 bool read( const std::wstring& s, wValue& value );
6824 bool read( std::wistream& is, wValue& value );
6825 bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
6826
6827 void read_or_throw( const std::wstring& s, wValue& value );
6828 void read_or_throw( std::wistream& is, wValue& value );
6829 void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
6830
6831 #endif
6832
6833 bool read( const std::string& s, mValue& value );
6834 bool read( std::istream& is, mValue& value );
6835 bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
6836
6837 void read_or_throw( const std::string& s, mValue& value );
6838 void read_or_throw( std::istream& is, mValue& value );
6839 void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
6840
6841 #ifndef BOOST_NO_STD_WSTRING
6842
6843 bool read( const std::wstring& s, wmValue& value );
6844 bool read( std::wistream& is, wmValue& value );
6845 bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
6846
6847 void read_or_throw( const std::wstring& s, wmValue& value );
6848 void read_or_throw( std::wistream& is, wmValue& value );
6849 void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
6850
6851 #endif
6852 }
6853
6854 #endif