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 | #include "JsonFloat.hpp"
|
---|
| 11 | #include "JsonInteger.hpp"
|
---|
| 12 |
|
---|
| 13 | namespace ArduinoJson {
|
---|
| 14 |
|
---|
| 15 | // Forward declarations
|
---|
| 16 | class JsonArray;
|
---|
| 17 | class JsonObject;
|
---|
| 18 |
|
---|
| 19 | namespace Internals {
|
---|
| 20 | // A union that defines the actual content of a JsonVariant.
|
---|
| 21 | // The enum JsonVariantType determines which member is in use.
|
---|
| 22 | union JsonVariantContent {
|
---|
| 23 | JsonFloat asFloat; // used for double and float
|
---|
| 24 | JsonInteger asInteger; // used for bool, char, short, int and longs
|
---|
| 25 | const char* asString; // asString can be null
|
---|
| 26 | JsonArray* asArray; // asArray cannot be null
|
---|
| 27 | JsonObject* asObject; // asObject cannot be null
|
---|
| 28 | };
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.