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.

47 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Implementation of CReport
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //------------------------------------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef REPORT_H
  14. #define REPORT_H
  15. #ifdef WIN32
  16. #pragma once
  17. #pragma warning(disable:4786)
  18. #endif
  19. #include "MatchInfo.h"
  20. #include "HTML.h"
  21. //------------------------------------------------------------------------------------------------------
  22. // Purpose: CReport is the base class for all elements of a report. This includes
  23. // things like scoreboards and awards.
  24. //------------------------------------------------------------------------------------------------------
  25. class CReport
  26. {
  27. protected:
  28. //every element must have some info about the match to go off of.
  29. //moved into global pointer. g_pMatchInfo
  30. //CMatchInfo* pMatchInfo;
  31. virtual void init(){}
  32. public:
  33. //explicit CReport(CMatchInfo* pMInfo):pMatchInfo(pMInfo){}
  34. explicit CReport(){}
  35. virtual void writeHTML(CHTMLFile& html){}
  36. virtual void generate(){}
  37. virtual void makeHTMLPage(char* pageName,char* pageTitle);
  38. virtual void report(CHTMLFile& html);
  39. virtual ~CReport(){}
  40. };
  41. #endif // REPORT_H