source: NonGTP/Xerces/xerces/include/xercesc/internal/XMLScannerResolver.hpp @ 358

Revision 358, 3.0 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 2002,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Log: XMLScannerResolver.hpp,v $
19 * Revision 1.5  2004/09/08 13:56:14  peiyongz
20 * Apache License Version 2.0
21 *
22 * Revision 1.4  2003/07/10 19:47:24  peiyongz
23 * Stateless Grammar: Initialize scanner with grammarResolver,
24 *                                creating grammar through grammarPool
25 *
26 * Revision 1.3  2003/05/16 21:36:58  knoaman
27 * Memory manager implementation: Modify constructors to pass in the memory manager.
28 *
29 * Revision 1.2  2003/05/15 18:26:29  knoaman
30 * Partial implementation of the configurable memory manager.
31 *
32 * Revision 1.1  2002/12/04 01:44:21  knoaman
33 * Initial check-in.
34 *
35 */
36
37#if !defined(XMLSCANNERRESOLVER_HPP)
38#define XMLSCANNERRESOLVER_HPP
39
40#include <xercesc/internal/XMLScanner.hpp>
41
42XERCES_CPP_NAMESPACE_BEGIN
43
44class XMLValidator;
45class XMLDocumentHandler;
46class XMLErrorReporter;
47class DocTypeHandler;
48class XMLEntityHandler;
49
50class XMLPARSER_EXPORT XMLScannerResolver
51{
52public:
53    // -----------------------------------------------------------------------
54    //  Public class methods
55    // -----------------------------------------------------------------------
56    static XMLScanner* resolveScanner
57    (
58          const XMLCh* const   scannerName
59        , XMLValidator* const  valToAdopt
60        , GrammarResolver* const grammarResolver
61        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
62    );
63
64    static XMLScanner* resolveScanner
65    (
66          const XMLCh* const        scannerName
67        , XMLDocumentHandler* const docHandler
68        , DocTypeHandler* const     docTypeHandler
69        , XMLEntityHandler* const   entityHandler
70        , XMLErrorReporter* const   errReporter
71        , XMLValidator* const       valToAdopt
72        , GrammarResolver* const    grammarResolver
73        , MemoryManager* const      manager = XMLPlatformUtils::fgMemoryManager
74    );
75
76    static XMLScanner* getDefaultScanner
77    (
78          XMLValidator* const  valToAdopt
79        , GrammarResolver* const grammarResolver
80        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
81    );
82
83private :
84
85    // -----------------------------------------------------------------------
86    //  Unimplemented constructor and destructor
87    // -----------------------------------------------------------------------
88    XMLScannerResolver();
89    ~XMLScannerResolver();
90};
91
92XERCES_CPP_NAMESPACE_END
93
94#endif
Note: See TracBrowser for help on using the repository browser.