Exemplo n.º 1
0
        public static void Publish(this StructureGraphInformationSet info, folderNode folder, String name, aceAuthorNotation notation = null)
        {
            DataTable dt = info.items.ReportToDataTable <StructureGraphInformation>(true);

            dt.SetTitle(name + " records");
            dt.GetReportAndSave(folder, notation);

            dt = info.changes.ReportToDataTable <StructureGraphInformation>(true);
            dt.SetTitle(name + " changes");
            dt.GetReportAndSave(folder, notation);

            builderForText output = new builderForText();

            foreach (StructureGraphInformation item in info.items)
            {
                item.Report(null, output);
            }
            output.ReportSave(folder, name + "_records", "Structure graph entries");

            output = new builderForText();
            foreach (var item in info.changes)
            {
                item.Report(null, output);
            }
            output.ReportSave(folder, name + "_changes", "Structure graph changes log");
        }
        public static String ReportSave(this reportExpandedData report, folderNode folder, String filename, String fileDescription = "")
        {
            builderForText reporter = new builderForText();

            if (filename.isNullOrEmpty())
            {
                filename = "expandedData";
            }

            filename = Path.GetFileNameWithoutExtension(filename);

            foreach (reportExpandedDataPair entry in report)
            {
                if (entry.value.StartsWith("<?xml"))
                {
                    String filepath = folder.pathFor(filename + "_" + entry.key + ".xml", Data.enums.getWritableFileMode.overwrite, "Stored type value from [" + filename + "]");
                    File.WriteAllText(filepath, entry.value);
                }
                else
                {
                    reporter.AppendLine($"{entry.key} = {entry.value} \t\t\t //{entry.description}");
                }
            }


            return(reporter.ReportSave(folder, filename, fileDescription));
        }
Exemplo n.º 3
0
        public TypeDiagnostics(folderNode outputfolder, Type type)
        {
            CollectTypes(type);

            builderForText debug = new builderForText();

            TestTypes(debug);

            debug.ReportSave(outputfolder, "typediagnostic_" + type.Name + ".txt", "Results of type diagnostics");

            debug = new builderForText();
            TestTypesForBinarySerialization(debug);
            debug.ReportSave(outputfolder, "typediagnostic_" + type.Name + "_binary.txt", "Results of type diagnostics");
        }