Revision 2d9fab10
Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt
src/relation.h | ||
---|---|---|
#ifndef RELATION_H
|
||
#define RELATION_H
|
||
#include <QString>
|
||
#include <QHash>
|
||
namespace CuteEntityManager {
|
||
enum RelationType {
|
||
ONE_TO_ONE, //e.g. specialization, heritage
|
||
... | ... | |
bool optional;
|
||
|
||
};
|
||
|
||
inline bool operator==(const Relation &e1, const Relation &e2) {
|
||
return e1.getPropertyName() == e2.getPropertyName();
|
||
}
|
||
|
||
inline uint qHash(const Relation &key, uint seed) {
|
||
return qHash(key.getPropertyName(), seed);
|
||
}
|
||
|
||
}
|
||
|
||
#endif // RELATION_H
|
Auch abrufbar als: Unified diff
n-1 relation