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

📄 resourcesymbol.h

📁 一个vc中管理资源文件ID的插件
💻 H
字号:
#if !defined(__ResourceSymbol_H__)
#define __ResourceSymbol_H__
/************************************************************************
 *
 *                 Resource ID Organiser Utility Library
 *
 *       (c) Copyright 2000-2001 by Andy Metcalfe (andy.metcalfe@lineone.net)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : ResourceSymbol.h
 *
 *  Description : CResourceSymbol - class to represent a single resource symbol
 *                
 *  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/ResourceSymbol.h $
 *   $Revision: 5 $
 *       $Date: 22/06/01 9:52 $
 *     $Author: Andy $
 *
 *    $History: ResourceSymbol.h $
 * 
 * *****************  Version 5  *****************
 * User: Andy         Date: 22/06/01   Time: 9:52
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Made class declaration "Rose friendly"
 * 
 * *****************  Version 4  *****************
 * User: Andy         Date: 2/04/01    Time: 17:03
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * The default constructor now has optional parameters for the Name, Value
 * and Read-Only status of the symbol
 * 
 ******************  Version 3  *****************
 * User: Andy            Date: 27/03/01  Time:  15:37
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added CResourceSymbol::IsValidName()
 *
 *****************  Version 2  *****************
 * User: Andy            Date: 17/02/01  Time:   6:49
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * 1.  Moved resource type identification to a separate class
 * 2.  Added SetReadOnly(), IsReadOnly() and GetConflicts()
 *
 ******************  Version 1  *****************
 * User: Andy            Date: 12/11/00  Time:  21:36
 * Created in $/Projects/AddIns/ResOrg/ResOrgUtils
 *
 * $Nokeywords: $
 *
 ************************************************************************/

// ResourceSymbol.h : interface of the CResourceSymbol class
//
/////////////////////////////////////////////////////////////////////////////


#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// ResourceSymbol.h : header file
//


#include "ResourceSymbolList.h"

/////////////////////////////////////////////////////////////////////////////
// CResourceSymbol class

#define CResourceSymbol_BASE							CObject

class RESORGUTILS_EXT_CLASS	CResourceSymbol : public	CObject
{
			DECLARE_DYNCREATE(CResourceSymbol)

			CResourceSymbol(const CString& sName = _T(""),
							UINT uValue = 0,
							BOOL bReadOnly = FALSE);

	virtual ~CResourceSymbol(void);


// Attributes
protected:
			CString					m_sName;
			UINT					m_uValue;
			CString					m_sFileName;
			int						m_nLineNo;
			BOOL					m_bModified;
			BOOL					m_bReadOnly;

			CResourceSymbolList		m_listConflicts;

// Operations
public:
			CString					GetFileName(void) const
										{ return m_sFileName; }

			CString					GetName(void) const
										{ return m_sName; }
	
			int						GetType(void) const;

			CString					GetTypeName(void) const;

			UINT					GetValue(void) const
										{ return m_uValue; }

			BOOL					IsModified(void) const
										{ return m_bModified; }

			BOOL					IsReadOnly(void) const
										{ return m_bReadOnly; }
	
	static	BOOL					IsValidName(const CString& sName);

			BOOL					SetName(const CString& sName);

			BOOL					SetValue(UINT uValue);

			BOOL					SetFileName(const CString& sFileName);

			BOOL					SetLineNo(int nLineNo);

			BOOL					SetModifiedFlag(BOOL bModified = TRUE);

			BOOL					SetReadOnly(BOOL bReadOnly = TRUE)
										{ m_bReadOnly = bReadOnly; return TRUE; }

			CResourceSymbolList&	GetConflicts(void)
										{ return m_listConflicts; }

	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CResourceSymbol)
	public:
	//}}AFX_VIRTUAL


// Implementation
protected:
};


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

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

#endif // !defined(__ResourceSymbol_H__)

⌨️ 快捷键说明

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