-
+ 91D31BA8889C09B3195C08A9278E9041A0C08C3305D74BCF370D155B7BCAFB347DDB1B7AB3F5A7DB9C709F8BE0321C680C3B0423C5C8688B0D19927F3767BED1
bitcoin/src/json/json_spirit_reader.h
(0 . 0)(1 . 93)
7444 // /****************************\
7445 // * EXPERIMENTAL BRANCH. *
7446 // * FOR LABORATORY USE ONLY. *
7447 // ********************************
7448 // ************
7449 // **************
7450 // ****************
7451 // **** **** ****
7452 // *** *** ***
7453 // *** *** ***
7454 // *** * * **
7455 // ******** ********
7456 // ******* ******
7457 // *** **
7458 // * ******* **
7459 // ** * * * * *
7460 // ** * * ***
7461 // **** * * * * ****
7462 // **** *** * * ** ***
7463 // **** ********* ******
7464 // ******* ***** *******
7465 // ********* ****** **
7466 // ** ****** ******
7467 // ** ******* **
7468 // ** ******* ***
7469 // **** ******** ************
7470 // ************ ************
7471 // ******** *******
7472 // ****** ****
7473 // *** ***
7474 // ********************************
7475 #ifndef JSON_SPIRIT_READER
7476 #define JSON_SPIRIT_READER
7477
7478 // Copyright John W. Wilkinson 2007 - 2009.
7479 // Distributed under the MIT License, see accompanying file LICENSE.txt
7480
7481 // json spirit version 4.03
7482
7483 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
7484 # pragma once
7485 #endif
7486
7487 #include "json_spirit_value.h"
7488 #include "json_spirit_error_position.h"
7489 #include <iostream>
7490
7491 namespace json_spirit
7492 {
7493 // functions to reads a JSON values
7494
7495 bool read( const std::string& s, Value& value );
7496 bool read( std::istream& is, Value& value );
7497 bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
7498
7499 void read_or_throw( const std::string& s, Value& value );
7500 void read_or_throw( std::istream& is, Value& value );
7501 void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
7502
7503 #ifndef BOOST_NO_STD_WSTRING
7504
7505 bool read( const std::wstring& s, wValue& value );
7506 bool read( std::wistream& is, wValue& value );
7507 bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
7508
7509 void read_or_throw( const std::wstring& s, wValue& value );
7510 void read_or_throw( std::wistream& is, wValue& value );
7511 void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
7512
7513 #endif
7514
7515 bool read( const std::string& s, mValue& value );
7516 bool read( std::istream& is, mValue& value );
7517 bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
7518
7519 void read_or_throw( const std::string& s, mValue& value );
7520 void read_or_throw( std::istream& is, mValue& value );
7521 void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
7522
7523 #ifndef BOOST_NO_STD_WSTRING
7524
7525 bool read( const std::wstring& s, wmValue& value );
7526 bool read( std::wistream& is, wmValue& value );
7527 bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
7528
7529 void read_or_throw( const std::wstring& s, wmValue& value );
7530 void read_or_throw( std::wistream& is, wmValue& value );
7531 void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
7532
7533 #endif
7534 }
7535
7536 #endif