crashanalysercmd/Libraries/File Formats/Plugins/CrashXmlPlugin/FileFormat/Segment/Entries/Events/CXmlSegEventLog.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.Events;
       
    21 using CrashItemLib.Crash.Utils;
       
    22 using CrashXmlPlugin.FileFormat.Versions;
       
    23 
       
    24 namespace CrashXmlPlugin.FileFormat.Segment.Entries.Events
       
    25 {
       
    26 	internal class CXmlSegEventLog : CXmlSegBase
       
    27 	{
       
    28 		#region Constructors
       
    29         public CXmlSegEventLog()
       
    30             : base( SegConstants.EventLog )
       
    31 		{
       
    32 		}
       
    33 		#endregion
       
    34 
       
    35         #region From CXmlSegBase
       
    36         public override int SegmentPriority
       
    37         {
       
    38             get { return 90; }
       
    39         }
       
    40         #endregion
       
    41 
       
    42         #region From CXmlNode
       
    43         public override void XmlSerialize( CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters )
       
    44         {
       
    45             CIEventList events = aParameters.Container.Events;
       
    46             if ( events.Count > 0 )
       
    47             {
       
    48                 base.XmlSerialize( aParameters );
       
    49             }
       
    50         }
       
    51 
       
    52         protected override void XmlSerializeChildren( CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters )
       
    53         {
       
    54             CIEventList events = aParameters.Container.Events;
       
    55             foreach( CIEvent e in events )
       
    56             {
       
    57                 CXmlEvent xmlEvent = new CXmlEvent( e );
       
    58                 xmlEvent.XmlSerialize( aParameters );
       
    59             }
       
    60         }
       
    61         #endregion
       
    62 
       
    63         #region Properties
       
    64         #endregion
       
    65 
       
    66         #region From SegBase
       
    67         #endregion
       
    68 
       
    69         #region Data members
       
    70         #endregion
       
    71     }
       
    72 }