Merge remote branch 'refs/remotes/svn/trunk' into svn
[bitcoinplatinum.git] / json / json_spirit_writer.h
blob52e14068e7d2ff72452f74eb74773d1fb11f364d
1 #ifndef JSON_SPIRIT_WRITER
2 #define JSON_SPIRIT_WRITER
4 // Copyright John W. Wilkinson 2007 - 2009.
5 // Distributed under the MIT License, see accompanying file LICENSE.txt
7 // json spirit version 4.03
9 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
10 # pragma once
11 #endif
13 #include "json_spirit_value.h"
14 #include <iostream>
16 namespace json_spirit
18 // functions to convert JSON Values to text,
19 // the "formatted" versions add whitespace to format the output nicely
21 void write ( const Value& value, std::ostream& os );
22 void write_formatted( const Value& value, std::ostream& os );
23 std::string write ( const Value& value );
24 std::string write_formatted( const Value& value );
26 #ifndef BOOST_NO_STD_WSTRING
28 void write ( const wValue& value, std::wostream& os );
29 void write_formatted( const wValue& value, std::wostream& os );
30 std::wstring write ( const wValue& value );
31 std::wstring write_formatted( const wValue& value );
33 #endif
35 void write ( const mValue& value, std::ostream& os );
36 void write_formatted( const mValue& value, std::ostream& os );
37 std::string write ( const mValue& value );
38 std::string write_formatted( const mValue& value );
40 #ifndef BOOST_NO_STD_WSTRING
42 void write ( const wmValue& value, std::wostream& os );
43 void write_formatted( const wmValue& value, std::wostream& os );
44 std::wstring write ( const wmValue& value );
45 std::wstring write_formatted( const wmValue& value );
47 #endif
50 #endif