## Xalan-C++ API Documentation

### The Xalan C++ XSLT Processor Version 1.9

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# AttributeVectorEntryExtended.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(ATTRIBUTEVECTORENTRYEXTENDED_HEADER_GUARD_1357924680)
    00017 #define ATTRIBUTEVECTORENTRYEXTENDED_HEADER_GUARD_1357924680
    00018
    00019
    00020
    00021 // Base include file.  Must be first.
    00022 #include <xalanc/PlatformSupport/PlatformSupportDefinitions.hpp>
    00023
    00024
    00025
    00026 #include <xalanc/PlatformSupport/AttributeVectorEntry.hpp>
    00027
    00028 #include <xalanc/Include/XalanMemMgrAutoPtr.hpp>
    00029
    00030 XALAN_CPP_NAMESPACE_BEGIN
    00031
    00032
    00033
    00034 class XALAN_PLATFORMSUPPORT_EXPORT AttributeVectorEntryExtended : public AttributeVectorEntry
    00035 {
    00036 public:
    00037
    00038     AttributeVectorEntryExtended(
    00039             const XMLChVectorType&  theName,
    00040             const XMLChVectorType&  theValue,
    00041             const XMLChVectorType&  theType,
    00042             const XMLChVectorType&  theURI ,
    00043             const XMLChVectorType&  theLocalName,
    00044             MemoryManagerType&      theManager) :
    00045         AttributeVectorEntry(theName, theValue, theType, theManager),
    00046         m_uri(theURI, theManager),
    00047         m_localName(theLocalName, theManager)
    00048     {
    00049     }
    00050
    00051     AttributeVectorEntryExtended(
    00052             const XMLCh*    theName,
    00053             const XMLCh*    theValue,
    00054             const XMLCh*    theType,
    00055             const XMLCh*    theURI,
    00056             const XMLCh*    theLocalName,
    00057             MemoryManagerType&      theManager) :
    00058         AttributeVectorEntry(theName, theValue, theType, theManager),
    00059         m_uri(theURI, theURI + length(theURI) + 1, theManager),
    00060         m_localName(theLocalName, theLocalName + length(theLocalName) + 1,theManager)
    00061     {
    00062     }
    00063
    00064     AttributeVectorEntryExtended(
    00065             const XMLCh*    theName,
    00066             const XMLCh*    theValue,
    00067             const XMLCh*    theType,
    00068             MemoryManagerType&      theManager) :
    00069         AttributeVectorEntry(theName, theValue, theType,theManager),
    00070         m_uri(theManager),
    00071         m_localName(theManager)
    00072     {
    00073     }
    00074
    00075     AttributeVectorEntryExtended(MemoryManagerType&      theManager) :
    00076         AttributeVectorEntry(theManager),
    00077         m_uri(theManager),
    00078         m_localName(theManager)
    00079     {
    00080     }
    00081
    00082     static AttributeVectorEntryExtended*
    00083     create(
    00084             const XMLCh*    theName,
    00085             const XMLCh*    theValue,
    00086             const XMLCh*    theType,
    00087             const XMLCh*    theURI,
    00088             const XMLCh*    theLocalName,
    00089             MemoryManagerType&      theManager)
    00090     {
    00091         typedef AttributeVectorEntryExtended ThisType;
    00092
    00093         XalanMemMgrAutoPtr<ThisType, false> theGuard( theManager , (ThisType*)theManager.allocate(sizeof(ThisType)));
    00094
    00095         ThisType* theResult = theGuard.get();
    00096
    00097         new (theResult) ThisType(theName, theValue, theType, theURI, theLocalName, theManager);
    00098
    00099         theGuard.release();
    00100
    00101         return theResult;
    00102     }
    00103
    00104     virtual
    00105     ~AttributeVectorEntryExtended()
    00106     {
    00107     }
    00108
    00109     void
    00110     clear()
    00111     {
    00112         AttributeVectorEntry::clear();
    00113
    00114         m_uri.clear();
    00115         m_localName.clear();
    00116     }
    00117
    00118     XMLChVectorType     m_uri;
    00119     XMLChVectorType     m_localName;
    00120 };
    00121
    00122
    00123
    00124 XALAN_CPP_NAMESPACE_END
    00125
    00126
    00127
    00128 #endif  // ATTRIBUTEVECTORENTRY_HEADER_GUARD_1357924680

Interpreting class diagrams

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

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