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

Class that encapsulates a backup. More...

#include <PluginCollection-TypePlugins/Plugin-TypePolyMesh/PolyMeshBackup.hh>

Inheritance diagram for PolyMeshBackup:

Public Member Functions

 PolyMeshBackup (PolyMeshObject *_meshObj, QString _name, UpdateType _type)
void apply ()
 Revert this backup. More...
- 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


Additional Inherited Members

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

Detailed Description

Class that encapsulates a backup.

Definition at line 59 of file PolyMeshBackup.hh.

Member Function Documentation

void PolyMeshBackup::apply ( )

Revert this backup.

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

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 71 of file

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