summaryrefslogtreecommitdiff
path: root/utils/tfstats/report.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/tfstats/report.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/tfstats/report.h')
-rw-r--r--utils/tfstats/report.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/utils/tfstats/report.h b/utils/tfstats/report.h
new file mode 100644
index 0000000..9170f47
--- /dev/null
+++ b/utils/tfstats/report.h
@@ -0,0 +1,47 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Implementation of CReport
+//
+// $Workfile: $
+// $Date: $
+//
+//------------------------------------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef REPORT_H
+#define REPORT_H
+#ifdef WIN32
+#pragma once
+#pragma warning(disable:4786)
+#endif
+
+#include "MatchInfo.h"
+#include "HTML.h"
+
+
+//------------------------------------------------------------------------------------------------------
+// Purpose: CReport is the base class for all elements of a report. This includes
+// things like scoreboards and awards.
+//------------------------------------------------------------------------------------------------------
+class CReport
+{
+protected:
+ //every element must have some info about the match to go off of.
+ //moved into global pointer. g_pMatchInfo
+ //CMatchInfo* pMatchInfo;
+ virtual void init(){}
+public:
+ //explicit CReport(CMatchInfo* pMInfo):pMatchInfo(pMInfo){}
+ explicit CReport(){}
+ virtual void writeHTML(CHTMLFile& html){}
+ virtual void generate(){}
+
+ virtual void makeHTMLPage(char* pageName,char* pageTitle);
+ virtual void report(CHTMLFile& html);
+ virtual ~CReport(){}
+};
+
+
+#endif // REPORT_H