summaryrefslogtreecommitdiff
path: root/utils/vmpi/vmpi_job_watch/GraphControl.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/vmpi/vmpi_job_watch/GraphControl.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/vmpi/vmpi_job_watch/GraphControl.h')
-rw-r--r--utils/vmpi/vmpi_job_watch/GraphControl.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/utils/vmpi/vmpi_job_watch/GraphControl.h b/utils/vmpi/vmpi_job_watch/GraphControl.h
new file mode 100644
index 0000000..b8fcb88
--- /dev/null
+++ b/utils/vmpi/vmpi_job_watch/GraphControl.h
@@ -0,0 +1,86 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+#if !defined(AFX_GRAPHCONTROL_H__9B50B827_F24D_4C5A_BA6E_A591A64E404D__INCLUDED_)
+#define AFX_GRAPHCONTROL_H__9B50B827_F24D_4C5A_BA6E_A591A64E404D__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// GraphControl.h : header file
+//
+
+#include "utlvector.h"
+
+
+class CGraphEntry
+{
+public:
+ CGraphEntry() :
+ m_msTime( 0 ),
+ m_nBytesSent( 0 ),
+ m_nBytesReceived( 0 )
+ {
+ }
+
+ int m_msTime;
+ int m_nBytesSent;
+ int m_nBytesReceived;
+};
+
+
+/////////////////////////////////////////////////////////////////////////////
+// CGraphControl window
+
+class CGraphControl : public CWnd
+{
+// Construction
+public:
+ CGraphControl();
+
+// Attributes
+public:
+
+// Operations
+public:
+
+ void Clear();
+
+ // This function assumes you've already run the query and the graph_entry's are selected in.
+ void Fill( CUtlVector<CGraphEntry> &entries );
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CGraphControl)
+ //}}AFX_VIRTUAL
+
+// Implementation
+public:
+ virtual ~CGraphControl();
+
+
+protected:
+
+ void Render( CDC *pDC );
+
+ CUtlVector<CGraphEntry> m_Entries;
+
+ // Generated message map functions
+protected:
+ //{{AFX_MSG(CGraphControl)
+ afx_msg void OnPaint();
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+/////////////////////////////////////////////////////////////////////////////
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_GRAPHCONTROL_H__9B50B827_F24D_4C5A_BA6E_A591A64E404D__INCLUDED_)