Tasmota/lib/ArduinoJson-5.13.4/src/ArduinoJson/Data/JsonVariantContent.hpp
Theo Arends fa5711eaaa Update ArduinoJson to 5.13.4
Update ArduinoJson to 5.13.4
2019-01-09 15:32:43 +01:00

28 lines
696 B
C++

// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
#pragma once
#include "JsonFloat.hpp"
#include "JsonInteger.hpp"
namespace ArduinoJson {
// Forward declarations
class JsonArray;
class JsonObject;
namespace Internals {
// A union that defines the actual content of a JsonVariant.
// The enum JsonVariantType determines which member is in use.
union JsonVariantContent {
JsonFloat asFloat; // used for double and float
JsonUInt asInteger; // used for bool, char, short, int and longs
const char* asString; // asString can be null
JsonArray* asArray; // asArray cannot be null
JsonObject* asObject; // asObject cannot be null
};
}
}