⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 projectfilebuffer.h

📁 ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - Manage and Renumber Resource Symbol IDs Introduction The
💻 H
字号:
/************************************************************************
 *
 *                 Resource ID Organiser Core Library
 *
 * (c) Copyright 2000-2003 by Anna-Jayne Metcalfe (resorg@annasplace.me.uk)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : ProjectFileBuffer.h
 *
 *  Description : CProjectFileBuffer - A string array buffer class for
 *                parsing Visual Studio Project (.dsp) files
 *
 *  Compiler    : Microsoft Visual C++ 6.0, Service Pack 3 or later
 *                Microsoft Visual C++ .NET 2002
 *                                                                       
 *  Target                                                               
 *  Environment : Windows 98/NT/2000/XP
 *
 *  NOTE:
 *
 *    This software is provided "as is" free for personal use. All
 *    title and copyrights in and to the software, including but not
 *    limited to any images, text, etc. incorporated into it, are
 *    owned by Anna-Jayne Metcalfe, except where acknowledged otherwise.
 *
 *    Your may freely to use this code in your own products, PROVIDED
 *    this notice is not removed or modified.
 *
 *
 *    Visit http://www.annasplace.me.uk/resorg for latest updates
 *
 ************************************************************************
 *
 *   MODIFICATION HISTORY:
 *
 *           This is a controlled document. See project configuration
 *           control tool for latest version and full version history.
 *
 *    $Archive: /Projects/AddIns/ResOrg/ResOrgCore/ProjectFileBuffer.h $
 *   $Revision: 9 $
 *       $Date: 20/04/03 15:36 $
 *     $Author: Anna $
 *
 *    $History: ProjectFileBuffer.h $
 * 
 * *****************  Version 9  *****************
 * User: Anna         Date: 20/04/03   Time: 15:36
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Corrected banner & removed unused header file guards
 * 
 * *****************  Version 8  *****************
 * User: Anna         Date: 25/11/02   Time: 15:10
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed website address in banner
 * 
 * *****************  Version 7  *****************
 * User: Anna         Date: 22/10/02   Time: 13:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed name/mail address (at last!)
 * 
 * *****************  Version 6  *****************
 * User: Andy         Date: 7/06/02    Time: 17:04
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Renamed the ResOrgUtils module to ResOrgCore. Updated file banners
 * accordingly
 * 
 * *****************  Version 5  *****************
 * User: Andy         Date: 1/24/02    Time: 10:15p
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added support for VC7 workspaces and project files
 * 
 * *****************  Version 4  *****************
 * User: Europa       Date: 19/01/02   Time: 17:48
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Started preparing to add VC7 compatibility
 * 
 * *****************  Version 3  *****************
 * User: Andy         Date: 22/06/01   Time: 9:31
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Made class declaration "Rose friendly"
 * 
 * *****************  Version 2  *****************
 * User: Andy         Date: 29/11/00   Time: 18:37
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 *  Added file banners
 *
 * $Nokeywords: $
 *
 ************************************************************************/

#pragma once


enum VcProjFormat
{
	Project_VC6,
	Project_VC7
};


/////////////////////////////////////////////////////////////////////////////
// CProjectFileBuffer class

#define CProjectFileBuffer_BASE								CNGTextBuffer

class RESORGCORE_EXT_CLASS		CProjectFileBuffer : public	CNGTextBuffer
{
			DECLARE_DYNCREATE(CProjectFileBuffer)

			CProjectFileBuffer(void);

	virtual ~CProjectFileBuffer(void);


// Attributes
protected:
			CStringArray			m_arrayFiles;

			BOOL					m_bParsingFile;

			VcProjFormat			m_eFormat;

			
// Operations
public:
			int						GetFiles(	CStringArray& rarrayFiles,
												const CString& sExt = _T("") ) const;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProjectFileBuffer)
	public:
	virtual void					Serialize(CArchive& ar);

	//}}AFX_VIRTUAL

	virtual	BOOL					Read(CArchive& ar);

	virtual	BOOL					Parse(void);

	virtual	BOOL					Parse(const CString& sLine);



// Implementation
protected:
			BOOL					ParseVc7Project(void);

			CString					GetPathName(const CString& sRelativePath) const;
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

⌨️ 快捷键说明

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