| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * Arduino JSON library
- * Benoit Blanchon 2014 - MIT License
- */
- #pragma once
- #include "JsonObjectBase.h"
- #ifndef ARDUINO_JSON_NO_DEPRECATION_WARNING
- #ifdef __GNUC__
- #define DEPRECATED __attribute__((deprecated))
- #elif defined(_MSC_VER)
- #define DEPRECATED __declspec(deprecated)
- #endif
- #else
- #define DEPRECATED
- #endif
- namespace ArduinoJson
- {
- namespace Generator
- {
- template <int N>
- class JsonObject : public JsonObjectBase
- {
- public:
- JsonObject()
- : JsonObjectBase(items, N)
- {
- }
- private:
- KeyValuePair items[N];
- };
-
- // Obsolete: use JsonObject instead
- template <int N>
- class DEPRECATED JsonHashTable : public JsonObject<N>
- {
- };
- }
- }
|