forked from BeeeOn/gateway-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParameters.h
46 lines (38 loc) · 961 Bytes
/
Parameters.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
46
/**
* @file Parameters.h
* @Author BeeeOn team (MS)
* @date April, 2016
* @brief
*/
#ifndef PARAMETERS_H
#define PARAMETERS_H
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#include <Poco/AutoPtr.h>
#include <Poco/Logger.h>
#include <Poco/Net/NetworkInterface.h>
#include <Poco/Util/IniFileConfiguration.h>
#include "Aggregator.h"
#include "utils.h"
class Parameters {
public:
Parameters(Aggregator &_agg, IOTMessage _msg);
bool cmdFromServer(Command cmd);
CmdParam askServer(CmdParam request);
private:
std::string ada_type;
Poco::Logger& log;
Aggregator& agg;
IOTMessage msg;
std::vector<std::pair<std::string, std::string> > euides;
std::vector<std::string> getIP();
void allsensors(CmdParam incomer);
void justPrintToLog(CmdParam incomer);
CmdParam getDummy(CmdParam incomer);
CmdParam getLocalIp(CmdParam incomer);
CmdParam getGatetype(CmdParam incomer);
};
#endif //PARAMETERS_H