-
+ 849C5978099870A2432E75AD7F5CCA8C95C6C348CA2F59FC5AF2BCE1FE162F1E0F9E54230B090CD0A25280B44DD06A94F8E3D607FE253916AF080D0E9732909Dbitcoin/src/json/json_spirit_writer.cpp(0 . 0)(1 . 95)
 8164 //          Copyright John W. Wilkinson 2007 - 2009.
 8165 // Distributed under the MIT License, see accompanying file LICENSE.txt
 8166 
 8167 // json spirit version 4.03
 8168 
 8169 #include "json_spirit_writer.h"
 8170 #include "json_spirit_writer_template.h"
 8171 
 8172 void json_spirit::write( const Value& value, std::ostream& os )
 8173 {
 8174     write_stream( value, os, false );
 8175 }
 8176 
 8177 void json_spirit::write_formatted( const Value& value, std::ostream& os )
 8178 {
 8179     write_stream( value, os, true );
 8180 }
 8181 
 8182 std::string json_spirit::write( const Value& value )
 8183 {
 8184     return write_string( value, false );
 8185 }
 8186 
 8187 std::string json_spirit::write_formatted( const Value& value )
 8188 {
 8189     return write_string( value, true );
 8190 }
 8191 
 8192 #ifndef BOOST_NO_STD_WSTRING
 8193 
 8194 void json_spirit::write( const wValue& value, std::wostream& os )
 8195 {
 8196     write_stream( value, os, false );
 8197 }
 8198 
 8199 void json_spirit::write_formatted( const wValue& value, std::wostream& os )
 8200 {
 8201     write_stream( value, os, true );
 8202 }
 8203 
 8204 std::wstring json_spirit::write( const wValue&  value )
 8205 {
 8206     return write_string( value, false );
 8207 }
 8208 
 8209 std::wstring json_spirit::write_formatted( const wValue&  value )
 8210 {
 8211     return write_string( value, true );
 8212 }
 8213 
 8214 #endif
 8215 
 8216 void json_spirit::write( const mValue& value, std::ostream& os )
 8217 {
 8218     write_stream( value, os, false );
 8219 }
 8220 
 8221 void json_spirit::write_formatted( const mValue& value, std::ostream& os )
 8222 {
 8223     write_stream( value, os, true );
 8224 }
 8225 
 8226 std::string json_spirit::write( const mValue& value )
 8227 {
 8228     return write_string( value, false );
 8229 }
 8230 
 8231 std::string json_spirit::write_formatted( const mValue& value )
 8232 {
 8233     return write_string( value, true );
 8234 }
 8235 
 8236 #ifndef BOOST_NO_STD_WSTRING
 8237 
 8238 void json_spirit::write( const wmValue& value, std::wostream& os )
 8239 {
 8240     write_stream( value, os, false );
 8241 }
 8242 
 8243 void json_spirit::write_formatted( const wmValue& value, std::wostream& os )
 8244 {
 8245     write_stream( value, os, true );
 8246 }
 8247 
 8248 std::wstring json_spirit::write( const wmValue&  value )
 8249 {
 8250     return write_string( value, false );
 8251 }
 8252 
 8253 std::wstring json_spirit::write_formatted( const wmValue&  value )
 8254 {
 8255     return write_string( value, true );
 8256 }
 8257 
 8258 #endif