ADTF  3.18.3
features.h
1 // Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
2 // Distributed under MIT license, or public domain if desired and
3 // recognized in your jurisdiction.
4 // See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5 
6 #ifndef CPPTL_JSON_FEATURES_H_INCLUDED
7 #define CPPTL_JSON_FEATURES_H_INCLUDED
8 
9 #if !defined(JSON_IS_AMALGAMATION)
10 #include "forwards.h"
11 #endif // if !defined(JSON_IS_AMALGAMATION)
12 
13 #pragma pack(push, 8)
14 
15 namespace Json {
16 
21 class JSON_API Features {
22 public:
29  static Features all();
30 
37  static Features strictMode();
38 
42 
45 
49 
52 
55 };
56 
57 } // namespace Json
58 
59 #pragma pack(pop)
60 
61 #endif // CPPTL_JSON_FEATURES_H_INCLUDED
Configuration passed to reader and writer.
Definition: features.h:21
bool strictRoot_
true if root must be either an array or an object value.
Definition: features.h:48
bool allowComments_
true if comments are allowed. Default: true.
Definition: features.h:44
Features()
Initialize the configuration like JsonConfig::allFeatures;.
static Features all()
A configuration that allows all features and assumes all strings are UTF-8.
static Features strictMode()
A configuration that is strictly compatible with the JSON specification.
bool allowNumericKeys_
true if numeric object key are allowed. Default: false.
Definition: features.h:54
bool allowDroppedNullPlaceholders_
true if dropped null placeholders are allowed. Default: false.
Definition: features.h:51
JSON (JavaScript Object Notation).
Definition: allocator.h:14