crashanalysercmd/Libraries/File Formats/Plugins/CrashXmlPlugin/FileFormat/Versions/CXmlVersion.cs
equal
deleted
inserted
replaced
|
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 CrashXmlPlugin.FileFormat.Node; |
|
21 |
|
22 namespace CrashXmlPlugin.FileFormat.Versions |
|
23 { |
|
24 internal class CXmlVersion : CXmlNode |
|
25 { |
|
26 #region Constructors |
|
27 public CXmlVersion() |
|
28 : this( 1 ) |
|
29 { |
|
30 } |
|
31 |
|
32 public CXmlVersion( int aNumber ) |
|
33 : base( Constants.Version ) |
|
34 { |
|
35 iNumber = aNumber; |
|
36 } |
|
37 #endregion |
|
38 |
|
39 #region From CXmlNode |
|
40 protected override void XmlSerializeContent( CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters ) |
|
41 { |
|
42 aParameters.Writer.WriteString( this.ToString() ); |
|
43 } |
|
44 #endregion |
|
45 |
|
46 #region Properties |
|
47 public int Number |
|
48 { |
|
49 get { return iNumber; } |
|
50 set { iNumber = value; } |
|
51 } |
|
52 #endregion |
|
53 |
|
54 #region From System.Object |
|
55 public override string ToString() |
|
56 { |
|
57 return Number.ToString(); |
|
58 } |
|
59 #endregion |
|
60 |
|
61 #region Data members |
|
62 private int iNumber = 1; |
|
63 #endregion |
|
64 } |
|
65 } |