Projects : bitcoin : bitcoin_dumpblock_no_losers
1 | #ifndef JSON_SPIRIT_READER |
2 | #define JSON_SPIRIT_READER |
3 | |
4 | // Copyright John W. Wilkinson 2007 - 2009. |
5 | // Distributed under the MIT License, see accompanying file LICENSE.txt |
6 | |
7 | // json spirit version 4.03 |
8 | |
9 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
10 | # pragma once |
11 | #endif |
12 | |
13 | #include "json_spirit_value.h" |
14 | #include "json_spirit_error_position.h" |
15 | #include <iostream> |
16 | |
17 | namespace json_spirit |
18 | { |
19 | // functions to reads a JSON values |
20 | |
21 | bool read( const std::string& s, Value& value ); |
22 | bool read( std::istream& is, Value& value ); |
23 | bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value ); |
24 | |
25 | void read_or_throw( const std::string& s, Value& value ); |
26 | void read_or_throw( std::istream& is, Value& value ); |
27 | void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value ); |
28 | |
29 | #ifndef BOOST_NO_STD_WSTRING |
30 | |
31 | bool read( const std::wstring& s, wValue& value ); |
32 | bool read( std::wistream& is, wValue& value ); |
33 | bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value ); |
34 | |
35 | void read_or_throw( const std::wstring& s, wValue& value ); |
36 | void read_or_throw( std::wistream& is, wValue& value ); |
37 | void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value ); |
38 | |
39 | #endif |
40 | |
41 | bool read( const std::string& s, mValue& value ); |
42 | bool read( std::istream& is, mValue& value ); |
43 | bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value ); |
44 | |
45 | void read_or_throw( const std::string& s, mValue& value ); |
46 | void read_or_throw( std::istream& is, mValue& value ); |
47 | void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value ); |
48 | |
49 | #ifndef BOOST_NO_STD_WSTRING |
50 | |
51 | bool read( const std::wstring& s, wmValue& value ); |
52 | bool read( std::wistream& is, wmValue& value ); |
53 | bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value ); |
54 | |
55 | void read_or_throw( const std::wstring& s, wmValue& value ); |
56 | void read_or_throw( std::wistream& is, wmValue& value ); |
57 | void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value ); |
58 | |
59 | #endif |
60 | } |
61 | |
62 | #endif |