-
Notifications
You must be signed in to change notification settings - Fork 7
/
template.h
40 lines (33 loc) · 824 Bytes
/
template.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
#ifndef TEMPLATENODE_H
#define TEMPLATENODE_H
#include <iostream>
#include <string>
#include <set>
#include <string>
using namespace std;
class templateNode{
public:
// static set<string> split;//加一个固定的set,split
static int sum;
// static templateNode **allTemplates;
// static int ***intData;
// static string ***stringData;
// static int *topPointer;
int Eid;
string *templates;
int length;
int paraLength;
int intLength;
int stringLength;
int *intIndex;
int *stringIndex;
//constructor, need Eid, tokens,and length
templateNode(int Eid,string *logMessage,int length);
~templateNode();
//the match function foe match,need length
int matchMatch(string *logMessage,int logLength);
static void reset();
void initPara();
void print();
};
#endif