imodel.h
Go to the documentation of this file.
1 #ifndef DNAI_INTERFACES_IMODEL_H
2 #define DNAI_INTERFACES_IMODEL_H
3 
4 #include "iserializable.h"
6 
7 namespace dnai {
8  namespace interfaces {
13  template <class T>
14  class IModel: public models::GenericTreeItem<T>, public ASerializable<T>
15  {
16  public:
17  explicit IModel(T *parent = nullptr) : models::GenericTreeItem<T>(parent) {}
18  };
19  }
20 }
21 
22 #endif // DNAI_INTERFACES_IMODEL_H
Allow inherited class to serialize and deserialize itself.
Definition: iserializable.h:33
This class allow you to create a new serializable model and allow you to use it in a tree...
Definition: imodel.h:14
Definition: generictreeitem.h:14
Definition: api.h:13
IModel(T *parent=nullptr)
Definition: imodel.h:17
GenericTreeItem(T *parent=nullptr)
Definition: generictreeitem.h:17