forked from june505/SearchEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
29 lines (25 loc) · 709 Bytes
/
Copy pathtest.cpp
File metadata and controls
29 lines (25 loc) · 709 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
/*************************************************************************
> File Name: test.cpp
> Author:HOU_JUN
> Mail: june506@163.com
> Created Time: Tue 08 Sep 2015 02:17:48 AM PDT
************************************************************************/
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include "./DirScan/DirScan.hpp"
#include "./DuplicateRemoval/DuplicateRemoval.hpp"
using namespace Simhash;
int main()
{
std::vector<std::string> oldVec;
DirScan ds(oldVec);
ds.traverse("/home/june505/yuliao");
ds.print();
std::vector<std::string> newVec;
std::set<std::string> hashcode;
DuplicateRemoval dr(oldVec,newVec,hashcode);
dr.handle();
return 0;
}