Back to home page

Bitcoin sources

 
 

    


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

0001 #ifndef JSON_SPIRIT_WRITER
0002 #define JSON_SPIRIT_WRITER
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 <iostream>
0015 
0016 namespace json_spirit
0017 {
0018     // functions to convert JSON Values to text, 
0019     // the "formatted" versions add whitespace to format the output nicely
0020 
0021     void         write          ( const Value& value, std::ostream&  os );
0022     void         write_formatted( const Value& value, std::ostream&  os );
0023     std::string  write          ( const Value& value );
0024     std::string  write_formatted( const Value& value );
0025 
0026 #ifndef BOOST_NO_STD_WSTRING
0027 
0028     void         write          ( const wValue& value, std::wostream& os );
0029     void         write_formatted( const wValue& value, std::wostream& os );
0030     std::wstring write          ( const wValue& value );
0031     std::wstring write_formatted( const wValue& value );
0032 
0033 #endif
0034 
0035     void         write          ( const mValue& value, std::ostream&  os );
0036     void         write_formatted( const mValue& value, std::ostream&  os );
0037     std::string  write          ( const mValue& value );
0038     std::string  write_formatted( const mValue& value );
0039 
0040 #ifndef BOOST_NO_STD_WSTRING
0041 
0042     void         write          ( const wmValue& value, std::wostream& os );
0043     void         write_formatted( const wmValue& value, std::wostream& os );
0044     std::wstring write          ( const wmValue& value );
0045     std::wstring write_formatted( const wmValue& value );
0046 
0047 #endif
0048 }
0049 
0050 #endif