crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianStructuresLib/Debug/Common/Id/PlatformIdAllocator.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;
       
    19 using System.Text;
       
    20 using SymbianStructuresLib.Debug.Common.Interfaces;
       
    21 
       
    22 namespace SymbianStructuresLib.Debug.Common.Id
       
    23 {
       
    24     public class PlatformIdAllocator : IPlatformIdAllocator
       
    25     {
       
    26         #region Constructors
       
    27         public PlatformIdAllocator()
       
    28             : this( PlatformId.KInitialValue )
       
    29         {
       
    30         }
       
    31 
       
    32         public PlatformIdAllocator( uint aInitialId )
       
    33         {
       
    34             iId = aInitialId;
       
    35         }
       
    36         #endregion
       
    37 
       
    38         #region API
       
    39         #endregion
       
    40 
       
    41         #region Properties
       
    42         #endregion
       
    43 
       
    44         #region Internal constants
       
    45         #endregion
       
    46 
       
    47         #region IPlatformIdAllocator Members
       
    48         public PlatformId AllocateId()
       
    49         {
       
    50             return new PlatformId( ++iId );
       
    51         }
       
    52         #endregion
       
    53 
       
    54         #region Data members
       
    55         private uint iId = 0u;
       
    56         #endregion
       
    57     }
       
    58 }