Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / json_spirit / json_spirit_writer_options.h
1 #ifndef JSON_SPIRIT_WRITER_OPTIONS\r
2 #define JSON_SPIRIT_WRITER_OPTIONS\r
3 \r
4 //          Copyright John W. Wilkinson 2007 - 2011\r
5 // Distributed under the MIT License, see accompanying file LICENSE.txt\r
6 \r
7 // json spirit version 4.05\r
8 \r
9 #if defined(_MSC_VER) && (_MSC_VER >= 1020)\r
10 # pragma once\r
11 #endif\r
12 \r
13 namespace json_spirit\r
14 {\r
15     enum Output_options{ pretty_print = 0x01,   // Add whitespace to format the output nicely.\r
16 \r
17                          raw_utf8 = 0x02,       // This prevents non-printable characters from being escapted using "\uNNNN" notation.\r
18                                                 // Note, this is an extension to the JSON standard. It disables the escaping of\r
19                                                 // non-printable characters allowing UTF-8 sequences held in 8 bit char strings\r
20                                                 // to pass through unaltered.\r
21 \r
22                          remove_trailing_zeros = 0x04,\r
23                                                 // outputs e.g. "1.200000000000000" as "1.2"\r
24                          single_line_arrays = 0x08,\r
25                                                 // pretty printing except that arrays printed on single lines unless they contain\r
26                                                 // composite elements, i.e. objects or arrays\r
27                        };\r
28 }\r
29 \r
30 #endif\r