forked from Integreight/1Sheeld-Arduino-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JsonKeyChain.h
45 lines (33 loc) · 845 Bytes
/
JsonKeyChain.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
Project: 1Sheeld Library
File: JsonKeyChain.h
Version: 1.4
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2015.1
*/
#ifndef JsonKeyChain_h
#define JsonKeyChain_h
#include "JsonKey.h"
//This number should not exceed 16
#define MAX_JSON_KEY_DEPTH 8
class JsonKeyChain {
public:
JsonKeyChain();
JsonKeyChain(int );
JsonKeyChain(const JsonKeyChain& old);
JsonKeyChain & operator[](int );
JsonKeyChain & operator[](const char *key);
bool operator==(const JsonKeyChain& other);
bool operator!=(const JsonKeyChain& other);
void query();
void queryArrayLength();
void dispose();
~JsonKeyChain();
private:
int counter;
int request;
JsonKey * keysArray[MAX_JSON_KEY_DEPTH];
void sendQueryFrame(byte);
};
#endif