@digitalshieldfe/react-native-backup-card-sdk 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/android/build.gradle +33 -49
  2. package/android/libs/backupcardsdk.aar +0 -0
  3. package/android/src/main/AndroidManifest.xml +1 -4
  4. package/android/src/main/java/com/ziancube/reactnativebackupcardsdk/BackupCardSdkModule.kt +244 -74
  5. package/android/src/main/java/com/ziancube/reactnativebackupcardsdk/BackupCardSdkPackage.kt +1 -1
  6. package/android/src/main/java/com/ziancube/reactnativebackupcardsdk/nfc/NfcExceptions.kt +11 -0
  7. package/android/src/main/java/com/ziancube/reactnativebackupcardsdk/nfc/NfcUtils.kt +30 -0
  8. package/android/src/main/java/com/ziancube/reactnativebackupcardsdk/utils/MiUtil.kt +74 -0
  9. package/android/src/main/java/com/ziancube/reactnativebackupcardsdk/utils/NfcPermissionUtils.kt +23 -0
  10. package/lib/module/NativeBackupCardSdk.js +3 -0
  11. package/lib/module/NativeBackupCardSdk.js.map +1 -1
  12. package/lib/module/cardOperations.js +27 -0
  13. package/lib/module/cardOperations.js.map +1 -0
  14. package/lib/module/index.js +2 -0
  15. package/lib/module/index.js.map +1 -1
  16. package/lib/module/nfc.js +75 -0
  17. package/lib/module/nfc.js.map +1 -0
  18. package/lib/typescript/src/NativeBackupCardSdk.d.ts +50 -4
  19. package/lib/typescript/src/NativeBackupCardSdk.d.ts.map +1 -1
  20. package/lib/typescript/src/cardOperations.d.ts +7 -0
  21. package/lib/typescript/src/cardOperations.d.ts.map +1 -0
  22. package/lib/typescript/src/index.d.ts +5 -2
  23. package/lib/typescript/src/index.d.ts.map +1 -1
  24. package/lib/typescript/src/nfc.d.ts +28 -0
  25. package/lib/typescript/src/nfc.d.ts.map +1 -0
  26. package/package.json +7 -5
  27. package/src/NativeBackupCardSdk.ts +62 -4
  28. package/src/cardOperations.ts +61 -0
  29. package/src/index.tsx +22 -2
  30. package/src/nfc.ts +74 -0
  31. package/android/consumer-rules.pro +0 -0
  32. package/android/proguard-rules.pro +0 -21
  33. package/android/src/main/java/com/ziancube/backupcardsdk/BackupCardSdk.kt +0 -478
  34. package/android/src/main/java/com/ziancube/backupcardsdk/GPChannelNatives.java +0 -41
  35. package/android/src/main/java/com/ziancube/backupcardsdk/listener/ApiAsyncListener.java +0 -13
  36. package/android/src/main/java/com/ziancube/backupcardsdk/nfc/ApiNfc.java +0 -173
  37. package/android/src/main/java/com/ziancube/backupcardsdk/nfc/ImplNfc.java +0 -39
  38. package/android/src/main/java/com/ziancube/backupcardsdk/nfc/NfcComm.java +0 -115
  39. package/android/src/main/java/com/ziancube/backupcardsdk/utils/ApduParam.java +0 -67
  40. package/android/src/main/java/com/ziancube/backupcardsdk/utils/CommList.java +0 -41
  41. package/android/src/main/java/com/ziancube/backupcardsdk/utils/Utils.java +0 -109
  42. package/android/src/main/jni/CMakeLists.txt +0 -60
  43. package/android/src/main/jni/GPChannel/include/GPChannelSDK.h +0 -306
  44. package/android/src/main/jni/GPChannel/include/context/BaseContext.h +0 -56
  45. package/android/src/main/jni/GPChannel/include/device/ApduBuilder.hpp +0 -72
  46. package/android/src/main/jni/GPChannel/include/utility/Apdu.hpp +0 -166
  47. package/android/src/main/jni/GPChannel/include/utility/Debug.hpp +0 -59
  48. package/android/src/main/jni/GPChannel/include/utility/Singleton.h +0 -34
  49. package/android/src/main/jni/GPChannel/include/utility/mutex.h +0 -24
  50. package/android/src/main/jni/GPChannel/include/utility/trim.hpp +0 -155
  51. package/android/src/main/jni/GPChannel/include/utility/util.h +0 -104
  52. package/android/src/main/jni/GPChannel/include/utility/xFactory.hpp +0 -26
  53. package/android/src/main/jni/GPChannel/include/utility/xManager.hpp +0 -84
  54. package/android/src/main/jni/GPChannel/src/arm64-v8a/libJUB_GPC_APDU_SDK.a +0 -0
  55. package/android/src/main/jni/GPChannel/src/arm64-v8a/libTrezorCrypto.a +0 -0
  56. package/android/src/main/jni/GPChannel/src/armeabi-v7a/libJUB_GPC_APDU_SDK.a +0 -0
  57. package/android/src/main/jni/GPChannel/src/armeabi-v7a/libTrezorCrypto.a +0 -0
  58. package/android/src/main/jni/GPChannel/src/x86/libJUB_GPC_APDU_SDK.a +0 -0
  59. package/android/src/main/jni/GPChannel/src/x86/libTrezorCrypto.a +0 -0
  60. package/android/src/main/jni/src/implJni.cpp +0 -313
  61. package/android/src/main/jni/src/implJni.h +0 -9
  62. package/android/src/main/jni/utils/jsoncpp/AUTHORS +0 -111
  63. package/android/src/main/jni/utils/jsoncpp/CMakeLists.txt +0 -159
  64. package/android/src/main/jni/utils/jsoncpp/LICENSE +0 -55
  65. package/android/src/main/jni/utils/jsoncpp/README.md +0 -135
  66. package/android/src/main/jni/utils/jsoncpp/amalgamate.py +0 -155
  67. package/android/src/main/jni/utils/jsoncpp/appveyor.yml +0 -22
  68. package/android/src/main/jni/utils/jsoncpp/dev.makefile +0 -35
  69. package/android/src/main/jni/utils/jsoncpp/devtools/__init__.py +0 -6
  70. package/android/src/main/jni/utils/jsoncpp/devtools/agent_vmw7.json +0 -33
  71. package/android/src/main/jni/utils/jsoncpp/devtools/agent_vmxp.json +0 -26
  72. package/android/src/main/jni/utils/jsoncpp/devtools/antglob.py +0 -205
  73. package/android/src/main/jni/utils/jsoncpp/devtools/batchbuild.py +0 -278
  74. package/android/src/main/jni/utils/jsoncpp/devtools/fixeol.py +0 -70
  75. package/android/src/main/jni/utils/jsoncpp/devtools/licenseupdater.py +0 -94
  76. package/android/src/main/jni/utils/jsoncpp/devtools/tarball.py +0 -52
  77. package/android/src/main/jni/utils/jsoncpp/doxybuild.py +0 -189
  78. package/android/src/main/jni/utils/jsoncpp/include/CMakeLists.txt +0 -2
  79. package/android/src/main/jni/utils/jsoncpp/include/json/allocator.h +0 -98
  80. package/android/src/main/jni/utils/jsoncpp/include/json/assertions.h +0 -54
  81. package/android/src/main/jni/utils/jsoncpp/include/json/autolink.h +0 -25
  82. package/android/src/main/jni/utils/jsoncpp/include/json/config.h +0 -187
  83. package/android/src/main/jni/utils/jsoncpp/include/json/features.h +0 -61
  84. package/android/src/main/jni/utils/jsoncpp/include/json/forwards.h +0 -37
  85. package/android/src/main/jni/utils/jsoncpp/include/json/json.h +0 -15
  86. package/android/src/main/jni/utils/jsoncpp/include/json/reader.h +0 -411
  87. package/android/src/main/jni/utils/jsoncpp/include/json/value.h +0 -888
  88. package/android/src/main/jni/utils/jsoncpp/include/json/version.h +0 -20
  89. package/android/src/main/jni/utils/jsoncpp/include/json/writer.h +0 -357
  90. package/android/src/main/jni/utils/jsoncpp/makefiles/vs71/jsontest.vcproj +0 -119
  91. package/android/src/main/jni/utils/jsoncpp/makefiles/vs71/lib_json.vcproj +0 -205
  92. package/android/src/main/jni/utils/jsoncpp/makefiles/vs71/test_lib_json.vcproj +0 -130
  93. package/android/src/main/jni/utils/jsoncpp/makerelease.py +0 -390
  94. package/android/src/main/jni/utils/jsoncpp/meson.build +0 -103
  95. package/android/src/main/jni/utils/jsoncpp/pkg-config/jsoncpp.pc.in +0 -9
  96. package/android/src/main/jni/utils/jsoncpp/src/CMakeLists.txt +0 -5
  97. package/android/src/main/jni/utils/jsoncpp/src/jsontestrunner/CMakeLists.txt +0 -25
  98. package/android/src/main/jni/utils/jsoncpp/src/jsontestrunner/main.cpp +0 -333
  99. package/android/src/main/jni/utils/jsoncpp/src/lib_json/CMakeLists.txt +0 -117
  100. package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_reader.cpp +0 -2060
  101. package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_tool.h +0 -114
  102. package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_value.cpp +0 -1661
  103. package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_valueiterator.inl +0 -167
  104. package/android/src/main/jni/utils/jsoncpp/src/lib_json/json_writer.cpp +0 -1233
  105. package/android/src/main/jni/utils/jsoncpp/src/lib_json/version.h.in +0 -20
  106. package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/CMakeLists.txt +0 -38
  107. package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/jsontest.cpp +0 -457
  108. package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/jsontest.h +0 -286
  109. package/android/src/main/jni/utils/jsoncpp/src/test_lib_json/main.cpp +0 -2606
  110. package/android/src/main/jni/utils/jsoncpp/travis.sh +0 -23
  111. package/android/src/main/jni/utils/jsoncpp/version +0 -1
  112. package/android/src/main/jni/utils/jsoncpp/version.in +0 -1
  113. package/android/src/main/jni/utils/logUtils.cpp +0 -108
  114. package/android/src/main/jni/utils/logUtils.h +0 -87
  115. package/android/src/main/jni/utils/mSIGNA/stdutils/uchar_vector.h +0 -614
