/***************************************************************************
**
**    $Header:   D:/ECB2S/SRC/LOG/COPT.H__   1.2.1.5   17 Apr 1997 15:43:38   ZJRD  $
**
**    $Log:   D:/ECB2S/SRC/LOG/COPT.H__  $
** 
**    Rev 1.2.1.5   17 Apr 1997 15:43:38   ZJRD
** No change.
** 
**    Rev 1.2.1.4   16 Apr 1997 10:17:58   ZJRD
** No change.
** 
**    Rev 1.2.1.3   10 Apr 1997 15:29:24   ZJRD
** 2.09F
** 
**    Rev 1.2.1.1   03 Apr 1997 15:10:42   ZJRD
** No change.
** 
**    Rev 1.2.1.0   28 Mar 1997 10:15:42   ZJRD
** easy pack sld 2.09d
** 
**    Rev 1.1   19 Mar 1997 11:26:54   ZJRD
** No change.
** 
**    Rev 1.0   12 Mar 1997 14:45:12   ZJRD
** Initial revision.
** 
**    Rev 1.3.1.0.1.2   09 Dec 1996 10:14:06   ZJRD
** EasyPack/SLD Version 2.0P
** 
**    Rev 1.3.1.0.1.0   11 Nov 1996 12:57:22   ZJRD
** EasyPack/SLD Version 2.01
** 
**    Rev 1.3.1.4   09 Sep 1996 13:13:14   ZJRD
** No change.
** 
**    Rev 1.3.1.3   05 Sep 1996 11:24:46   ZJRD
** No change.
** 
**    Rev 1.3.1.2   02 Sep 1996 09:51:54   ZJRD
** No change.
** 
**    Rev 1.3.1.1   28 Aug 1996 15:43:34   ZJRD
** EasyPack/SLD Version 1.9b
** 
**    Rev 1.3.1.0   12 Aug 1996 10:49:02   ZJRD
** EasyPack/SLD Version 1.98
** 
**    Rev 1.0   29 May 1996 09:35:26   ZJRD
** Initial revision.
** 
****************************************************************************/

/////////////////////////////////////////////////////////////////////////////
// copt.h
//
// Michael long
//                                                                           
// 5/15/1996
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _COPT_
#define _COPT_

class COption : public CProjectOption
{
// constructor/destructor
public:
    COption() {;}
    virtual ~COption() {;}
    
// attributes
public:
    CCTool m_ccTool;
    CATool m_caTool;
    CLTool m_clTool;                         
    CETool m_ceTool;                
                    
// implementation
public:
    virtual int GetFileType(LPCSTR lpcszFile) const;    
    BOOL CreateLinkCmdFile(const CStringList &lst, LPCSTR lpcszProj);
    BOOL WriteBatchFile(FILE * fp, LPCSTR lpcszText);
    BOOL  CopyFile(char* pszSource, char* pszTarget);
// operations
public:
    virtual void SetOption(CWnd *pParent);  
    virtual BOOL SaveOption(FILE * fp);
    virtual BOOL LoadOption(FILE * fp);
    
    virtual void Build(const CStringList &lst, LPCSTR lpcszProj);
    virtual void Editor(CWnd * pParent);
};

#endif
