Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SkeletonBackup Class Reference

Class that encapsulates a backup. More...

#include <Plugin-TypeSkeleton/SkeletonBackup.hh>

Inheritance diagram for SkeletonBackup:
BaseBackup

Public Member Functions

 SkeletonBackup (SkeletonObject *_skelObj, QString _name, UpdateType _type)
void apply ()
 Revert this backup.
- Public Member Functions inherited from BaseBackup
 BaseBackup (QString _name)
 BaseBackup (BaseObjectData *_object, QString _name, UpdateType _type)
 constructor
QString name ()
 Get the backups name)
void setLinks (IdList _objectIDs)
 Set links to corresponding backups.
int id ()
 get id of this backup
bool blocked ()
 Returns if this backup is blocked.

Private Attributes

SkeletonObjectskelObj_
SkeletonskelBackup_

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 a backup.

Definition at line 52 of file SkeletonBackup.hh.

Member Function Documentation

void SkeletonBackup::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 22 of file SkeletonBackup.cc.


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