-
+ EEBC0215F93FBBC671D6FE8615AB3738198070E60322E24597085FD87E635E99F2F90B5EB8DE46869C8B619E7565CEE5A22F199C42BBABDBB08EB71D5D86C0C5
bitcoin/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