crashanalysercmd/Libraries/Engine/CrashItemLib/Sink/CISink.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.IO;
       
    20 using System.Collections.Generic;
       
    21 using System.Reflection;
       
    22 using SymbianDebugLib.Engine;
       
    23 using CrashItemLib.Crash;
       
    24 using CrashItemLib.Crash.Container;
       
    25 using CrashItemLib.PluginAPI;
       
    26 using CrashItemLib.Engine;
       
    27 
       
    28 namespace CrashItemLib.Sink
       
    29 {
       
    30     public abstract class CISink
       
    31     {
       
    32         #region Constructors
       
    33         protected CISink( string aName, CISinkManager aManager )
       
    34         {
       
    35             iName = aName;
       
    36             iSinkManager = aManager;
       
    37         }
       
    38         #endregion
       
    39 
       
    40         #region API
       
    41         public abstract object Serialize( CISinkSerializationParameters aParams );
       
    42 
       
    43         public virtual object CustomOperation( string aOpName, params object[] aArguments )
       
    44         {
       
    45             throw new NotSupportedException();
       
    46         }
       
    47         #endregion
       
    48 
       
    49         #region Properties
       
    50         public string Name
       
    51         {
       
    52             get { return iName; }
       
    53         }
       
    54 
       
    55         public CISinkManager Manager
       
    56         {
       
    57             get { return iSinkManager; }
       
    58         }
       
    59         #endregion
       
    60 
       
    61         #region Internal methods
       
    62         #endregion
       
    63 
       
    64         #region From System.Object
       
    65         public override string ToString()
       
    66         {
       
    67             return Name;
       
    68         }
       
    69         #endregion
       
    70 
       
    71         #region Data members
       
    72         private readonly string iName;
       
    73         private readonly CISinkManager iSinkManager;
       
    74 		#endregion
       
    75     }
       
    76 }