Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include "SAXContentHandlerImpl.h"
|
---|
4 | #include <string>
|
---|
5 |
|
---|
6 | #include "WindowData.h"
|
---|
7 |
|
---|
8 | class LogParser : public SAXContentHandlerImpl
|
---|
9 | {
|
---|
10 | private:
|
---|
11 | static const int defaultMsgDelay = 2000;
|
---|
12 | WindowData * currentWindow;
|
---|
13 | WindowData * currentParent;
|
---|
14 |
|
---|
15 | int msgType;
|
---|
16 | LPARAM lParam;
|
---|
17 | WPARAM wParam;
|
---|
18 |
|
---|
19 | int delay;
|
---|
20 |
|
---|
21 | void sendMessage(HWND hwnd);
|
---|
22 |
|
---|
23 | public:
|
---|
24 | LogParser(void);
|
---|
25 | ~LogParser(void);
|
---|
26 |
|
---|
27 | virtual HRESULT STDMETHODCALLTYPE startElement(
|
---|
28 | wchar_t __RPC_FAR *pwchNamespaceUri,
|
---|
29 | int cchNamespaceUri,
|
---|
30 | wchar_t __RPC_FAR *pwchLocalName,
|
---|
31 | int cchLocalName,
|
---|
32 | wchar_t __RPC_FAR *pwchRawName,
|
---|
33 | int cchRawName,
|
---|
34 | MSXML2::ISAXAttributes __RPC_FAR *pAttributes);
|
---|
35 |
|
---|
36 | virtual HRESULT STDMETHODCALLTYPE endElement(
|
---|
37 | wchar_t __RPC_FAR *pwchNamespaceUri,
|
---|
38 | int cchNamespaceUri,
|
---|
39 | wchar_t __RPC_FAR *pwchLocalName,
|
---|
40 | int cchLocalName,
|
---|
41 | wchar_t __RPC_FAR *pwchRawName,
|
---|
42 | int cchRawName);
|
---|
43 |
|
---|
44 | std::wstring GetAttributeValue(MSXML2::ISAXAttributes __RPC_FAR *pAttributes,
|
---|
45 | std::wstring name, std::wstring defvalue);
|
---|
46 |
|
---|
47 |
|
---|
48 | int getDefaultMsgDelay();
|
---|
49 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.