raw
experimental-genesis    1 //  /****************************\
experimental-genesis 2 // * EXPERIMENTAL BRANCH. *
experimental-genesis 3 // * FOR LABORATORY USE ONLY. *
experimental-genesis 4 // ********************************
experimental-genesis 5 // ************
experimental-genesis 6 // **************
experimental-genesis 7 // ****************
experimental-genesis 8 // **** **** ****
experimental-genesis 9 // *** *** ***
experimental-genesis 10 // *** *** ***
experimental-genesis 11 // *** * * **
experimental-genesis 12 // ******** ********
experimental-genesis 13 // ******* ******
experimental-genesis 14 // *** **
experimental-genesis 15 // * ******* **
experimental-genesis 16 // ** * * * * *
experimental-genesis 17 // ** * * ***
experimental-genesis 18 // **** * * * * ****
experimental-genesis 19 // **** *** * * ** ***
experimental-genesis 20 // **** ********* ******
experimental-genesis 21 // ******* ***** *******
experimental-genesis 22 // ********* ****** **
experimental-genesis 23 // ** ****** ******
experimental-genesis 24 // ** ******* **
experimental-genesis 25 // ** ******* ***
experimental-genesis 26 // **** ******** ************
experimental-genesis 27 // ************ ************
experimental-genesis 28 // ******** *******
experimental-genesis 29 // ****** ****
experimental-genesis 30 // *** ***
experimental-genesis 31 // ********************************
experimental-genesis 32 // Copyright John W. Wilkinson 2007 - 2009.
experimental-genesis 33 // Distributed under the MIT License, see accompanying file LICENSE.txt
experimental-genesis 34
experimental-genesis 35 // json spirit version 4.03
experimental-genesis 36
experimental-genesis 37 #include "json_spirit_writer.h"
experimental-genesis 38 #include "json_spirit_writer_template.h"
experimental-genesis 39
experimental-genesis 40 void json_spirit::write( const Value& value, std::ostream& os )
experimental-genesis 41 {
experimental-genesis 42 write_stream( value, os, false );
experimental-genesis 43 }
experimental-genesis 44
experimental-genesis 45 void json_spirit::write_formatted( const Value& value, std::ostream& os )
experimental-genesis 46 {
experimental-genesis 47 write_stream( value, os, true );
experimental-genesis 48 }
experimental-genesis 49
experimental-genesis 50 std::string json_spirit::write( const Value& value )
experimental-genesis 51 {
experimental-genesis 52 return write_string( value, false );
experimental-genesis 53 }
experimental-genesis 54
experimental-genesis 55 std::string json_spirit::write_formatted( const Value& value )
experimental-genesis 56 {
experimental-genesis 57 return write_string( value, true );
experimental-genesis 58 }
experimental-genesis 59
experimental-genesis 60 #ifndef BOOST_NO_STD_WSTRING
experimental-genesis 61
experimental-genesis 62 void json_spirit::write( const wValue& value, std::wostream& os )
experimental-genesis 63 {
experimental-genesis 64 write_stream( value, os, false );
experimental-genesis 65 }
experimental-genesis 66
experimental-genesis 67 void json_spirit::write_formatted( const wValue& value, std::wostream& os )
experimental-genesis 68 {
experimental-genesis 69 write_stream( value, os, true );
experimental-genesis 70 }
experimental-genesis 71
experimental-genesis 72 std::wstring json_spirit::write( const wValue& value )
experimental-genesis 73 {
experimental-genesis 74 return write_string( value, false );
experimental-genesis 75 }
experimental-genesis 76
experimental-genesis 77 std::wstring json_spirit::write_formatted( const wValue& value )
experimental-genesis 78 {
experimental-genesis 79 return write_string( value, true );
experimental-genesis 80 }
experimental-genesis 81
experimental-genesis 82 #endif
experimental-genesis 83
experimental-genesis 84 void json_spirit::write( const mValue& value, std::ostream& os )
experimental-genesis 85 {
experimental-genesis 86 write_stream( value, os, false );
experimental-genesis 87 }
experimental-genesis 88
experimental-genesis 89 void json_spirit::write_formatted( const mValue& value, std::ostream& os )
experimental-genesis 90 {
experimental-genesis 91 write_stream( value, os, true );
experimental-genesis 92 }
experimental-genesis 93
experimental-genesis 94 std::string json_spirit::write( const mValue& value )
experimental-genesis 95 {
experimental-genesis 96 return write_string( value, false );
experimental-genesis 97 }
experimental-genesis 98
experimental-genesis 99 std::string json_spirit::write_formatted( const mValue& value )
experimental-genesis 100 {
experimental-genesis 101 return write_string( value, true );
experimental-genesis 102 }
experimental-genesis 103
experimental-genesis 104 #ifndef BOOST_NO_STD_WSTRING
experimental-genesis 105
experimental-genesis 106 void json_spirit::write( const wmValue& value, std::wostream& os )
experimental-genesis 107 {
experimental-genesis 108 write_stream( value, os, false );
experimental-genesis 109 }
experimental-genesis 110
experimental-genesis 111 void json_spirit::write_formatted( const wmValue& value, std::wostream& os )
experimental-genesis 112 {
experimental-genesis 113 write_stream( value, os, true );
experimental-genesis 114 }
experimental-genesis 115
experimental-genesis 116 std::wstring json_spirit::write( const wmValue& value )
experimental-genesis 117 {
experimental-genesis 118 return write_string( value, false );
experimental-genesis 119 }
experimental-genesis 120
experimental-genesis 121 std::wstring json_spirit::write_formatted( const wmValue& value )
experimental-genesis 122 {
experimental-genesis 123 return write_string( value, true );
experimental-genesis 124 }
experimental-genesis 125
experimental-genesis 126 #endif