Back to home page

Bitcoin sources

 
 

    


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

0001 #ifndef JSON_SPIRIT_READER
0002 #define JSON_SPIRIT_READER
0003 
0004 //          Copyright John W. Wilkinson 2007 - 2009.
0005 // Distributed under the MIT License, see accompanying file LICENSE.txt
0006 
0007 // json spirit version 4.03
0008 
0009 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
0010 # pragma once
0011 #endif
0012 
0013 #include "json_spirit_value.h"
0014 #include "json_spirit_error_position.h"
0015 #include <iostream>
0016 
0017 namespace json_spirit
0018 {
0019     // functions to reads a JSON values
0020 
0021     bool read( const std::string& s, Value& value );
0022     bool read( std::istream& is,     Value& value );
0023     bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
0024 
0025     void read_or_throw( const std::string& s, Value& value );  
0026     void read_or_throw( std::istream& is,     Value& value );
0027     void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
0028 
0029 #ifndef BOOST_NO_STD_WSTRING
0030 
0031     bool read( const std::wstring& s, wValue& value );
0032     bool read( std::wistream&  is,    wValue& value );
0033     bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );    
0034 
0035     void read_or_throw( const std::wstring& s, wValue& value );
0036     void read_or_throw( std::wistream& is,     wValue& value );
0037     void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
0038 
0039 #endif
0040 
0041     bool read( const std::string& s, mValue& value );
0042     bool read( std::istream& is,     mValue& value );
0043     bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
0044 
0045     void read_or_throw( const std::string& s, mValue& value );  
0046     void read_or_throw( std::istream& is,     mValue& value );
0047     void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
0048 
0049 #ifndef BOOST_NO_STD_WSTRING
0050 
0051     bool read( const std::wstring& s, wmValue& value );
0052     bool read( std::wistream& is,     wmValue& value );
0053     bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );    
0054 
0055     void read_or_throw( const std::wstring& s, wmValue& value );
0056     void read_or_throw( std::wistream& is,     wmValue& value );
0057     void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
0058 
0059 #endif
0060 }
0061 
0062 #endif