Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XercesWrapperHelper.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2004 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #if !defined(XERCESWRAPPERHELPER_HEADER_GUARD_1357924680)
00017 #define XERCESWRAPPERHELPER_HEADER_GUARD_1357924680
00018 
00019 
00020 
00021 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp>
00022 
00023 
00024 
00025 #include <cassert>
00026 
00027 
00028 
00029 #include <xercesc/util/XercesDefs.hpp>
00030 
00031 
00032 
00033 #include <xalanc/XalanDOM/XalanDOMString.hpp>
00034 
00035 
00036 
00037 #include <xalanc/XercesParserLiaison/XercesWrapperTypes.hpp>
00038 
00039 
00040 
00041 XALAN_CPP_NAMESPACE_BEGIN
00042 
00043 
00044 
00045 class XALAN_XERCESPARSERLIAISON_EXPORT XercesWrapperHelper
00046 {
00047 public:
00048 
00049     typedef XMLSize_t   XercesStringLengthType;
00050 
00051     static const XMLCh*
00052     XalanDOMStringToXercesDOMString(const XalanDOMString&   theString)
00053     {
00054         assert(XercesStringLengthType(theString.length()) == theString.length());
00055 
00056         return theString.c_str();
00057     }
00058 
00059     static bool
00060     isSupported(
00061             const DOMNodeType*      theXercesNode,
00062             const XalanDOMString&   feature,
00063             const XalanDOMString&   version);
00064 
00065     static const XalanDOMString&
00066     substringData(
00067             const DOMCharacterDataType*     theXercesNode,
00068             unsigned int                    offset, 
00069             unsigned int                    count,
00070             XalanDOMString&                 theResult);
00071 
00072 private:
00073 
00074     // Not implemented...
00075     XercesWrapperHelper();
00076 
00077     XercesWrapperHelper(const XercesWrapperHelper&);
00078 };
00079 
00080 
00081 
00082 XALAN_CPP_NAMESPACE_END
00083 
00084 
00085 
00086 #endif  // !defined(XERCESWRAPPERHELPER_HEADER_GUARD_1357924680)

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo