Rev | Line | |
---|
[209] | 1 | // Copyright Benoit Blanchon 2014-2016
|
---|
| 2 | // MIT License
|
---|
| 3 | //
|
---|
| 4 | // Arduino JSON library
|
---|
| 5 | // https://github.com/bblanchon/ArduinoJson
|
---|
| 6 | // If you like this project, please add a star!
|
---|
| 7 |
|
---|
| 8 | #pragma once
|
---|
| 9 |
|
---|
| 10 | namespace ArduinoJson {
|
---|
| 11 | class JsonArray;
|
---|
| 12 | class JsonObject;
|
---|
| 13 |
|
---|
| 14 | namespace Internals {
|
---|
| 15 |
|
---|
| 16 | // Enumerated type to know the current type of a JsonVariant.
|
---|
| 17 | // The value determines which member of JsonVariantContent is used.
|
---|
| 18 | enum JsonVariantType {
|
---|
| 19 | JSON_UNDEFINED, // the JsonVariant has not been initialized
|
---|
| 20 | JSON_UNPARSED, // the JsonVariant contains an unparsed string
|
---|
| 21 | JSON_STRING, // the JsonVariant stores a const char*
|
---|
| 22 | JSON_BOOLEAN, // the JsonVariant stores a bool
|
---|
| 23 | JSON_INTEGER, // the JsonVariant stores an integer
|
---|
| 24 | JSON_ARRAY, // the JsonVariant stores a pointer to a JsonArray
|
---|
| 25 | JSON_OBJECT, // the JsonVariant stores a pointer to a JsonObject
|
---|
| 26 |
|
---|
| 27 | // The following values are reserved for float values
|
---|
| 28 | // Multiple values are used for double, depending on the number of decimal
|
---|
| 29 | // digits that must be printed in the JSON output.
|
---|
| 30 | // This little trick allow to save one extra member in JsonVariant
|
---|
| 31 | JSON_FLOAT_0_DECIMALS
|
---|
| 32 | // JSON_FLOAT_1_DECIMAL
|
---|
| 33 | // JSON_FLOAT_2_DECIMALS
|
---|
| 34 | // ...
|
---|
| 35 | };
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.