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.

110 lines
2.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // UI.h : main header file for the UI application
  9. //
  10. #if !defined(AFX_UI_H__D6AFABCC_5BD5_11D3_A5CF_005004039597__INCLUDED_)
  11. #define AFX_UI_H__D6AFABCC_5BD5_11D3_A5CF_005004039597__INCLUDED_
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif // _MSC_VER > 1000
  15. #ifndef __AFXWIN_H__
  16. #error include 'stdafx.h' before including this file for PCH
  17. #endif
  18. #include "resource.h" // main symbols
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CUIApp:
  21. // See UI.cpp for the implementation of this class
  22. //
  23. #include <string>
  24. #include <list>
  25. using std::string;
  26. using std::list;
  27. class CUIApp : public CWinApp
  28. {
  29. public:
  30. class CTFStatsExec
  31. {
  32. public:
  33. bool displayMM2;
  34. bool useSupportDir;
  35. bool persistPlayerStats;
  36. bool displayStartupInfo;
  37. bool elimOldPlayers;
  38. int elimDays;
  39. string TFStatsdirectory;
  40. string playerdirectory;
  41. string playerhttp;
  42. string logdirectory;
  43. string ruledirectory;
  44. string outputdirectory;
  45. string outputsubdir;
  46. string supportdirectory;
  47. string supporthttp;
  48. string inputfile;
  49. string fullpath;
  50. string getExecString();
  51. };
  52. string m_OutDir;
  53. string m_SupportDir;
  54. string m_SupportHTTPPath;
  55. string m_RuleDir;
  56. string m_TFStatsDir;
  57. string m_PlayerDir;
  58. string m_PlayerHTTPPath;
  59. bool displayMM2;
  60. bool useSupportDir;
  61. bool persistPlayerStats;
  62. bool displayStartupInfo;
  63. bool elimOldPlayers;
  64. int elimDays;
  65. list<CTFStatsExec>* m_pLogs;
  66. void execTFStats();
  67. bool pause;
  68. int pauseSecs;
  69. bool FirstEverTimeRun;
  70. public:
  71. CUIApp();
  72. // Overrides
  73. // ClassWizard generated virtual function overrides
  74. //{{AFX_VIRTUAL(CUIApp)
  75. public:
  76. virtual BOOL InitInstance();
  77. //}}AFX_VIRTUAL
  78. // Implementation
  79. //{{AFX_MSG(CUIApp)
  80. // NOTE - the ClassWizard will add and remove member functions here.
  81. // DO NOT EDIT what you see in these blocks of generated code !
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. };
  85. extern CUIApp theApp;
  86. /////////////////////////////////////////////////////////////////////////////
  87. string& addSlash(string& tempbuf);
  88. string& removeSlash(string& tempbuf);
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91. #endif // !defined(AFX_UI_H__D6AFABCC_5BD5_11D3_A5CF_005004039597__INCLUDED_)