-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSearchItem.h
More file actions
49 lines (36 loc) · 1.01 KB
/
Copy pathSearchItem.h
File metadata and controls
49 lines (36 loc) · 1.01 KB
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
// SearchItem.h: interface for the SearchItem class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SEARCHITEM_H__BFA4E822_E43A_11D6_92A3_0000E89F396C__INCLUDED_)
#define AFX_SEARCHITEM_H__BFA4E822_E43A_11D6_92A3_0000E89F396C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class MoveNode;
class SearchItem
{
public:
enum MergeKind
{
ONE_LINE_COMMENT,
MULTI_LINE_COMMENT,
BOARD_TEXT,
NONE
};
explicit SearchItem(MoveNode* moveNode);
SearchItem(MoveNode* moveNode, int nMatch);
SearchItem(MoveNode* moveNode, const CString& mergeText, MergeKind kind);
MoveNode* getMoveNode() const;
void setMoveNode(MoveNode* ptr);
CString getMergeText() const;
void emptyMergeText();
MergeKind getKind() const;
int getMatch() const;
bool operator==(SearchItem& item);
private:
MoveNode* mMoveNode;
CString mMergeText;
MergeKind mKind;
int mMatch;
};
#endif // !defined(AFX_SEARCHITEM_H__BFA4E822_E43A_11D6_92A3_0000E89F396C__INCLUDED_)