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

📄 propertycontainer.h

📁 uml编辑器很牛
💻 H
字号:
#ifndef _CPROPERTYCONTAINER_H_6B8221AA_8977_4557_AF6D36C93978
#define _CPROPERTYCONTAINER_H_6B8221AA_8977_4557_AF6D36C93978

///////////////////////////////////////////////////////////
// File :		PropertyContainer.h
// Created :	06/06/04
//

#include "Property.h"

class CPropertyContainer 
{
public:
	// Construction/destruction
	CPropertyContainer();
	virtual ~CPropertyContainer();

	void Copy( CPropertyContainer& properties );

// Operations
	int			GetSize( ) const;
	CProperty*	GetAt( int index ) const;
	void		RemoveAt( int index );
	void		RemoveAll( );
	void		Add( CProperty* property );
	void		Add( const CString& tag, const CString& val = _T( "" ) );
	CString		GetString( int format = STRING_FORMAT_SAVE ) const;
	void		FromString( const CString& str );

	CString		GetPropertyValue( const CString& tag ) const;
	void		SetPropertyValue( const CString& tag, const CString& value );
	void		RemoveProperty( const CString& tag );

// Attributes
private:
	CObArray m_properties;

	// Private helpers
	CProperty* FindProperty( const CString& tag );

};

#endif //_CPROPERTYCONTAINER_H_6B8221AA_8977_4557_AF6D36C93978

⌨️ 快捷键说明

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