crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/ValidationRules/DbgValidationRule.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.Text.RegularExpressions;
       
    21 using System.IO;
       
    22 using System.Reflection;
       
    23 using SymbianDebugLib.Engine;
       
    24 
       
    25 namespace SymbianDebugLib.ValidationRules
       
    26 {
       
    27     public abstract class DbgValidationRule
       
    28     {
       
    29         #region Enumerations
       
    30         public enum TOperation
       
    31         {
       
    32             EOperationPrime = 0
       
    33         }
       
    34         #endregion
       
    35 
       
    36         #region Constructors
       
    37         protected DbgValidationRule( DbgValidationManager aValidationManager )
       
    38         {
       
    39             iValidationManager = aValidationManager;
       
    40         }
       
    41         #endregion
       
    42 
       
    43         #region Abstract API
       
    44         public abstract bool IsValid( TOperation aType, ref string aErrorDescription );
       
    45         #endregion
       
    46 
       
    47         #region Properties
       
    48         protected DbgEngine Engine
       
    49         {
       
    50             get { return iValidationManager.Engine; }
       
    51         }
       
    52 
       
    53         protected DbgValidationManager ValidationManager
       
    54         {
       
    55             get { return iValidationManager; }
       
    56         }
       
    57         #endregion
       
    58 
       
    59         #region Internal methods
       
    60         #endregion
       
    61 
       
    62         #region Data members
       
    63         private readonly DbgValidationManager iValidationManager;
       
    64         #endregion
       
    65     }
       
    66 }