-
Notifications
You must be signed in to change notification settings - Fork 0
/
preprocess.h
54 lines (32 loc) · 1.42 KB
/
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
47
48
49
50
51
52
53
54
#pragma once
#include "STPoint.h"
#include "STTrajectory.h"
#include "ConstDefine.h"
//using namespace std;
class Preprocess {
public:
std::ifstream fin;
std::ofstream fout;
// ûɶÓÃ
std::map<std::string, int> trajdict; // trajname trajid
std::map<std::string, int> venuesdict; // venuesname venuesid
// std::map<std::string, int> keyworddict; // keyword keyewordid in DICTINARY
// funcs need for read from outside
// python is as well actually
// funcs need for write to outside
void VenuesExtraction(std::string fileName, std::string outFileName);
void TipsExtraction(std::string fileName);
// for read into main parameter
void ReadPointDBLL(std::vector<STPoint> &pointdb, std::string fileName);
void ReadPointDBKeyword(std::vector<STPoint> &pointdb, std::string fileName);
void ReadTrajDBPointID(std::vector<STTrajectory> &trajdb, std::string fileName,std::vector<STPoint> &pointdb);
void ReadTrajDBPoint(std::vector<STTrajectory> &trajdb, std::vector<STPoint> &pointdb);
void ReadPointDBLLV2(std::vector<STPoint> &pointdb, std::string fileName);
// next 3: not modified yet!
void ReadPointDBKeywordV2(std::vector<STPoint> &pointdb, std::string fileName);
void ReadTrajDBPointIDV2(std::vector<STTrajectory> &trajdb, std::string fileName, std::vector<STPoint> &pointdb);
void ReadTrajDBPointV2(std::vector<STTrajectory> &trajdb, std::vector<STPoint> &pointdb);
//void getInvertedIndex();
protected:
private:
};