crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianStructuresLib/Uids/TCheckedUid.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.IO;
       
    19 using System.Collections.Generic;
       
    20 using System.Text;
       
    21 using SymbianUtils.Streams;
       
    22 
       
    23 namespace SymbianStructuresLib.Uids
       
    24 {
       
    25     public class TCheckedUid
       
    26     {
       
    27         #region Constructors
       
    28         public TCheckedUid()
       
    29 		{
       
    30         }
       
    31 
       
    32         public TCheckedUid( SymbianStreamReaderLE aReader )
       
    33         {
       
    34             iType = new UidType( aReader );
       
    35             iCheck = aReader.ReadUInt32();
       
    36         }
       
    37 		#endregion
       
    38 
       
    39 		#region API
       
    40         #endregion
       
    41 
       
    42 		#region Properties
       
    43         public uint Check
       
    44         {
       
    45             get
       
    46             {
       
    47                 return iCheck;
       
    48             }
       
    49             set
       
    50             {
       
    51                 iCheck = value;
       
    52             }
       
    53         }
       
    54 
       
    55         public UidType Type
       
    56         {
       
    57             get { return iType; }
       
    58             set { iType = value; }
       
    59         }
       
    60 		#endregion
       
    61 
       
    62 		#region Internal methods
       
    63 		#endregion
       
    64 
       
    65         #region From System.Object
       
    66         public override string ToString()
       
    67         {
       
    68             StringBuilder ret = new StringBuilder();
       
    69             ret.AppendFormat( "{0} [{1:x8}]", iType, iCheck );
       
    70             return ret.ToString();
       
    71         }
       
    72         #endregion
       
    73 
       
    74         #region Data members
       
    75         private UidType iType = new UidType();
       
    76         private uint iCheck = 0;
       
    77         #endregion
       
    78     }
       
    79 }