1 #ifndef CSCOPE_ENTRY_DATA
2 #define CSCOPE_ENTRY_DATA
3 
4 #include "wx/string.h"
5 #include <map>
6 #include <vector>
7 
8 enum {
9 	KindFileNode = 0,
10 	KindSingleEntry
11 };
12 
13 class CscopeEntryData
14 {
15 	wxString m_file;
16 	int m_line;
17 	wxString m_pattern;
18 	wxString m_scope;
19 	int m_kind;
20 
21 public:
22 	CscopeEntryData();
23 	~CscopeEntryData();
24 
25 
26 //Setters
SetFile(const wxString & file)27 	void SetFile(const wxString& file) {
28 		m_file = file;
29 	}
SetKind(const int & kind)30 	void SetKind(const int& kind) {
31 		m_kind = kind;
32 	}
SetLine(const int & line)33 	void SetLine(const int& line) {
34 		m_line = line;
35 	}
SetPattern(const wxString & pattern)36 	void SetPattern(const wxString& pattern) {
37 		m_pattern = pattern;
38 	}
SetScope(const wxString & scope)39 	void SetScope(const wxString& scope) {
40 		m_scope = scope;
41 	}
42 //Getters
GetFile()43 	const wxString& GetFile() const {
44 		return m_file;
45 	}
GetKind()46 	const int& GetKind() const {
47 		return m_kind;
48 	}
GetLine()49 	const int& GetLine() const {
50 		return m_line;
51 	}
GetPattern()52 	const wxString& GetPattern() const {
53 		return m_pattern;
54 	}
GetScope()55 	const wxString& GetScope() const {
56 		return m_scope;
57 	}
58 
59 };
60 
61 typedef std::vector< CscopeEntryData > CscopeResultTable;
62 
63 #endif // CSCOPE_ENTRY_DATA
64