-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXMLProc.hpp
86 lines (68 loc) · 1.99 KB
/
XMLProc.hpp
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// XMLProc.h: interface for the CXMLProc class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_XMLPROC_H__98F73F2A_7E4C_4D14_AF61_06664CED6C51__INCLUDED_)
#define AFX_XMLPROC_H__98F73F2A_7E4C_4D14_AF61_06664CED6C51__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
XERCES_CPP_NAMESPACE_USE
XALAN_CPP_NAMESPACE_USE
class CXMLProc
{
public:
CXMLProc();
virtual ~CXMLProc();
int Parse();
int PrepareValue();
// Get/Set m_verbose
bool const GetVerbose();
void SetVerbose(const bool verbose);
// Get/Set m_configFile
_TCHAR const * GetConfigFile();
void SetConfigFile(const _TCHAR *configFile);
// Get/Set m_arrayTag
_TCHAR const * GetArrayTag();
void SetArrayTag(const _TCHAR *arrayTag);
// Get/Set m_multiSep
_TCHAR const * GetMultiSep();
void SetMultiSep(const _TCHAR *multiSep);
// Get/Set m_useKey
bool const IsUseKey();
void SetUseKey();
// Get/Set m_selector
_TCHAR const * GetSelector();
void SetSelector(const _TCHAR *selector);
// Get/Set m_value
_TCHAR const * GetValue();
void SetValue(const _TCHAR *value);
// Get/Set m_versionInfo
bool const IsVersionInfo();
void OmitVersionInfo();
// Get/Set m_valueInMemory
bool const IsValueInMemory();
void SetValueInMemory();
// Get/Set m_valuePtr
_TCHAR const * GetValuePtr();
void SetValuePtr(_TCHAR const *value);
private:
protected:
bool m_verbose;
bool m_useKey;
bool m_versionInfo;
_TCHAR m_configFile[256];
_TCHAR m_arrayTag[64];
_TCHAR m_selector[256];
_TCHAR m_value[2048];
_TCHAR m_multiSep[32];
_TCHAR *m_valuePtr;
bool m_valueInMemory;
XercesDOMParser *parser;
SAXErrorHandler *errHandler;
DOMDocument* theXercesDocument;
XalanDocument* theDocument;
XercesDOMSupport* theDOMSupport;
XalanDocumentPrefixResolver* thePrefixResolver;
XercesParserLiaison* theLiaison;
};
#endif // !defined(AFX_XMLPROC_H__98F73F2A_7E4C_4D14_AF61_06664CED6C51__INCLUDED_)