@@ -1,411 +0,0 @@
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_READER_H_INCLUDED
7
- #define CPPTL_JSON_READER_H_INCLUDED
8
-
9
- #if !defined(JSON_IS_AMALGAMATION)
10
- #include "features.h"
11
- #include "value.h"
12
- #endif // if !defined(JSON_IS_AMALGAMATION)
13
- #include <deque>
14
- #include <iosfwd>
15
- #include <stack>
16
- #include <string>
17
- #include <istream>
18
-
19
- // Disable warning C4251: <data member>: <type> needs to have dll-interface to
20
- // be used by...
21
- #if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
22
- #pragma warning(push)
23
- #pragma warning(disable : 4251)
24
- #endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
25
-
26
- #pragma pack(push, 8)
27
-
28
- namespace Json {
29
-
30
- /** \brief Unserialize a <a HREF="http://www.json.org">JSON</a> document into a
31
- *Value.
32
- *
33
- * \deprecated Use CharReader and CharReaderBuilder.
34
- */
35
- class JSONCPP_DEPRECATED("Use CharReader and CharReaderBuilder instead") JSON_API Reader {
36
- public:
37
- typedef char Char;
38
- typedef const Char* Location;
39
-
40
- /** \brief An error tagged with where in the JSON text it was encountered.
41
- *
42
- * The offsets give the [start, limit) range of bytes within the text. Note
43
- * that this is bytes, not codepoints.
44
- *
45
- */
46
- struct StructuredError {
47
- ptrdiff_t offset_start;
48
- ptrdiff_t offset_limit;
49
- JSONCPP_STRING message;
50
- };
51
-
52
- /** \brief Constructs a Reader allowing all features
53
- * for parsing.
54
- */
55
- Reader();
56
-
57
- /** \brief Constructs a Reader allowing the specified feature set
58
- * for parsing.
59
- */
60
- Reader(const Features& features);
61
-
62
- /** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a>
63
- * document.
64
- * \param document UTF-8 encoded string containing the document to read.
65
- * \param root [out] Contains the root value of the document if it was
66
- * successfully parsed.
67
- * \param collectComments \c true to collect comment and allow writing them
68
- * back during
69
- * serialization, \c false to discard comments.
70
- * This parameter is ignored if
71
- * Features::allowComments_
72
- * is \c false.
73
- * \return \c true if the document was successfully parsed, \c false if an
74
- * error occurred.
75
- */
76
- bool
77
- parse(const std::string& document, Value& root, bool collectComments = true);
78
-
79
- /** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a>
80
- document.
81
- * \param beginDoc Pointer on the beginning of the UTF-8 encoded string of the
82
- document to read.
83
- * \param endDoc Pointer on the end of the UTF-8 encoded string of the
84
- document to read.
85
- * Must be >= beginDoc.
86
- * \param root [out] Contains the root value of the document if it was
87
- * successfully parsed.
88
- * \param collectComments \c true to collect comment and allow writing them
89
- back during
90
- * serialization, \c false to discard comments.
91
- * This parameter is ignored if
92
- Features::allowComments_
93
- * is \c false.
94
- * \return \c true if the document was successfully parsed, \c false if an
95
- error occurred.
96
- */
97
- bool parse(const char* beginDoc,
98
- const char* endDoc,
99
- Value& root,
100
- bool collectComments = true);
101
-
102
- /// \brief Parse from input stream.
103
- /// \see Json::operator>>(std::istream&, Json::Value&).
104
- bool parse(JSONCPP_ISTREAM& is, Value& root, bool collectComments = true);
105
-
106
- /** \brief Returns a user friendly string that list errors in the parsed
107
- * document.
108
- * \return Formatted error message with the list of errors with their location
109
- * in
110
- * the parsed document. An empty string is returned if no error
111
- * occurred
112
- * during parsing.
113
- * \deprecated Use getFormattedErrorMessages() instead (typo fix).
114
- */
115
- JSONCPP_DEPRECATED("Use getFormattedErrorMessages() instead.")
116
- JSONCPP_STRING getFormatedErrorMessages() const;
117
-
118
- /** \brief Returns a user friendly string that list errors in the parsed
119
- * document.
120
- * \return Formatted error message with the list of errors with their location
121
- * in
122
- * the parsed document. An empty string is returned if no error
123
- * occurred
124
- * during parsing.
125
- */
126
- JSONCPP_STRING getFormattedErrorMessages() const;
127
-
128
- /** \brief Returns a vector of structured erros encounted while parsing.
129
- * \return A (possibly empty) vector of StructuredError objects. Currently
130
- * only one error can be returned, but the caller should tolerate
131
- * multiple
132
- * errors. This can occur if the parser recovers from a non-fatal
133
- * parse error and then encounters additional errors.
134
- */
135
- std::vector<StructuredError> getStructuredErrors() const;
136
-
137
- /** \brief Add a semantic error message.
138
- * \param value JSON Value location associated with the error
139
- * \param message The error message.
140
- * \return \c true if the error was successfully added, \c false if the
141
- * Value offset exceeds the document size.
142
- */
143
- bool pushError(const Value& value, const JSONCPP_STRING& message);
144
-
145
- /** \brief Add a semantic error message with extra context.
146
- * \param value JSON Value location associated with the error
147
- * \param message The error message.
148
- * \param extra Additional JSON Value location to contextualize the error
149
- * \return \c true if the error was successfully added, \c false if either
150
- * Value offset exceeds the document size.
151
- */
152
- bool pushError(const Value& value, const JSONCPP_STRING& message, const Value& extra);
153
-
154
- /** \brief Return whether there are any errors.
155
- * \return \c true if there are no errors to report \c false if
156
- * errors have occurred.
157
- */
158
- bool good() const;
159
-
160
- private:
161
- enum TokenType {
162
- tokenEndOfStream = 0,
163
- tokenObjectBegin,
164
- tokenObjectEnd,
165
- tokenArrayBegin,
166
- tokenArrayEnd,
167
- tokenString,
168
- tokenNumber,
169
- tokenTrue,
170
- tokenFalse,
171
- tokenNull,
172
- tokenArraySeparator,
173
- tokenMemberSeparator,
174
- tokenComment,
175
- tokenError
176
- };
177
-
178
- class Token {
179
- public:
180
- TokenType type_;
181
- Location start_;
182
- Location end_;
183
- };
184
-
185
- class ErrorInfo {
186
- public:
187
- Token token_;
188
- JSONCPP_STRING message_;
189
- Location extra_;
190
- };
191
-
192
- typedef std::deque<ErrorInfo> Errors;
193
-
194
- bool readToken(Token& token);
195
- void skipSpaces();
196
- bool match(Location pattern, int patternLength);
197
- bool readComment();
198
- bool readCStyleComment();
199
- bool readCppStyleComment();
200
- bool readString();
201
- void readNumber();
202
- bool readValue();
203
- bool readObject(Token& token);
204
- bool readArray(Token& token);
205
- bool decodeNumber(Token& token);
206
- bool decodeNumber(Token& token, Value& decoded);
207
- bool decodeString(Token& token);
208
- bool decodeString(Token& token, JSONCPP_STRING& decoded);
209
- bool decodeDouble(Token& token);
210
- bool decodeDouble(Token& token, Value& decoded);
211
- bool decodeUnicodeCodePoint(Token& token,
212
- Location& current,
213
- Location end,
214
- unsigned int& unicode);
215
- bool decodeUnicodeEscapeSequence(Token& token,
216
- Location& current,
217
- Location end,
218
- unsigned int& unicode);
219
- bool addError(const JSONCPP_STRING& message, Token& token, Location extra = 0);
220
- bool recoverFromError(TokenType skipUntilToken);
221
- bool addErrorAndRecover(const JSONCPP_STRING& message,
222
- Token& token,
223
- TokenType skipUntilToken);
224
- void skipUntilSpace();
225
- Value& currentValue();
226
- Char getNextChar();
227
- void
228
- getLocationLineAndColumn(Location location, int& line, int& column) const;
229
- JSONCPP_STRING getLocationLineAndColumn(Location location) const;
230
- void addComment(Location begin, Location end, CommentPlacement placement);
231
- void skipCommentTokens(Token& token);
232
-
233
- static bool containsNewLine(Location begin, Location end);
234
- static JSONCPP_STRING normalizeEOL(Location begin, Location end);
235
-
236
- typedef std::stack<Value*> Nodes;
237
- Nodes nodes_;
238
- Errors errors_;
239
- JSONCPP_STRING document_;
240
- Location begin_;
241
- Location end_;
242
- Location current_;
243
- Location lastValueEnd_;
244
- Value* lastValue_;
245
- JSONCPP_STRING commentsBefore_;
246
- Features features_;
247
- bool collectComments_;
248
- }; // Reader
249
-
250
- /** Interface for reading JSON from a char array.
251
- */
252
- class JSON_API CharReader {
253
- public:
254
- virtual ~CharReader() {}
255
- /** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a>
256
- document.
257
- * The document must be a UTF-8 encoded string containing the document to read.
258
- *
259
- * \param beginDoc Pointer on the beginning of the UTF-8 encoded string of the
260
- document to read.
261
- * \param endDoc Pointer on the end of the UTF-8 encoded string of the
262
- document to read.
263
- * Must be >= beginDoc.
264
- * \param root [out] Contains the root value of the document if it was
265
- * successfully parsed.
266
- * \param errs [out] Formatted error messages (if not NULL)
267
- * a user friendly string that lists errors in the parsed
268
- * document.
269
- * \return \c true if the document was successfully parsed, \c false if an
270
- error occurred.
271
- */
272
- virtual bool parse(
273
- char const* beginDoc, char const* endDoc,
274
- Value* root, JSONCPP_STRING* errs) = 0;
275
-
276
- class JSON_API Factory {
277
- public:
278
- virtual ~Factory() {}
279
- /** \brief Allocate a CharReader via operator new().
280
- * \throw std::exception if something goes wrong (e.g. invalid settings)
281
- */
282
- virtual CharReader* newCharReader() const = 0;
283
- }; // Factory
284
- }; // CharReader
285
-
286
- /** \brief Build a CharReader implementation.
287
-
288
- Usage:
289
- \code
290
- using namespace Json;
291
- CharReaderBuilder builder;
292
- builder["collectComments"] = false;
293
- Value value;
294
- JSONCPP_STRING errs;
295
- bool ok = parseFromStream(builder, std::cin, &value, &errs);
296
- \endcode
297
- */
298
- class JSON_API CharReaderBuilder : public CharReader::Factory {
299
- public:
300
- // Note: We use a Json::Value so that we can add data-members to this class
301
- // without a major version bump.
302
- /** Configuration of this builder.
303
- These are case-sensitive.
304
- Available settings (case-sensitive):
305
- - `"collectComments": false or true`
306
- - true to collect comment and allow writing them
307
- back during serialization, false to discard comments.
308
- This parameter is ignored if allowComments is false.
309
- - `"allowComments": false or true`
310
- - true if comments are allowed.
311
- - `"strictRoot": false or true`
312
- - true if root must be either an array or an object value
313
- - `"allowDroppedNullPlaceholders": false or true`
314
- - true if dropped null placeholders are allowed. (See StreamWriterBuilder.)
315
- - `"allowNumericKeys": false or true`
316
- - true if numeric object keys are allowed.
317
- - `"allowSingleQuotes": false or true`
318
- - true if '' are allowed for strings (both keys and values)
319
- - `"stackLimit": integer`
320
- - Exceeding stackLimit (recursive depth of `readValue()`) will
321
- cause an exception.
322
- - This is a security issue (seg-faults caused by deeply nested JSON),
323
- so the default is low.
324
- - `"failIfExtra": false or true`
325
- - If true, `parse()` returns false when extra non-whitespace trails
326
- the JSON value in the input string.
327
- - `"rejectDupKeys": false or true`
328
- - If true, `parse()` returns false when a key is duplicated within an object.
329
- - `"allowSpecialFloats": false or true`
330
- - If true, special float values (NaNs and infinities) are allowed
331
- and their values are lossfree restorable.
332
-
333
- You can examine 'settings_` yourself
334
- to see the defaults. You can also write and read them just like any
335
- JSON Value.
336
- \sa setDefaults()
337
- */
338
- Json::Value settings_;
339
-
340
- CharReaderBuilder();
341
- ~CharReaderBuilder() JSONCPP_OVERRIDE;
342
-
343
- CharReader* newCharReader() const JSONCPP_OVERRIDE;
344
-
345
- /** \return true if 'settings' are legal and consistent;
346
- * otherwise, indicate bad settings via 'invalid'.
347
- */
348
- bool validate(Json::Value* invalid) const;
349
-
350
- /** A simple way to update a specific setting.
351
- */
352
- Value& operator[](JSONCPP_STRING key);
353
-
354
- /** Called by ctor, but you can use this to reset settings_.
355
- * \pre 'settings' != NULL (but Json::null is fine)
356
- * \remark Defaults:
357
- * \snippet src/lib_json/json_reader.cpp CharReaderBuilderDefaults
358
- */
359
- static void setDefaults(Json::Value* settings);
360
- /** Same as old Features::strictMode().
361
- * \pre 'settings' != NULL (but Json::null is fine)
362
- * \remark Defaults:
363
- * \snippet src/lib_json/json_reader.cpp CharReaderBuilderStrictMode
364
- */
365
- static void strictMode(Json::Value* settings);
366
- };
367
-
368
- /** Consume entire stream and use its begin/end.
369
- * Someday we might have a real StreamReader, but for now this
370
- * is convenient.
371
- */
372
- bool JSON_API parseFromStream(
373
- CharReader::Factory const&,
374
- JSONCPP_ISTREAM&,
375
- Value* root, std::string* errs);
376
-
377
- /** \brief Read from 'sin' into 'root'.
378
-
379
- Always keep comments from the input JSON.
380
-
381
- This can be used to read a file into a particular sub-object.
382
- For example:
383
- \code
384
- Json::Value root;
385
- cin >> root["dir"]["file"];
386
- cout << root;
387
- \endcode
388
- Result:
389
- \verbatim
390
- {
391
- "dir": {
392
- "file": {
393
- // The input stream JSON would be nested here.
394
- }
395
- }
396
- }
397
- \endverbatim
398
- \throw std::exception on parse error.
399
- \see Json::operator<<()
400
- */
401
- JSON_API JSONCPP_ISTREAM& operator>>(JSONCPP_ISTREAM&, Value&);
402
-
403
- } // namespace Json
404
-
405
- #pragma pack(pop)
406
-
407
- #if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
408
- #pragma warning(pop)
409
- #endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
410
-
411
- #endif // CPPTL_JSON_READER_H_INCLUDED