crashanalysercmd/Libraries/Engine/CrashItemLib/Crash/Reports/CIReportParameter.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.Text;
       
    19 using System.Collections.Generic;
       
    20 using CrashItemLib.Crash;
       
    21 using CrashItemLib.Crash.Base;
       
    22 using CrashItemLib.Crash.Base.DataBinding;
       
    23 using SymbianUtils.Range;
       
    24 using SymbianStructuresLib.Uids;
       
    25 using SymbianUtils.DataBuffer;
       
    26 using CrashItemLib.Crash.Container;
       
    27 
       
    28 namespace CrashItemLib.Crash.Reports
       
    29 {
       
    30     public class CIReportParameter : CIElement
       
    31     {
       
    32         #region Constructors
       
    33         internal CIReportParameter( CIReportInfo aReport, string aName, uint aValue )
       
    34             : base( aReport.Container )
       
    35 		{
       
    36             iName = string.IsNullOrEmpty( aName ) ? string.Empty : aName;
       
    37             iValue = aValue;
       
    38 		}
       
    39 		#endregion
       
    40 
       
    41         #region API
       
    42         #endregion
       
    43 
       
    44         #region Properties
       
    45         public override string Name
       
    46         {
       
    47             get { return iName; }
       
    48         }
       
    49 
       
    50         public uint Value
       
    51         {
       
    52             get { return iValue; }
       
    53         }
       
    54         #endregion
       
    55 
       
    56         #region Operators
       
    57         public static implicit operator CIDBRow( CIReportParameter aObject )
       
    58         {
       
    59             CIDBRow row = new CIDBRow();
       
    60             //
       
    61             row.Add( new CIDBCell( aObject.Name ) );
       
    62             row.Add( new CIDBCell( aObject.Value.ToString() ) );
       
    63             //
       
    64             return row;
       
    65         }
       
    66         #endregion
       
    67 
       
    68         #region Internal methods
       
    69         #endregion
       
    70 
       
    71         #region Data members
       
    72         private readonly string iName;
       
    73         private readonly uint iValue;
       
    74         #endregion
       
    75     }
       
    76 }