CPonty / templ-dot-net

A C# report generation engine combining strongly-typed models and annotated .docx templates.
GNU General Public License v2.0
15 stars 6 forks source link

Meta-Report #19

Closed CPonty closed 9 years ago

CPonty commented 9 years ago

Implement a "meta-report" for the debug output.

Modules should auto-record how many items they process and how many they remove (this can be implemented in the base class). Subclasses can implement their own meta-counters.

Essentially, the module stores a Dict<string : object>, which is looped and printed in lines as string : o.ToString().

This should be output as a plaintext statistics report in the Debug zip.

Module Statistics
 ModuleName
  1. ModuleStatistic
  2. ModuleStatistic
 ModuleName
  1. ModuleStatistic
  2. ModuleStatistic

Generate the report in simple nested loops, interfacing directly with DocX.

CPonty commented 9 years ago

Done. Going forward, any module-specific statistics can be implemented simply by writing to the generic Dict<string,string> Statistics.statistics bucket from module Handler methods.