📄 entity.h
字号:
#ifndef ENTITY_H
#define ENTITY_H
#include "StdAfx.h"
#include "Element.h"
#include "Attribute.h"
class Relation;
class Redata
{
public:
Relation* data;
Redata* next;
Redata();
};
class MyEntity:public Element
{
public:
int flag;
Redata* firstRelation;
Attribute* firstAttribute;
MyEntity(CString name,int x1,int y1,int x2,int y2,int f);
void addAttribute(Attribute *a);
void removeAttribute(Attribute *a);
void addRelation(Relation *a);
void removeRelation(Relation *a);
void serial(CArchive& ar);
Attribute* mainkey();
void emptymain();
virtual void paint(CDC& g);
virtual int isDeleted();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -