-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPreProcess.h
46 lines (36 loc) · 866 Bytes
/
PreProcess.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
#ifndef PREPROCESS_H
#define PREPROCESS_H
#include<fstream>
#include "ConstDefine.h"
typedef struct VLLT
{
std::string vid;
float lon;
float lat;
int time;
}VLLT;
struct tidLinkTable
{
int tid;
tidLinkTable* next = NULL;
};
class PreProcess
{
public:
std::ifstream fin;
std::ofstream fout;
int maxTid = 0;
PreProcess();
PreProcess(std::string fileName, std::string outFileName);
bool updateMapBound(float lon,float lat);
bool validPoint(float lon, float lat);
virtual ~PreProcess();
VLLT getTraInfoFromString(std::string s);
bool writeTraDataToFile(std::string outFileName);
bool readTraFromFormatedFile(std::string outFileName);
PreProcess & operator=(const PreProcess & pp);
float xmin, xmax, ymin, ymax; // ±ß½ç
protected:
private:
};
#endif // PREPROCESS_H