mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 17:59:37 +00:00
1
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//
|
||||
//=============================================================================//
|
||||
#include "redir.h"
|
||||
|
||||
#ifndef REDIRECT_H_INCLUDED__
|
||||
#define REDIRECT_H_INCLUDED__
|
||||
|
||||
class CRedirect : public CRedirector
|
||||
{
|
||||
public:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// constructor
|
||||
//--------------------------------------------------------------------------
|
||||
CRedirect()
|
||||
: m_pEdit(NULL),
|
||||
m_bStopped(false)
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// destructor
|
||||
//--------------------------------------------------------------------------
|
||||
virtual ~CRedirect();
|
||||
//--------------------------------------------------------------------------
|
||||
// public member functions
|
||||
//--------------------------------------------------------------------------
|
||||
virtual void Run(LPCTSTR szCommand, CEdit *pEdit, LPCTSTR pszCurrentDirectory = NULL);
|
||||
virtual void Stop();
|
||||
|
||||
protected:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// member functions
|
||||
//--------------------------------------------------------------------------
|
||||
virtual void WriteStdOut(LPCSTR pszOutput);
|
||||
virtual void WriteStdError(LPCSTR pszError);
|
||||
|
||||
void AppendText(LPCTSTR Text);
|
||||
void PeekAndPump();
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// member data
|
||||
//--------------------------------------------------------------------------
|
||||
CEdit * m_pEdit;
|
||||
bool m_bStopped;
|
||||
|
||||
};
|
||||
|
||||
#endif // REDIRECT_H_INCLUDED__
|
||||
Reference in New Issue
Block a user