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