crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianStructuresLib/Debug/Trace/TraceIdentifier.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.IO;
       
    20 using System.Text;
       
    21 using SymbianUtils;
       
    22 using SymbianUtils.Threading;
       
    23 
       
    24 namespace SymbianStructuresLib.Debug.Trace
       
    25 {
       
    26     public class TraceIdentifier
       
    27     {
       
    28         #region Constructors
       
    29         public TraceIdentifier( uint aComponent, uint aGroup, uint aId )
       
    30         {
       
    31             iComponent = aComponent;
       
    32             iGroup = aGroup;
       
    33             iId = aId;
       
    34         }
       
    35         #endregion
       
    36 
       
    37         #region API
       
    38         #endregion
       
    39 
       
    40         #region Properties
       
    41         public uint Component
       
    42         {
       
    43             get { return iComponent; }
       
    44         }
       
    45 
       
    46         public uint Group
       
    47         {
       
    48             get { return iGroup; }
       
    49         }
       
    50 
       
    51         public uint Id
       
    52         {
       
    53             get { return iId; }
       
    54         }
       
    55 
       
    56         public TraceLocation Location
       
    57         {
       
    58             get { return iLocation; }
       
    59         }
       
    60         #endregion
       
    61 
       
    62         #region From System.Object
       
    63         public override string ToString()
       
    64         {
       
    65             StringBuilder ret = new StringBuilder();
       
    66             ret.AppendFormat( "[{0:x8} | {1:x4} | {2:x4}]", iComponent, iGroup, iId );
       
    67             return ret.ToString();
       
    68         }
       
    69         #endregion
       
    70 
       
    71         #region Data members
       
    72         private readonly uint iComponent;
       
    73         private readonly uint iGroup;
       
    74         private readonly uint iId;
       
    75         private TraceLocation iLocation = new TraceLocation();
       
    76         #endregion
       
    77     }
       
    78 }