source: NonGTP/Xerces/xerces-c_2_8_0/include/xercesc/dom/deprecated/MemDebug.hpp @ 2674

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