Beispiel #1
0
        protected override void XmlSerializeContent(CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters)
        {
            CXmlVersionExtended version = new CXmlVersionExtended(Constants.MasterFileFormatVersionMajor,
                                                                  Constants.MasterFileFormatVersionMinor);

            version.XmlSerialize(aParameters);
        }
Beispiel #2
0
        protected override void XmlSerializeContent(CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters)
        {
            CISource source = aParameters.Container.Source;

            // File type
            string fileType = source.ImplementorName;

            aParameters.Writer.WriteElementString(Constants.SourceInfo_FileType, fileType);

            // Version
            CXmlVersionExtended version = new CXmlVersionExtended(source.ImplementorVersion);

            version.XmlSerialize(aParameters);

            // Source file (master file)
            string masterFileName = source.MasterFileName;

            aParameters.Writer.WriteElementString(Constants.SourceInfo_MasterFile, masterFileName);

            // Line number (if relevant)
            if (source.IsLineNumberAvailable)
            {
                aParameters.Writer.WriteElementString(Constants.SourceInfo_LineNumber, source.LineNumber.ToString());
            }
        }
Beispiel #3
0
        protected override void XmlSerializeContent(CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters)
        {
            // UI Version
            CXmlVersionExtended version = new CXmlVersionExtended(aParameters.UIVersion);

            version.XmlSerialize(aParameters);

            // Analysis type
            string analysisType = EnumUtils.ToString(aParameters.DetailLevel);

            aParameters.Writer.WriteElementString(Constants.CrashAnalyser_Runtime_AnalysisType, analysisType);

            // Command line
            string commandLine = aParameters.UICommandLineArguments;

            aParameters.Writer.WriteElementString(Constants.CrashAnalyser_Runtime_CommandLine, commandLine);
        }