summaryrefslogtreecommitdiff
path: root/utils/tfstats/report.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/tfstats/report.cpp')
-rw-r--r--utils/tfstats/report.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/utils/tfstats/report.cpp b/utils/tfstats/report.cpp
new file mode 100644
index 0000000..8f17269
--- /dev/null
+++ b/utils/tfstats/report.cpp
@@ -0,0 +1,36 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Implematation of CReport
+//
+// $Workfile: $
+// $Date: $
+//
+//------------------------------------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "report.h"
+#include "util.h"
+
+//------------------------------------------------------------------------------------------------------
+// Function: CReport::makeHTMLPage
+// Purpose: makes a whole page out of the element that it is called on
+// Input: pageName - the name of the html file
+// pageTitle - the title of the document
+//------------------------------------------------------------------------------------------------------
+void CReport::makeHTMLPage(char* pageName,char* pageTitle)
+{
+ CHTMLFile Page(pageName,pageTitle);
+ report(Page);
+}
+//------------------------------------------------------------------------------------------------------
+// Function: CReport::report
+// Purpose: generates the report's output and adds it to anHTML file
+// Input: html - the HTML file to add this report element to
+//------------------------------------------------------------------------------------------------------
+void CReport::report(CHTMLFile& html)
+{
+ generate();
+ writeHTML(html);
+}