[DatFile, Reports] Rename to avoid redundancy

This commit is contained in:
Matt Nadareski
2017-11-07 14:06:21 -08:00
parent 75d3802645
commit 669b950e07
5 changed files with 29 additions and 29 deletions

View File

@@ -5738,7 +5738,7 @@ namespace SabreTools.Library.DatFiles
}
// Write the header, if any
reports.ForEach(report => report.WriteStatsHeader());
reports.ForEach(report => report.WriteHeader());
// Init all total variables
DatStats totalStats = new DatStats();
@@ -5759,7 +5759,7 @@ namespace SabreTools.Library.DatFiles
if (lastdir != null && thisdir != lastdir)
{
// Output separator if needed
reports.ForEach(report => report.WriteStatsMidSeparator());
reports.ForEach(report => report.WriteMidSeparator());
DatFile lastdirdat = new DatFile
{
@@ -5772,10 +5772,10 @@ namespace SabreTools.Library.DatFiles
reports.ForEach(report => report.Write(game: dirStats.GameCount));
// Write the mid-footer, if any
reports.ForEach(report => report.WriteStatsFooterSeparator());
reports.ForEach(report => report.WriteFooterSeparator());
// Write the header, if any
reports.ForEach(report => report.WriteStatsMidHeader());
reports.ForEach(report => report.WriteMidHeader());
// Reset the directory stats
dirStats.Reset();
@@ -5809,7 +5809,7 @@ namespace SabreTools.Library.DatFiles
}
// Output the directory stats one last time
reports.ForEach(report => report.WriteStatsMidSeparator());
reports.ForEach(report => report.WriteMidSeparator());
if (single)
{
@@ -5825,10 +5825,10 @@ namespace SabreTools.Library.DatFiles
}
// Write the mid-footer, if any
reports.ForEach(report => report.WriteStatsFooterSeparator());
reports.ForEach(report => report.WriteFooterSeparator());
// Write the header, if any
reports.ForEach(report => report.WriteStatsMidHeader());
reports.ForEach(report => report.WriteMidHeader());
// Reset the directory stats
dirStats.Reset();
@@ -5845,7 +5845,7 @@ namespace SabreTools.Library.DatFiles
reports.ForEach(report => report.Write(totalStats.GameCount));
// Output footer if needed
reports.ForEach(report => report.WriteStatsFooter());
reports.ForEach(report => report.WriteFooter());
Globals.Logger.User(@"
Please check the log folder if the stats scrolled offscreen", false);

View File

@@ -78,26 +78,26 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the header to the stream, if any exists
/// </summary>
public abstract void WriteStatsHeader();
public abstract void WriteHeader();
/// <summary>
/// Write out the mid-header to the stream, if any exists
/// </summary>
public abstract void WriteStatsMidHeader();
public abstract void WriteMidHeader();
/// <summary>
/// Write out the separator to the stream, if any exists
/// </summary>
public abstract void WriteStatsMidSeparator();
public abstract void WriteMidSeparator();
/// <summary>
/// Write out the footer-separator to the stream, if any exists
/// </summary>
public abstract void WriteStatsFooterSeparator();
public abstract void WriteFooterSeparator();
/// <summary>
/// Write out the footer to the stream, if any exists
/// </summary>
public abstract void WriteStatsFooter();
public abstract void WriteFooter();
}
}

View File

@@ -72,7 +72,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the header to the stream, if any exists
/// </summary>
public override void WriteStatsHeader()
public override void WriteHeader()
{
_writer.Write(@"<!DOCTYPE html>
<html>
@@ -97,13 +97,13 @@ namespace SabreTools.Library.Reports
_writer.Flush();
// Now write the mid header for those who need it
WriteStatsMidHeader();
WriteMidHeader();
}
/// <summary>
/// Write out the mid-header to the stream, if any exists
/// </summary>
public override void WriteStatsMidHeader()
public override void WriteMidHeader()
{
_writer.Write(@" <tr bgcolor=""gray""><th>File Name</th><th align=""right"">Total Size</th><th align=""right"">Games</th><th align=""right"">Roms</th>"
+ @"<th align=""right"">Disks</th><th align=""right"">&#35; with CRC</th><th align=""right"">&#35; with MD5</th><th align=""right"">&#35; with SHA-1</th><th align=""right"">&#35; with SHA-256</th>"
@@ -114,7 +114,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the separator to the stream, if any exists
/// </summary>
public override void WriteStatsMidSeparator()
public override void WriteMidSeparator()
{
_writer.Write("<tr><td colspan=\""
+ (_baddumpCol && _nodumpCol
@@ -130,7 +130,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the footer-separator to the stream, if any exists
/// </summary>
public override void WriteStatsFooterSeparator()
public override void WriteFooterSeparator()
{
_writer.Write("<tr border=\"0\"><td colspan=\""
+ (_baddumpCol && _nodumpCol
@@ -146,7 +146,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the footer to the stream, if any exists
/// </summary>
public override void WriteStatsFooter()
public override void WriteFooter()
{
_writer.Write(@" </table>
</body>

View File

@@ -75,7 +75,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the header to the stream, if any exists
/// </summary>
public override void WriteStatsHeader()
public override void WriteHeader()
{
_writer.Write(string.Format("\"File Name\"{0}\"Total Size\"{0}\"Games\"{0}\"Roms\"{0}\"Disks\"{0}\"# with CRC\"{0}\"# with MD5\"{0}\"# with SHA-1\"{0}\"# with SHA-256\""
+ (_baddumpCol ? "{0}\"BadDumps\"" : "") + (_nodumpCol ? "{0}\"Nodumps\"" : "") + "\n", _separator));
@@ -85,7 +85,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the mid-header to the stream, if any exists
/// </summary>
public override void WriteStatsMidHeader()
public override void WriteMidHeader()
{
// This call is a no-op for separated value formats
}
@@ -93,7 +93,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the separator to the stream, if any exists
/// </summary>
public override void WriteStatsMidSeparator()
public override void WriteMidSeparator()
{
// This call is a no-op for separated value formats
}
@@ -101,7 +101,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the footer-separator to the stream, if any exists
/// </summary>
public override void WriteStatsFooterSeparator()
public override void WriteFooterSeparator()
{
_writer.Write("\n");
_writer.Flush();
@@ -110,7 +110,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the footer to the stream, if any exists
/// </summary>
public override void WriteStatsFooter()
public override void WriteFooter()
{
// This call is a no-op for separated value formats
}

View File

@@ -79,7 +79,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the header to the stream, if any exists
/// </summary>
public override void WriteStatsHeader()
public override void WriteHeader()
{
// This call is a no-op for textfile output
}
@@ -87,7 +87,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the mid-header to the stream, if any exists
/// </summary>
public override void WriteStatsMidHeader()
public override void WriteMidHeader()
{
// This call is a no-op for textfile output
}
@@ -95,7 +95,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the separator to the stream, if any exists
/// </summary>
public override void WriteStatsMidSeparator()
public override void WriteMidSeparator()
{
// This call is a no-op for textfile output
}
@@ -103,7 +103,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the footer-separator to the stream, if any exists
/// </summary>
public override void WriteStatsFooterSeparator()
public override void WriteFooterSeparator()
{
_writer.Write("\n");
_writer.Flush();
@@ -112,7 +112,7 @@ namespace SabreTools.Library.Reports
/// <summary>
/// Write out the footer to the stream, if any exists
/// </summary>
public override void WriteStatsFooter()
public override void WriteFooter()
{
// This call is a no-op for textfile output
}