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