Developer Documentation
GroupBackup Class Reference

Class that encapsulates simultaneous backups on multiple objects. More...

#include <Plugin-Backup/GroupBackup.hh>

Inheritance diagram for GroupBackup:
BaseBackup

Public Member Functions

 GroupBackup (IdList _objectIDs, QString _name)
 
void apply ()
 Revert this backup. More...
 
const IdListobjectIDs () const
 
bool contains (int _objectid) const
 
- Public Member Functions inherited from BaseBackup
 BaseBackup (QString _name)
 
 BaseBackup (BaseObjectData *_object, QString _name, UpdateType _type)
 constructor 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

IdList objectIDs_
 
IdList backupIDs_
 

Additional Inherited Members

- Protected Attributes inherited from BaseBackup
std::vector< std::pair< QString, PerObjectData * > > objectDatas_
 Backup of the perObjectData objects.
 
BaseObjectDataobject_
 
QString name_
 
IdList links_
 
int id_
 

Detailed Description

Class that encapsulates simultaneous backups on multiple objects.

Definition at line 52 of file GroupBackup.hh.

Member Function Documentation

◆ apply()

void GroupBackup::apply ( )
virtual

Revert this backup.

This function has to be implemented. It will be called when the backup should be restored.

Note
You have to call the BaseBackup::apply() first in your implementation of this function.

You have to restore your backup to the corresponding object when this function gets called.

Reimplemented from BaseBackup.

Definition at line 89 of file GroupBackup.cc.


The documentation for this class was generated from the following files: