GME
13
|
00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 00019 // --------------------------------------------------------------------------- 00020 // Includes 00021 // --------------------------------------------------------------------------- 00022 #if defined(XERCES_TMPLSINC) 00023 #include <xercesc/util/TransENameMap.hpp> 00024 #endif 00025 00026 XERCES_CPP_NAMESPACE_BEGIN 00027 00028 // --------------------------------------------------------------------------- 00029 // ENameMapFor: Constructors and Destructor 00030 // --------------------------------------------------------------------------- 00031 template <class TType> 00032 ENameMapFor<TType>::ENameMapFor(const XMLCh* const encodingName) : 00033 00034 ENameMap(encodingName) 00035 { 00036 } 00037 00038 template <class TType> ENameMapFor<TType>::~ENameMapFor() 00039 { 00040 } 00041 00042 00043 // --------------------------------------------------------------------------- 00044 // ENameMapFor: Implementation of virtual factory method 00045 // --------------------------------------------------------------------------- 00046 template <class TType> XMLTranscoder* 00047 ENameMapFor<TType>::makeNew(const XMLSize_t blockSize, 00048 MemoryManager* const manager) const 00049 { 00050 return new (manager) TType(getKey(), blockSize, manager); 00051 } 00052 00053 00054 00055 00056 // --------------------------------------------------------------------------- 00057 // ENameMapFor: Constructors and Destructor 00058 // --------------------------------------------------------------------------- 00059 template <class TType> EEndianNameMapFor<TType>::EEndianNameMapFor(const XMLCh* const encodingName, const bool swapped) : 00060 00061 ENameMap(encodingName) 00062 , fSwapped(swapped) 00063 { 00064 } 00065 00066 template <class TType> EEndianNameMapFor<TType>::~EEndianNameMapFor() 00067 { 00068 } 00069 00070 00071 // --------------------------------------------------------------------------- 00072 // ENameMapFor: Implementation of virtual factory method 00073 // --------------------------------------------------------------------------- 00074 template <class TType> XMLTranscoder* 00075 EEndianNameMapFor<TType>::makeNew(const XMLSize_t blockSize, 00076 MemoryManager* const manager) const 00077 { 00078 return new (manager) TType(getKey(), blockSize, fSwapped, manager); 00079 } 00080 00081 XERCES_CPP_NAMESPACE_END