plugintool.h

来自「cy7c68013目前最流行的几种gps芯片的控制定制程序的源代码」· C头文件 代码 · 共 46 行

H
46
字号
////////////////////////////////////////////////////////////////////////////////
// plugintool.h : interface of the CPlugInTool class
// Author:	Saji Varkey (SCV)
// $Header: /USB/Util/EzMr/plugintool.h 3     8/08/00 2:26p Tpm $
// Copyright (c) 2000 Cypress Semiconductor. May not be reproduced without permission.
// See the EzUsb Developer's Kit license agreement for more details.
////////////////////////////////////////////////////////////////////////////////
#ifndef  H_PLUGINTOOL
#define  H_PLUGINTOOL

class CPlugInTool : public CObject
{

public:

	// Constructor
	//
	CPlugInTool( CString name, CString path, CString initDir = "", CString args = "" );
	
	CString GetMenuName() const { return m_menuName; }	// returns menu name
	CString GetPath() const    { return m_exePath; }		// return the exe. path
	CString GetInitDir() const { return m_initDir; }		// return the init. dir.
	CString GetDefArgs() const { return m_defArgs; }		// return def. arguments

	void SetMenuName( CString name );		// Set menu name
	void SetPath( CString path );			// Set exe. path
	void SetInitDir( CString initDir );		// Set init. dir
	void SetDefArgs( CString args);			// Set def. args.

	BOOL Run() const;						// Launch the tool

protected:
	CString SubstituteVariables( CString inStr ) const;	// expand the variables in the string
	void GetVariables() const;		// get all the variables from the proj. manager
	BOOL GetValue( CString inStr, CString & outStr ) const;
	void ChangeToInitDir() const;	// change to initial directory

private:
	CString m_menuName;	// menu name
	CString m_exePath;	// executable path
	CString m_initDir;	// initial directory
	CString m_defArgs;	// default arguments
};
#endif	// H_PLUGINTOOL

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?