NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
json_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 NIM_CPP_WRAPPER_UTIL_JSON_FEATURES_H_INCLUDED
7#define NIM_CPP_WRAPPER_UTIL_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
15namespace nim_cpp_wrapper_util {
16namespace Json {
17
23public:
30 static Features all();
31
38 static Features strictMode();
39
43
45 bool allowComments_{true};
46
49 bool strictRoot_{false};
50
52 bool allowDroppedNullPlaceholders_{false};
53
55 bool allowNumericKeys_{false};
56};
57
58} // namespace Json
59} // namespace nim_cpp_wrapper_util
60
61#pragma pack(pop)
62
63#endif // JSON_FEATURES_H_INCLUDED
Configuration passed to reader and writer. This configuration object can be used to force the Reader ...
Definition: json_features.h:22
Features()
Initialize the configuration like JsonConfig::allFeatures;
#define JSON_API
Definition: config.h:50
JSON (JavaScript Object Notation).
Definition: allocator.h:14