imodeldata.h
Go to the documentation of this file.
1 #ifndef DNAI_IENTITY_H
2 #define DNAI_IENTITY_H
3 
4 namespace dnai
5 {
6  namespace interfaces
7  {
8  template <class T>
9  class IModelData
10  {
11  public:
12  virtual ~IModelData() = default;
13 
18  virtual const T& data() const = 0;
24  virtual bool setData(const T& data) = 0;
25  };
26  }
27 }
28 
29 #endif //DNAI_IENTITY_H
virtual bool setData(const T &data)=0
set the data component of this object
Definition: imodeldata.h:9
virtual const T & data() const =0
Return the data component.
Definition: api.h:13
virtual ~IModelData()=default