crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianUtils/XRef/XRefIdentifer.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     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 using System;
       
    18 using System.Collections.Generic;
       
    19 using System.Text;
       
    20 
       
    21 namespace SymbianUtils.XRef
       
    22 {
       
    23     public class XRefIdentifer : IComparable<XRefIdentifer>
       
    24     {
       
    25         #region Constructors
       
    26         public XRefIdentifer( string aIdentifier )
       
    27         {
       
    28             iIdentifier = aIdentifier;
       
    29         }
       
    30         #endregion
       
    31 
       
    32         #region Properties
       
    33         public string Identifier
       
    34         {
       
    35             get { return iIdentifier; }
       
    36         }
       
    37         #endregion
       
    38 
       
    39         #region Data members
       
    40         private readonly string iIdentifier;
       
    41         #endregion
       
    42 
       
    43         #region From IComparable<XRefIdentifer>
       
    44         public int CompareTo( XRefIdentifer aOther )
       
    45         {
       
    46             int ret = 1;
       
    47             //
       
    48             if ( aOther != null )
       
    49             {
       
    50                 ret = aOther.Identifier.CompareTo( Identifier );
       
    51             }
       
    52             //
       
    53             return ret;
       
    54         }
       
    55         #endregion
       
    56     }
       
    57 }