crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/Entity/List/DbgEntityListCategorised.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 using System.IO;
       
    21 using SymbianUtils;
       
    22 using SymbianUtils.Settings;
       
    23 using SymbianUtils.FileSystem;
       
    24 using SymbianDebugLib.Engine;
       
    25 using SymbianDebugLib.Entity.Descriptors;
       
    26 
       
    27 namespace SymbianDebugLib.Entity
       
    28 {
       
    29     public class DbgEntityListCategorised : DbgEntityList
       
    30     {
       
    31         #region Constructors
       
    32         internal DbgEntityListCategorised( DbgEngine aEngine, DbgEntityDescriptor aDescriptor )
       
    33             : base( aEngine )
       
    34         {
       
    35             iDescriptor = aDescriptor;
       
    36         }
       
    37         #endregion
       
    38 
       
    39         #region API
       
    40         public override void Add( DbgEntity aEntity )
       
    41         {
       
    42             if ( aEntity.CategoryName != this.CategoryName )
       
    43             {
       
    44                 throw new ArgumentException();
       
    45             }
       
    46             else{
       
    47                 base.Add( aEntity );
       
    48             }
       
    49         }
       
    50         #endregion
       
    51 
       
    52         #region Properties
       
    53         public string CategoryName
       
    54         {
       
    55             get { return iDescriptor.CategoryName; }
       
    56         }
       
    57 
       
    58         public DbgEntityDescriptor Descriptor
       
    59         {
       
    60             get { return iDescriptor; }
       
    61         }
       
    62         #endregion
       
    63 
       
    64         #region Event handlers
       
    65         #endregion
       
    66 
       
    67         #region Internal properties
       
    68         #endregion
       
    69 
       
    70         #region Internal methods
       
    71         #endregion
       
    72 
       
    73         #region Data members
       
    74         private readonly DbgEntityDescriptor iDescriptor;
       
    75         #endregion
       
    76     }
       
    77 }