Interface for all objects that should be serialized by the PersistenceManager.
More...
#include <InterfacePersistence.h>
|
| virtual void | fromVariant (const QVariant &)=0 |
| | Load data from a QVariant to initialize the current object.
|
| virtual QUuid | getUuid () const =0 |
| | Get the universally unique ID of the object to be saved.
|
| virtual bool | setUuid (QUuid id=QUuid())=0 |
| | Set the universally unique ID of the object to be saved.
|
| virtual QVariant | toVariant () const =0 |
| | Convert all data from the object to a QVariant (usually a QVariantMap).
|
| virtual | ~InterfacePersistence ()=default |
Interface for all objects that should be serialized by the PersistenceManager.
◆ ~InterfacePersistence()
| virtual camitk::InterfacePersistence::~InterfacePersistence |
( |
| ) |
|
|
virtualdefault |
◆ fromVariant()
| virtual void camitk::InterfacePersistence::fromVariant |
( |
const QVariant & | | ) |
|
|
pure virtual |
◆ getUuid()
| virtual QUuid camitk::InterfacePersistence::getUuid |
( |
| ) |
const |
|
pure virtual |
◆ setUuid()
| virtual bool camitk::InterfacePersistence::setUuid |
( |
QUuid | id = QUuid() | ) |
|
|
pure virtual |
◆ toVariant()
| virtual QVariant camitk::InterfacePersistence::toVariant |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: