restructuring
[iotcloud.git] / src / server / iotquery.h
1 #ifndef IOTQUERY_H
2 #define IOTQUERY_H
3 #include <iostream>
4 #include "fcgio.h"
5 #include "fcgi_stdio.h"
6 #include <dirent.h>
7
8 class IoTQuery {
9  public:
10   IoTQuery(FCGX_Request * request);
11   ~IoTQuery();
12   void processQuery();
13   
14  private:
15   void parseQuery();
16   void getDirectory();
17   void readData();
18   int checkDirectory();
19   int openMaxFile();
20
21   FCGX_Request * request;
22   char *data;
23   char *directory;
24   const char * uri;
25   const char * query;
26   const char * method;
27   const char * iotcloudroot;
28   DIR *dir;
29   long length;
30   int fd;
31 };
32 #endif