-
+ 283C72606AE81F40A9ED0A0669AA9120DFB4C94AE79F6952FAFB69338DC75A82ADEEB437629B388D316C605E6BC0250E29607A22111C0BDE0EFB4BD88958957F
bitcoin/src/json/json_spirit_writer.cpp
(0 . 0)(1 . 126)
9001 // /****************************\
9002 // * EXPERIMENTAL BRANCH. *
9003 // * FOR LABORATORY USE ONLY. *
9004 // ********************************
9005 // ************
9006 // **************
9007 // ****************
9008 // **** **** ****
9009 // *** *** ***
9010 // *** *** ***
9011 // *** * * **
9012 // ******** ********
9013 // ******* ******
9014 // *** **
9015 // * ******* **
9016 // ** * * * * *
9017 // ** * * ***
9018 // **** * * * * ****
9019 // **** *** * * ** ***
9020 // **** ********* ******
9021 // ******* ***** *******
9022 // ********* ****** **
9023 // ** ****** ******
9024 // ** ******* **
9025 // ** ******* ***
9026 // **** ******** ************
9027 // ************ ************
9028 // ******** *******
9029 // ****** ****
9030 // *** ***
9031 // ********************************
9032 // Copyright John W. Wilkinson 2007 - 2009.
9033 // Distributed under the MIT License, see accompanying file LICENSE.txt
9034
9035 // json spirit version 4.03
9036
9037 #include "json_spirit_writer.h"
9038 #include "json_spirit_writer_template.h"
9039
9040 void json_spirit::write( const Value& value, std::ostream& os )
9041 {
9042 write_stream( value, os, false );
9043 }
9044
9045 void json_spirit::write_formatted( const Value& value, std::ostream& os )
9046 {
9047 write_stream( value, os, true );
9048 }
9049
9050 std::string json_spirit::write( const Value& value )
9051 {
9052 return write_string( value, false );
9053 }
9054
9055 std::string json_spirit::write_formatted( const Value& value )
9056 {
9057 return write_string( value, true );
9058 }
9059
9060 #ifndef BOOST_NO_STD_WSTRING
9061
9062 void json_spirit::write( const wValue& value, std::wostream& os )
9063 {
9064 write_stream( value, os, false );
9065 }
9066
9067 void json_spirit::write_formatted( const wValue& value, std::wostream& os )
9068 {
9069 write_stream( value, os, true );
9070 }
9071
9072 std::wstring json_spirit::write( const wValue& value )
9073 {
9074 return write_string( value, false );
9075 }
9076
9077 std::wstring json_spirit::write_formatted( const wValue& value )
9078 {
9079 return write_string( value, true );
9080 }
9081
9082 #endif
9083
9084 void json_spirit::write( const mValue& value, std::ostream& os )
9085 {
9086 write_stream( value, os, false );
9087 }
9088
9089 void json_spirit::write_formatted( const mValue& value, std::ostream& os )
9090 {
9091 write_stream( value, os, true );
9092 }
9093
9094 std::string json_spirit::write( const mValue& value )
9095 {
9096 return write_string( value, false );
9097 }
9098
9099 std::string json_spirit::write_formatted( const mValue& value )
9100 {
9101 return write_string( value, true );
9102 }
9103
9104 #ifndef BOOST_NO_STD_WSTRING
9105
9106 void json_spirit::write( const wmValue& value, std::wostream& os )
9107 {
9108 write_stream( value, os, false );
9109 }
9110
9111 void json_spirit::write_formatted( const wmValue& value, std::wostream& os )
9112 {
9113 write_stream( value, os, true );
9114 }
9115
9116 std::wstring json_spirit::write( const wmValue& value )
9117 {
9118 return write_string( value, false );
9119 }
9120
9121 std::wstring json_spirit::write_formatted( const wmValue& value )
9122 {
9123 return write_string( value, true );
9124 }
9125
9126 #endif