linkable.h
Go to the documentation of this file.
1 #ifndef DNAI_MODELS_GUI_LINKABLEDATA_H
2 #define DNAI_MODELS_GUI_LINKABLEDATA_H
3 
4 #include <QUuid>
5 
6 namespace dnai
7 {
8  namespace models
9  {
10  namespace gui
11  {
12  namespace data
13  {
14  struct Linkable
15  {
16  /*QString id;
17  QString linkedId;*/
18  QUuid id;
19  QUuid linkedId;
20 
21  Linkable &operator=(const Linkable &link) = default;
22  bool operator!=(const Linkable &link) const
23  {
24  return !(*this == link);
25  }
26  bool operator==(const Linkable &link) const
27  {
28  return (id == link.id && linkedId == link.linkedId);
29  }
30  };
31  }
32  }
33  }
34 }
35 
36 #endif //
bool operator==(const Linkable &link) const
Definition: linkable.h:26
Linkable & operator=(const Linkable &link)=default
QUuid linkedId
Definition: linkable.h:19
QUuid id
Definition: linkable.h:18
Definition: api.h:13
Definition: linkable.h:14
bool operator!=(const Linkable &link) const
Definition: linkable.h:22