-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataStore.h
More file actions
42 lines (36 loc) · 957 Bytes
/
DataStore.h
File metadata and controls
42 lines (36 loc) · 957 Bytes
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
#ifndef DATASTORE_H
#define DATASTORE_H
#include <mysql_driver.h>
#include <mysql_connection.h>
#include <cppconn/resultset.h>
#include <string>
#include <cmath>
#include <map>
#include <fstream>
#include <string>
#include <iostream>
#include <mutex>
#include "GPSParser.h"
#include "PaulNovackGlobals.h"
#include "GPSUtils.h"
#include "json.hpp"
#include "AppConfig.h"
#include "mySQLConnectionPool.h"
#include <cppconn/statement.h>
#include <cppconn/prepared_statement.h>
using namespace std;
namespace PaulNovack {
class DataStore {
public:
DataStore(const AppConfig& config);
DataStore(const DataStore& orig);
virtual ~DataStore();
map<int, WayPoint> getWayPoints();
int insertWayPoint(WayPoint wayPoint);
WayPoint updateWayPoint(WayPoint wayPoint);
bool deleteWayPoint(WayPoint wayPoint);
private:
MySQLConnectionPool* connectionPool_;
};
}
#endif /* DATASTORE_H */