-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXMLProc.hpp
77 lines (62 loc) · 1.85 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
// 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 MakeConfigChange();
// 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_element
_TCHAR const * GetElement();
void SetElement(const _TCHAR *element);
// Get/Set m_attribute
_TCHAR const * GetAttribute();
void SetAttribute(const _TCHAR *attribute);
// Get/Set m_value
_TCHAR const * GetValue();
void SetValue(const _TCHAR *value);
// Get/Set m_slashInversion
bool IsInversible();
void SetSlashInversion(bool inversion);
void InverseSlash();
// Get/Set m_removeTrailSlash
bool IsRemoveTrailSlash();
void SetRemoveTrailSlash(bool removeTrailSlash);
void RemoveTrailSlash();
// Get/Set m_readMode
bool IsReadMode();
void SetReadMode(bool readMode);
private:
protected:
bool m_verbose;
_TCHAR m_configFile[256];
_TCHAR m_element[256];
_TCHAR m_attribute[256];
_TCHAR m_value[256];
bool m_slashInversion;
bool m_removeTrailSlash;
bool m_readMode;
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_)