source: NonGTP/Xerces/xerces-c_2_8_0/include/xercesc/dom/DOMImplementationRegistry.hpp @ 2674

Revision 2674, 3.0 KB checked in by mattausch, 16 years ago (diff)
Line 
1#ifndef DOMImplementationRegistry_HEADER_GUARD_
2#define DOMImplementationRegistry_HEADER_GUARD_
3
4/*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements.  See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License.  You may obtain a copy of the License at
11 *
12 *      http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21/*
22 * $Id: DOMImplementationRegistry.hpp 568078 2007-08-21 11:43:25Z amassari $
23 */
24
25/**
26  * This class holds the list of registered DOMImplementations.  Implementation
27  * or application can register DOMImplementationSource to the registry, and
28  * then can query DOMImplementation based on a list of requested features.
29  *
30  * <p>This provides an application with an implementation independent starting
31  * point.
32  *
33  * @see DOMImplementation
34  * @see DOMImplementationSource
35  * @since DOM Level 3
36  */
37
38#include <xercesc/util/XercesDefs.hpp>
39
40XERCES_CPP_NAMESPACE_BEGIN
41
42
43class DOMImplementation;
44class DOMImplementationSource;
45
46class CDOM_EXPORT DOMImplementationRegistry
47{
48public:
49    // -----------------------------------------------------------------------
50    //  Static DOMImplementationRegistry interface
51    // -----------------------------------------------------------------------
52    /** @name Functions introduced in DOM Level 3 */
53    //@{
54    /**
55     * Return the first registered implementation that has the desired features,
56     * or null if none is found.
57     *
58     * <p><b>"Experimental - subject to change"</b></p>
59     *
60     * @param features A string that specifies which features are required.
61     *                 This is a space separated list in which each feature is
62     *                 specified by its name optionally followed by a space
63     *                 and a version number.
64     *                 This is something like: "XML 1.0 Traversal 2.0"
65     * @return An implementation that has the desired features, or
66     *   <code>null</code> if this source has none.
67     * @since DOM Level 3
68     */
69    static DOMImplementation* getDOMImplementation(const XMLCh* features);
70
71    /**
72     * Register an implementation.
73     *
74     * <p><b>"Experimental - subject to change"</b></p>
75     *
76     * @param source   A DOMImplementation Source object to be added to the registry.
77     *                 The registry does NOT adopt the source object.  Users still own it.
78     * @since DOM Level 3
79     */
80    static void addSource(DOMImplementationSource* source);
81    //@}
82
83private:
84    DOMImplementationRegistry();
85};
86
87XERCES_CPP_NAMESPACE_END
88
89#endif
Note: See TracBrowser for help on using the repository browser.