Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[d8ace1]: src / core / XML / MSXML / MFileXMLProcessor.h Maximize Restore History

Download this file

MFileXMLProcessor.h    65 lines (52 with data), 2.1 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Copyright (c) 2003-2013 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
// MFileXMLProcessor.h : header file
//
#ifndef __MFILEXMLPROCESSOR_H
#define __MFILEXMLPROCESSOR_H
#include "../../UnknownField.h"
#include "../../Command.h"
#include "os/typedefs.h"
#include "os/UUID.h"
#include <vector>
class PWScore;
class MFileXMLProcessor
{
public:
MFileXMLProcessor(PWScore *pcore, UUIDVector *pPossible_Aliases,
UUIDVector *pPossible_Shortcuts, MultiCommands *p_multicmds,
CReport *prpt);
~MFileXMLProcessor();
bool Process(const bool &bvalidation, const stringT &ImportedPrefix,
const stringT &strXMLFileName, const stringT &strXSDFileName,
const bool &bImportPSWDsOnly, int &nITER);
stringT getXMLErrors() {return m_strXMLErrors;}
stringT getSkippedList() {return m_strSkippedList;}
stringT getRenameList() {return m_strRenameList;}
stringT getPWHErrorList() {return m_strPWHErrorList;}
int getNumEntriesValidated() {return m_numEntriesValidated;}
int getNumEntriesImported() {return m_numEntriesImported;}
int getNumEntriesSkipped() {return m_numEntriesSkipped;}
int getNumEntriesRenamed() {return m_numEntriesRenamed;}
int getNumEntriesPWHErrors() {return m_numEntriesPWHErrors;}
int getNumNoPolicies() {return m_numNoPolicies;}
int getNumRenamedPolicies() const {return m_numRenamedPolicies;}
private:
PWScore *m_pXMLcore;
UUIDVector *m_pPossible_Aliases;
UUIDVector *m_pPossible_Shortcuts;
MultiCommands *m_pmulticmds;
CReport *m_prpt;
stringT m_strXMLErrors, m_strSkippedList, m_strPWHErrorList, m_strRenameList;
int m_numEntriesValidated, m_numEntriesImported, m_numEntriesSkipped;
int m_numEntriesPWHErrors, m_numEntriesRenamed;
int m_numRenamedPolicies, m_numNoPolicies;
TCHAR m_delimiter;
bool m_bValidation;
};
#endif /* __MFILEXMLPROCESSOR_H */