1 #ifndef JSON_SPIRIT_READER
2 #define JSON_SPIRIT_READER
4 // Copyright John W. Wilkinson 2007 - 2009.
5 // Distributed under the MIT License, see accompanying file LICENSE.txt
7 // json spirit version 4.03
9 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
13 #include "json_spirit_value.h"
14 #include "json_spirit_error_position.h"
19 // functions to reads a JSON values
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 );
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 );
29 #ifndef BOOST_NO_STD_WSTRING
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 );
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 );
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 );
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 );
49 #ifndef BOOST_NO_STD_WSTRING
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 );
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 );