Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Implematation of CReport
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //------------------------------------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #include "report.h"
  14. #include "util.h"
  15. //------------------------------------------------------------------------------------------------------
  16. // Function: CReport::makeHTMLPage
  17. // Purpose: makes a whole page out of the element that it is called on
  18. // Input: pageName - the name of the html file
  19. // pageTitle - the title of the document
  20. //------------------------------------------------------------------------------------------------------
  21. void CReport::makeHTMLPage(char* pageName,char* pageTitle)
  22. {
  23. CHTMLFile Page(pageName,pageTitle);
  24. report(Page);
  25. }
  26. //------------------------------------------------------------------------------------------------------
  27. // Function: CReport::report
  28. // Purpose: generates the report's output and adds it to anHTML file
  29. // Input: html - the HTML file to add this report element to
  30. //------------------------------------------------------------------------------------------------------
  31. void CReport::report(CHTMLFile& html)
  32. {
  33. generate();
  34. writeHTML(html);
  35. }