crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianUtils/SourceParser/Objects/SrcMethodModifier.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 
       
    21 namespace SymbianUtils.SourceParser.Objects
       
    22 {
       
    23     public class SrcMethodModifier
       
    24     {
       
    25         #region Enumerations
       
    26         public enum TModifier
       
    27         {
       
    28             ENone = 0,
       
    29             EConst
       
    30         }
       
    31         #endregion
       
    32 
       
    33         #region Constructors
       
    34         public SrcMethodModifier()
       
    35         {
       
    36         }
       
    37         #endregion
       
    38 
       
    39         #region API
       
    40         #endregion
       
    41 
       
    42         #region Properties
       
    43         public TModifier Type
       
    44         {
       
    45             get { return iModifier; }
       
    46             set { iModifier = value; }
       
    47         }
       
    48         #endregion
       
    49 
       
    50         #region From System.Object
       
    51         public override string ToString()
       
    52         {
       
    53             string ret = string.Empty;
       
    54             //
       
    55             switch ( iModifier )
       
    56             {
       
    57                 case TModifier.EConst:
       
    58                     ret = " const";
       
    59                     break;
       
    60                 default:
       
    61                 case TModifier.ENone:
       
    62                     break;
       
    63             }
       
    64             //
       
    65             return ret;
       
    66         }
       
    67         #endregion
       
    68 
       
    69         #region Data members
       
    70         private TModifier iModifier;
       
    71         #endregion
       
    72     }
       
    73 }