-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessData.cpp
More file actions
executable file
·36 lines (27 loc) · 958 Bytes
/
processData.cpp
File metadata and controls
executable file
·36 lines (27 loc) · 958 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
/*
* ==========================================================================================
* Name : processData.cpp
* Description : student code for Assignment 2 - Data structures and Algorithms - Fall 2017
* ==========================================================================================
*/
#include <iostream>
#include <vector>
#include <functional>
#include <math.h>
#include "requestLib.h"
#include "dbLib.h"
using namespace std;
#define GPS_DISTANCE_ERROR 0.005
bool initVMGlobalData(void** pGData) {
// TODO: allocate and initialize global data
// return false if failed
return true;
}
void releaseVMGlobalData(void* pGData) {
// TODO: do your cleanup, left this empty if you don't have any dynamically allocated data
}
bool processRequest(VM_Request &request, L1List<VM_Record> &recordList, void *pGData) {
// TODO: Your code goes here
// return false for invlaid events
return true;
}