entity.h
Go to the documentation of this file.
18 class Entity : public interfaces::IEntity, public interfaces::IModelData<T>, public interfaces::ASerializable<U>
virtual ~Entity() override=default
Definition: entity.cpp:80
Allow inherited class to serialize and deserialize itself.
Definition: iserializable.h:33
virtual const QString & description() const override
Definition: entity.h:59
virtual const T & data() const override
Return the data component.
Definition: entity.h:85
Definition: ientity.h:12
virtual QUuid listIndex() const override
Definition: entity.h:46
Definition: imodeldata.h:9
virtual bool setIndex(const int index) override
Definition: entity.h:38
virtual int index() const override
Definition: entity.h:33
virtual bool setDescription(const QString &description) override
Definition: entity.h:64
virtual bool setListIndex(QUuid listIndex) override
Definition: entity.h:51
virtual void _deserialize(const QJsonObject &obj) override
Implement this function in order to use deserialize(const QJsonObject &obj)
Definition: entity.h:98
Definition: api.h:13
virtual bool expanded() const override
Definition: entity.h:72
virtual bool setData(const T &data) override
set the data component of this object
Definition: entity.h:25
virtual bool setExpanded(bool exp) override
Definition: entity.h:77
Definition: entity.h:18
virtual void serialize(QJsonObject &obj) const override
Implement this function to serialize into QJsonObject.
Definition: entity.h:90