Back to home page

Bitcoin sources

 
 

    


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

0001 //          Copyright John W. Wilkinson 2007 - 2009.
0002 // Distributed under the MIT License, see accompanying file LICENSE.txt
0003 
0004 // json spirit version 4.03
0005 
0006 #include "json_spirit_writer.h"
0007 #include "json_spirit_writer_template.h"
0008 
0009 void json_spirit::write( const Value& value, std::ostream& os )
0010 {
0011     write_stream( value, os, false );
0012 }
0013 
0014 void json_spirit::write_formatted( const Value& value, std::ostream& os )
0015 {
0016     write_stream( value, os, true );
0017 }
0018 
0019 std::string json_spirit::write( const Value& value )
0020 {
0021     return write_string( value, false );
0022 }
0023 
0024 std::string json_spirit::write_formatted( const Value& value )
0025 {
0026     return write_string( value, true );
0027 }
0028 
0029 #ifndef BOOST_NO_STD_WSTRING
0030 
0031 void json_spirit::write( const wValue& value, std::wostream& os )
0032 {
0033     write_stream( value, os, false );
0034 }
0035 
0036 void json_spirit::write_formatted( const wValue& value, std::wostream& os )
0037 {
0038     write_stream( value, os, true );
0039 }
0040 
0041 std::wstring json_spirit::write( const wValue&  value )
0042 {
0043     return write_string( value, false );
0044 }
0045 
0046 std::wstring json_spirit::write_formatted( const wValue&  value )
0047 {
0048     return write_string( value, true );
0049 }
0050 
0051 #endif
0052 
0053 void json_spirit::write( const mValue& value, std::ostream& os )
0054 {
0055     write_stream( value, os, false );
0056 }
0057 
0058 void json_spirit::write_formatted( const mValue& value, std::ostream& os )
0059 {
0060     write_stream( value, os, true );
0061 }
0062 
0063 std::string json_spirit::write( const mValue& value )
0064 {
0065     return write_string( value, false );
0066 }
0067 
0068 std::string json_spirit::write_formatted( const mValue& value )
0069 {
0070     return write_string( value, true );
0071 }
0072 
0073 #ifndef BOOST_NO_STD_WSTRING
0074 
0075 void json_spirit::write( const wmValue& value, std::wostream& os )
0076 {
0077     write_stream( value, os, false );
0078 }
0079 
0080 void json_spirit::write_formatted( const wmValue& value, std::wostream& os )
0081 {
0082     write_stream( value, os, true );
0083 }
0084 
0085 std::wstring json_spirit::write( const wmValue&  value )
0086 {
0087     return write_string( value, false );
0088 }
0089 
0090 std::wstring json_spirit::write_formatted( const wmValue&  value )
0091 {
0092     return write_string( value, true );
0093 }
0094 
0095 #endif