Fledge
An open source edge computing platform for industrial users
stats_history.h
1 #ifndef _STATISTICS_HISTORY_H
2 #define _STATISTICS_HISTORY_H
3 
4 /*
5  * Fledge Statistics History
6  *
7  * Copyright (c) 2018 Dianomic Systems
8  *
9  * Released under the Apache 2.0 Licence
10  *
11  * Author: Mark Riddoch
12  */
13 
14 #include <process.h>
15 #include <vector>
16 #include <string>
17 #include <utility>
18 
19 
24 {
25  public:
26  // Constructor:
27  StatsHistory(int argc, char** argv);
28  // Destructor
29  ~StatsHistory();
30 
31  void run() const;
32 
33  private:
34  void processKey(const std::string& key, std::vector<InsertValues> &historyValues,
35  std::vector<std::pair<InsertValue *, Where *> > &updateValues, std::string dateTimeStr, int val , int prev) const;
36  std::string getTime(void) const;
37 
38 
39 };
40 
41 #endif
Fledge process base class.
Definition: process.h:21
StatisticsHisotry class.
Definition: stats_history.h:23
StatsHistory(int argc, char **argv)
Constructor for Statistics history task.
Definition: stats_history.cpp:36
~StatsHistory()
StatsHistory class methods.
Definition: stats_history.cpp:44
void run() const
Statisitics History run method, called by the base class to start the process and do the actual work...
Definition: stats_history.cpp:52