Revision: | 1.1 |
Committed: | Tue Jun 29 15:47:51 2010 UTC (14 years, 10 months ago) by bendavid |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, V07-05-00, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, HEAD |
Branch point for: | Mit_025c_branch |
Log Message: | Add JSONSpirit library |
# | User | Rev | Content |
---|---|---|---|
1 | bendavid | 1.1 | #ifndef JSON_SPIRIT_WRITER |
2 | #define JSON_SPIRIT_WRITER | ||
3 | |||
4 | // Copyright John W. Wilkinson 2007 - 2009. | ||
5 | // Distributed under the MIT License, see accompanying file LICENSE.txt | ||
6 | |||
7 | // json spirit version 4.03 | ||
8 | |||
9 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) | ||
10 | # pragma once | ||
11 | #endif | ||
12 | |||
13 | #include "json_spirit_value.h" | ||
14 | #include <iostream> | ||
15 | |||
16 | namespace json_spirit | ||
17 | { | ||
18 | // functions to convert JSON Values to text, | ||
19 | // the "formatted" versions add whitespace to format the output nicely | ||
20 | |||
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 ); | ||
25 | |||
26 | #ifndef BOOST_NO_STD_WSTRING | ||
27 | |||
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 ); | ||
32 | |||
33 | #endif | ||
34 | |||
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 ); | ||
39 | |||
40 | #ifndef BOOST_NO_STD_WSTRING | ||
41 | |||
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 ); | ||
46 | |||
47 | #endif | ||
48 | } | ||
49 | |||
50 | #endif |