source: NonGTP/Xerces/xerces/include/xercesc/util/TransENameMap.c @ 358

Revision 358, 2.7 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 1999-2000,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18// ---------------------------------------------------------------------------
19//  Includes
20// ---------------------------------------------------------------------------
21#if defined(XERCES_TMPLSINC)
22#include <xercesc/util/TransENameMap.hpp>
23#endif
24
25XERCES_CPP_NAMESPACE_BEGIN
26
27// ---------------------------------------------------------------------------
28//  ENameMapFor: Constructors and Destructor
29// ---------------------------------------------------------------------------
30template <class TType>
31ENameMapFor<TType>::ENameMapFor(const XMLCh* const encodingName) :
32
33    ENameMap(encodingName)
34{
35}
36
37template <class TType> ENameMapFor<TType>::~ENameMapFor()
38{
39}
40
41
42// ---------------------------------------------------------------------------
43//  ENameMapFor: Implementation of virtual factory method
44// ---------------------------------------------------------------------------
45template <class TType> XMLTranscoder*
46ENameMapFor<TType>::makeNew(const unsigned int blockSize,
47                            MemoryManager* const manager) const
48{
49    return new (manager) TType(getKey(), blockSize, manager);
50}
51
52
53
54
55// ---------------------------------------------------------------------------
56//  ENameMapFor: Constructors and Destructor
57// ---------------------------------------------------------------------------
58template <class TType> EEndianNameMapFor<TType>::EEndianNameMapFor(const XMLCh* const encodingName, const bool swapped) :
59
60    ENameMap(encodingName)
61    , fSwapped(swapped)
62{
63}
64
65template <class TType> EEndianNameMapFor<TType>::~EEndianNameMapFor()
66{
67}
68
69
70// ---------------------------------------------------------------------------
71//  ENameMapFor: Implementation of virtual factory method
72// ---------------------------------------------------------------------------
73template <class TType> XMLTranscoder*
74EEndianNameMapFor<TType>::makeNew(const unsigned int blockSize,
75                                  MemoryManager* const manager) const
76{
77    return new (manager) TType(getKey(), blockSize, fSwapped, manager);
78}
79
80XERCES_CPP_NAMESPACE_END
Note: See TracBrowser for help on using the repository browser.