Developer Documentation
|
Class that encapsulates a backup. More...
#include <Type-SplatCloud/Plugin-TypeSplatCloud/SplatCloudBackup.hh>
Public Member Functions | |
SplatCloudBackup (SplatCloudObject *_object, QString _name, UpdateType _type) | |
void | apply () |
Revert this backup. More... | |
![]() | |
BaseBackup (const QString &_name) | |
BaseBackup (BaseObjectData *_object, const QString &_name, UpdateType _type) | |
constructor More... | |
virtual void | apply () |
Revert this backup. More... | |
QString | name () |
Get the backups name) More... | |
void | setLinks (IdList _objectIDs) |
Set links to corresponding backups. More... | |
int | id () |
get id of this backup More... | |
bool | blocked () |
Returns if this backup is blocked. More... | |
Private Attributes | |
SplatCloudObject * | splatCloudObject_ |
SplatCloud * | splatCloudBackup_ |
Additional Inherited Members | |
![]() | |
std::vector< std::pair< QString, PerObjectData * > > | objectDatas_ |
Backup of the perObjectData objects. More... | |
BaseObjectData * | object_ |
QString | name_ |
IdList | links_ |
int | id_ |
Class that encapsulates a backup.
Definition at line 63 of file SplatCloudBackup.hh.
SplatCloudBackup::SplatCloudBackup | ( | SplatCloudObject * | _object, |
QString | _name, | ||
UpdateType | _type | ||
) |
Definition at line 59 of file SplatCloudBackup.cc.
SplatCloudBackup::~SplatCloudBackup | ( | ) |
Definition at line 89 of file SplatCloudBackup.cc.
|
virtual |
Revert this backup.
This function has to be implemented. It will be called when the backup should be restored.
You have to restore your backup to the corresponding object when this function gets called.
Reimplemented from BaseBackup.
Definition at line 102 of file SplatCloudBackup.cc.
|
private |
Definition at line 76 of file SplatCloudBackup.hh.
|
private |
Definition at line 75 of file SplatCloudBackup.hh.