📄 workspacefilebuffer.h
字号:
#if !defined(__WorkspaceFileBuffer_H__)
#define __WorkspaceFileBuffer_H__
/************************************************************************
*
* Resource ID Organiser Utility Library
*
* (c) Copyright 2000 by Andy Metcalfe (andy.metcalfe@lineone.net)
* All rights reserved.
*
************************************************************************
*
* Filename : WorkspaceFileBuffer.h
*
* Description : CWorkspaceFileBuffer - A string array buffer class for
* parsing Visual Studio Project (.dsp) files
*
* Compiler : Microsoft Visual C++ 6.0, Service Pack 3 or 4
*
* Target
* Environment : Windows 98/NT
*
* 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 Andy 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.resorg.co.uk 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/ResOrgUtils/WorkspaceFileBuffer.h $
* $Revision: 4 $
* $Date: 22/06/01 9:53 $
* $Author: Andy $
*
* $History: WorkspaceFileBuffer.h $
*
* ***************** Version 4 *****************
* User: Andy Date: 22/06/01 Time: 9:53
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Made class declaration "Rose friendly"
*
* ***************** Version 3 *****************
* User: Andy Date: 2/03/01 Time: 17:12
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Implemented functionality for reading the list of projects from the
* .dsw files
*
* ***************** Version 2 *****************
* User: Andy Date: 29/11/00 Time: 18:37
* Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
* Added file banners
*
* $Nokeywords: $
*
************************************************************************/
// WorkspaceFileBuffer.h : interface of the CWorkspaceFileBuffer class
//
/////////////////////////////////////////////////////////////////////////////
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// WorkspaceFileBuffer.h : header file
//
class CProjectInfo
{
public:
CProjectInfo(void) {}
CProjectInfo(const CProjectInfo& src);
virtual ~CProjectInfo(void) {}
CString m_sProject;
CString m_sPathName;
CStringArray m_arrayDependencies;
void operator=(const CProjectInfo& src);
};
typedef CMap<CString, LPCTSTR, CProjectInfo, CProjectInfo&> CMapStringToProject;
/////////////////////////////////////////////////////////////////////////////
// CWorkspaceFileBuffer class
#define CWorkspaceFileBuffer_BASE CNGTextBuffer
class RESORGUTILS_EXT_CLASS CWorkspaceFileBuffer : public CNGTextBuffer
{
DECLARE_DYNCREATE(CWorkspaceFileBuffer)
CWorkspaceFileBuffer(void);
virtual ~CWorkspaceFileBuffer(void);
// Attributes
protected:
CMapStringToProject m_mapProjects;
// Operations
public:
BOOL Read(CArchive& ar);
int GetProjects(CStringArray& rarrayProjects) const;
int GetProjectCount(void) const;
CString GetResourceFileName(const CString& sProject) const;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWorkspaceFileBuffer)
public:
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
virtual void DeleteContents(void);
protected:
virtual BOOL Parse(const CString& sLine);
// Implementation
protected:
CString GetPathName(const CString& sRelativePath) const;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(__WorkspaceFileBuffer_H__)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -