raw
experimental-genesis    1 //  /****************************\
experimental-genesis 2 // * EXPERIMENTAL BRANCH. *
experimental-genesis 3 // * FOR LABORATORY USE ONLY. *
experimental-genesis 4 // ********************************
experimental-genesis 5 // ************
experimental-genesis 6 // **************
experimental-genesis 7 // ****************
experimental-genesis 8 // **** **** ****
experimental-genesis 9 // *** *** ***
experimental-genesis 10 // *** *** ***
experimental-genesis 11 // *** * * **
experimental-genesis 12 // ******** ********
experimental-genesis 13 // ******* ******
experimental-genesis 14 // *** **
experimental-genesis 15 // * ******* **
experimental-genesis 16 // ** * * * * *
experimental-genesis 17 // ** * * ***
experimental-genesis 18 // **** * * * * ****
experimental-genesis 19 // **** *** * * ** ***
experimental-genesis 20 // **** ********* ******
experimental-genesis 21 // ******* ***** *******
experimental-genesis 22 // ********* ****** **
experimental-genesis 23 // ** ****** ******
experimental-genesis 24 // ** ******* **
experimental-genesis 25 // ** ******* ***
experimental-genesis 26 // **** ******** ************
experimental-genesis 27 // ************ ************
experimental-genesis 28 // ******** *******
experimental-genesis 29 // ****** ****
experimental-genesis 30 // *** ***
experimental-genesis 31 // ********************************
experimental-genesis 32 #ifndef JSON_SPIRIT_READER
experimental-genesis 33 #define JSON_SPIRIT_READER
experimental-genesis 34
experimental-genesis 35 // Copyright John W. Wilkinson 2007 - 2009.
experimental-genesis 36 // Distributed under the MIT License, see accompanying file LICENSE.txt
experimental-genesis 37
experimental-genesis 38 // json spirit version 4.03
experimental-genesis 39
experimental-genesis 40 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
experimental-genesis 41 # pragma once
experimental-genesis 42 #endif
experimental-genesis 43
experimental-genesis 44 #include "json_spirit_value.h"
experimental-genesis 45 #include "json_spirit_error_position.h"
experimental-genesis 46 #include <iostream>
experimental-genesis 47
experimental-genesis 48 namespace json_spirit
experimental-genesis 49 {
experimental-genesis 50 // functions to reads a JSON values
experimental-genesis 51
experimental-genesis 52 bool read( const std::string& s, Value& value );
experimental-genesis 53 bool read( std::istream& is, Value& value );
experimental-genesis 54 bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
experimental-genesis 55
experimental-genesis 56 void read_or_throw( const std::string& s, Value& value );
experimental-genesis 57 void read_or_throw( std::istream& is, Value& value );
experimental-genesis 58 void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
experimental-genesis 59
experimental-genesis 60 #ifndef BOOST_NO_STD_WSTRING
experimental-genesis 61
experimental-genesis 62 bool read( const std::wstring& s, wValue& value );
experimental-genesis 63 bool read( std::wistream& is, wValue& value );
experimental-genesis 64 bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
experimental-genesis 65
experimental-genesis 66 void read_or_throw( const std::wstring& s, wValue& value );
experimental-genesis 67 void read_or_throw( std::wistream& is, wValue& value );
experimental-genesis 68 void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
experimental-genesis 69
experimental-genesis 70 #endif
experimental-genesis 71
experimental-genesis 72 bool read( const std::string& s, mValue& value );
experimental-genesis 73 bool read( std::istream& is, mValue& value );
experimental-genesis 74 bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
experimental-genesis 75
experimental-genesis 76 void read_or_throw( const std::string& s, mValue& value );
experimental-genesis 77 void read_or_throw( std::istream& is, mValue& value );
experimental-genesis 78 void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
experimental-genesis 79
experimental-genesis 80 #ifndef BOOST_NO_STD_WSTRING
experimental-genesis 81
experimental-genesis 82 bool read( const std::wstring& s, wmValue& value );
experimental-genesis 83 bool read( std::wistream& is, wmValue& value );
experimental-genesis 84 bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
experimental-genesis 85
experimental-genesis 86 void read_or_throw( const std::wstring& s, wmValue& value );
experimental-genesis 87 void read_or_throw( std::wistream& is, wmValue& value );
experimental-genesis 88 void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
experimental-genesis 89
experimental-genesis 90 #endif
experimental-genesis 91 }
experimental-genesis 92
experimental-genesis 93 #endif