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 | * $Log: XMLDeleterFor.c,v $
|
---|
19 | * Revision 1.3 2004/09/08 13:56:24 peiyongz
|
---|
20 | * Apache License Version 2.0
|
---|
21 | *
|
---|
22 | * Revision 1.2 2002/11/04 15:22:05 tng
|
---|
23 | * C++ Namespace Support.
|
---|
24 | *
|
---|
25 | * Revision 1.1.1.1 2002/02/01 22:22:14 peiyongz
|
---|
26 | * sane_include
|
---|
27 | *
|
---|
28 | * Revision 1.1 2000/03/02 19:54:48 roddey
|
---|
29 | * This checkin includes many changes done while waiting for the
|
---|
30 | * 1.1.0 code to be finished. I can't list them all here, but a list is
|
---|
31 | * available elsewhere.
|
---|
32 | *
|
---|
33 | */
|
---|
34 |
|
---|
35 |
|
---|
36 | // ---------------------------------------------------------------------------
|
---|
37 | // Includes
|
---|
38 | // ---------------------------------------------------------------------------
|
---|
39 | #if defined(XERCES_TMPLSINC)
|
---|
40 | #include <xercesc/util/XMLDeleterFor.hpp>
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | XERCES_CPP_NAMESPACE_BEGIN
|
---|
44 |
|
---|
45 | // ---------------------------------------------------------------------------
|
---|
46 | // XMLDeleterFor: Constructors and Destructor
|
---|
47 | // ---------------------------------------------------------------------------
|
---|
48 | template <class T> XMLDeleterFor<T>::XMLDeleterFor(T* const toDelete) :
|
---|
49 |
|
---|
50 | fToDelete(toDelete)
|
---|
51 | {
|
---|
52 | }
|
---|
53 |
|
---|
54 | template <class T> XMLDeleterFor<T>::~XMLDeleterFor()
|
---|
55 | {
|
---|
56 | delete fToDelete;
|
---|
57 | }
|
---|
58 |
|
---|
59 | XERCES_CPP_NAMESPACE_END
|
---|