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

📄 relation.h

📁 1.通过鼠标拖拽和弹出对话框完成实体、属性、联系的绘制以及各参数设定 2.对绘制的实体、属性、联系提供合法性检查 3.对绘制的图形进行拖动、重设大小、删除 4.通过属性对话框对实体、属性、联系的
💻 H
字号:
#ifndef  RELATION_H
#define  RELATION_H
#include "stdafx.h"
#include "Element.h"
#include "Entity.h"
#include "Attribute.h"

class Relation:public Element
{
public:
	int flag;
	MyEntity* entity1;
	MyEntity* entity2;
	Attribute* firstAttribute;
//	Relation* next;
	CString role1;
	CString role2;

	Relation(CString name,int f,MyEntity* my1,MyEntity* my2,int x1,int y1,int x2,int y2);
	void addAttribute(Attribute* a);
	void removeAttribute(Attribute* a);

	virtual void paint(CDC& g);
    virtual int isDeleted();
	virtual void Delete();
	void serial(CArchive& ar);

};
#endif

⌨️ 快捷键说明

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