source: icXML/icXML-devel/tests/src/XSTSHarness/XMLHarnessHandlers.hpp

Last change on this file was 2726, checked in by cameron, 7 years ago

Add original Xerces tests and samples directories

File size: 2.1 KB
RevLine 
[2726]1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements.  See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License.  You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id: XMLHarnessHandlers.hpp 781475 2009-06-03 17:00:27Z amassari $
20 */
21
22
23// ---------------------------------------------------------------------------
24//  Includes
25// ---------------------------------------------------------------------------
26#include "XSTSHarness.hpp"
27#include <xercesc/sax2/SAX2XMLReader.hpp>
28#include <xercesc/sax2/Attributes.hpp>
29#include <xercesc/util/XMLURL.hpp>
30#include <xercesc/util/RefStackOf.hpp>
31
32XERCES_CPP_NAMESPACE_USE
33
34class XMLHarnessHandlers : public BaseHarnessHandlers
35{
36public:
37    // -----------------------------------------------------------------------
38    //  Constructors and Destructor
39    // -----------------------------------------------------------------------
40    XMLHarnessHandlers(const XMLCh* baseURL);
41    ~XMLHarnessHandlers();
42
43    // -----------------------------------------------------------------------
44    //  Handlers for the SAX ContentHandler interface
45    // -----------------------------------------------------------------------
46    void startElement(const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname, const Attributes& attrs);
47    void endElement(const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname);
48
49private:
50    SAX2XMLReader*      fParser;
51    BaseErrorHandler    fErrorHandler;
52    RefStackOf<XMLURL>  fTestBaseURL;
53};
54
Note: See TracBrowser for help on using the repository browser.