source: NonGTP/Xerces/xerces/include/xercesc/dom/deprecated/MemDebug.hpp @ 358

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

xerces added

Line 
1#ifndef MemDebug_HEADER_GUARD_
2#define MemDebug_HEADER_GUARD_
3
4/*
5 * Copyright 1999-2002,2004 The Apache Software Foundation.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20/*
21 * $Id: MemDebug.hpp,v 1.4 2004/09/08 13:55:43 peiyongz Exp $
22 */
23
24#include <xercesc/util/XercesDefs.hpp>
25
26XERCES_CPP_NAMESPACE_BEGIN
27
28
29class DomMemDebug
30{
31public:
32    int         liveStringHandles;
33    int         totalStringHandles;
34    int         liveStringBuffers;
35    int         totalStringBuffers;
36    int         liveNodeImpls;
37    int         totalNodeImpls;
38    int         liveNamedNodeMaps;
39    int         totalNamedNodeMaps;
40
41public:
42    DOMMemDebug();
43    ~DOMMemDebug();
44
45    void        print();
46    void        printDifference(const DOMMemDebug &other);
47    bool        operator == (const DOMMemDebug &other);
48    bool        operator != (const DOMMemDebug &other);
49    bool        operator =  (const DOMMemDebug &other);
50};
51
52XERCES_CPP_NAMESPACE_END
53
54#endif // MemDebug_HEADER_GUARD_
Note: See TracBrowser for help on using the repository browser.