|
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 System.Xml; |
|
21 |
|
22 namespace CrashXmlPlugin.FileFormat |
|
23 { |
|
24 internal static class Constants |
|
25 { |
|
26 #region Node names |
|
27 |
|
28 // Root node name |
|
29 public const string RootNode = "crash_root"; |
|
30 |
|
31 // For <crash_analyser> |
|
32 public const string CrashAnalyser = "crash_analyser"; |
|
33 public const string CrashAnalyser_FileFormat = "file_format"; |
|
34 public const string CrashAnalyser_Runtime = "runtime"; |
|
35 public const string CrashAnalyser_Runtime_AnalysisType = "analysis_type"; |
|
36 public const string CrashAnalyser_Runtime_CommandLine = "command_line"; |
|
37 public const string CrashAnalyser_Runtime_InputFiles = "sources"; |
|
38 public const string CrashAnalyser_Runtime_InputFiles_File = "file"; |
|
39 |
|
40 // For <source_info> |
|
41 public const string SourceInfo = "source_info"; |
|
42 public const string SourceInfo_FileType = "type"; |
|
43 public const string SourceInfo_MasterFile = "source"; |
|
44 public const string SourceInfo_LineNumber = "line"; |
|
45 public const string SourceInfo_RawData = "raw_data"; |
|
46 public const string SourceInfo_RawData_Item = "data"; |
|
47 |
|
48 // For <segment_dictionary> |
|
49 public const string SegmentDictionary = "segment_dictionary"; |
|
50 public const string SegmentDictionary_Segment = "segment"; |
|
51 |
|
52 // For <segment_table> |
|
53 public const string SegmentTable = "segment_table"; |
|
54 |
|
55 // For versions |
|
56 public const string Version = "version"; |
|
57 public const string Version_Extended = "version_extended"; |
|
58 public const string Version_Extended_Major = "major"; |
|
59 public const string Version_Extended_Minor = "minor"; |
|
60 public const string Version_Text = "version_text"; |
|
61 public const string Version_Text_List = "version_text_list"; |
|
62 |
|
63 // Common |
|
64 public const string CmnLink = "link"; |
|
65 public const string CmnLink_Seg = "seg"; |
|
66 public const string CmnLinkList = "linklist"; |
|
67 #endregion |
|
68 |
|
69 #region Versions |
|
70 public const int MasterFileFormatVersionMajor = 1; |
|
71 public const int MasterFileFormatVersionMinor = 0; |
|
72 #endregion |
|
73 |
|
74 #region Misc |
|
75 public const int KBinaryDataMaxLineLength = 60; |
|
76 #endregion |
|
77 } |
|
78 } |