crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/PluginAPI/Symbol/DbgEngineSymbol.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 SymbianUtils.PluginManager;
       
    21 using SymbianStructuresLib.Debug.Symbols;
       
    22 using SymbianDebugLib.Engine;
       
    23 using SymbianDebugLib.PluginAPI.Types;
       
    24 
       
    25 namespace SymbianDebugLib.PluginAPI.Types.Symbol
       
    26 {
       
    27     public abstract class DbgEngineSymbol : DbgPluginEngine
       
    28     {
       
    29         #region Factory function
       
    30         public static DbgEngineSymbol New( DbgEngine aEngine )
       
    31         {
       
    32             PluginManager<DbgEngineSymbol> loader = new PluginManager<DbgEngineSymbol>( 1 );
       
    33             loader.Load( new object[] { aEngine } );
       
    34             //
       
    35             DbgEngineSymbol ret = null;
       
    36             foreach ( DbgEngineSymbol engine in loader )
       
    37             {
       
    38                 if ( engine is DbgEngineSymbolStub && loader.Count > 1 )
       
    39                 {
       
    40                     continue;
       
    41                 }
       
    42                 else
       
    43                 {
       
    44                     ret = engine;
       
    45                     break;
       
    46                 }
       
    47             }
       
    48             //
       
    49             return ret;
       
    50         }
       
    51         #endregion
       
    52 
       
    53         #region Constructors
       
    54         protected DbgEngineSymbol( DbgEngine aEngine )
       
    55             : base( aEngine )
       
    56         {
       
    57         }
       
    58         #endregion
       
    59 
       
    60         #region API
       
    61         #endregion
       
    62 
       
    63         #region Properties
       
    64         #endregion
       
    65 
       
    66         #region Internal methods
       
    67         #endregion
       
    68 
       
    69         #region Data members
       
    70         #endregion
       
    71     }
       
    72 }