secureswitools/swisistools/source/xmlparser/xerces/include/xercesc/dom/deprecated/MemDebug.hpp
changeset 0 ba25891c3a9e
child 1 c42dffbd5b4f
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 #ifndef MemDebug_HEADER_GUARD_
       
    18 #define MemDebug_HEADER_GUARD_
       
    19 
       
    20 /*
       
    21  * Licensed to the Apache Software Foundation (ASF) under one or more
       
    22  * contributor license agreements.  See the NOTICE file distributed with
       
    23  * this work for additional information regarding copyright ownership.
       
    24  * The ASF licenses this file to You under the Apache License, Version 2.0
       
    25  * (the "License"); you may not use this file except in compliance with
       
    26  * the License.  You may obtain a copy of the License at
       
    27  * 
       
    28  *      http://www.apache.org/licenses/LICENSE-2.0
       
    29  * 
       
    30  * Unless required by applicable law or agreed to in writing, software
       
    31  * distributed under the License is distributed on an "AS IS" BASIS,
       
    32  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    33  * See the License for the specific language governing permissions and
       
    34  * limitations under the License.
       
    35  */
       
    36 
       
    37 /*
       
    38  * $Id: MemDebug.hpp 568078 2007-08-21 11:43:25Z amassari $
       
    39  */
       
    40 
       
    41 #include <xercesc/util/XercesDefs.hpp>
       
    42 
       
    43 XERCES_CPP_NAMESPACE_BEGIN
       
    44 
       
    45 
       
    46 class DomMemDebug
       
    47 {
       
    48 public:
       
    49     int         liveStringHandles;
       
    50     int         totalStringHandles;
       
    51     int         liveStringBuffers;
       
    52     int         totalStringBuffers;
       
    53     int         liveNodeImpls;
       
    54     int         totalNodeImpls;
       
    55     int         liveNamedNodeMaps;
       
    56     int         totalNamedNodeMaps;
       
    57 
       
    58 public:
       
    59     DOMMemDebug();
       
    60     ~DOMMemDebug();
       
    61 
       
    62     void        print();
       
    63     void        printDifference(const DOMMemDebug &other);
       
    64     bool        operator == (const DOMMemDebug &other);
       
    65     bool        operator != (const DOMMemDebug &other);
       
    66     bool        operator =  (const DOMMemDebug &other);
       
    67 };
       
    68 
       
    69 XERCES_CPP_NAMESPACE_END
       
    70 
       
    71 #endif // MemDebug_HEADER_GUARD_