50 #include "GroupBackup.hh" 52 #include <OpenFlipper/common/BackupData.hh> 57 GroupBackup::GroupBackup(
IdList _objectIDs, QString _name)
59 objectIDs_(_objectIDs)
64 for (
unsigned int i=0; i < objectIDs_.size(); ++i ){
75 backupData =
dynamic_cast< BackupData*
>(
object->objectData(OBJECT_BACKUPS));
79 if ( objectIDs_.size() > 1 )
83 backupIDs_.push_back(
id);
89 GroupBackup::~GroupBackup(){
101 const IdList& GroupBackup::objectIDs()
const{
107 bool GroupBackup::contains(
int _objectid )
const{
108 return std::find(objectIDs_.begin(), objectIDs_.end(), _objectid) != objectIDs_.end();
int currentID()
return the id of the current backup state
bool getObject(int _identifier, BSplineCurveObject *&_object)
Abstract class that is used to store backups.
void setLinks(IdList _objectIDs)
Class that encapsulates a backup.
bool hasObjectData(QString _dataName)
Checks if object data with given name is available.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
void apply()
Revert this backup.