\hypertarget{a07032}{}\section{Base\+Backup Class Reference}
\label{a07032}\index{Base\+Backup@{Base\+Backup}}


Class that encapsulates a backup.  




{\ttfamily \#include $<$Open\+Flipper/common/\+Base\+Backup.\+hh$>$}

Inheritance diagram for Base\+Backup\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=1.333333cm]{a07032}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07032_a63567e39db5b506970f20fee88093502}\label{a07032_a63567e39db5b506970f20fee88093502}} 
{\bfseries Base\+Backup} (Q\+String \+\_\+name)
\item 
\hyperlink{a07032_ac6b9df2bd2c56f30a0ab0d470d5494fb}{Base\+Backup} (\hyperlink{a07044}{Base\+Object\+Data} $\ast$\+\_\+object, Q\+String \+\_\+name, \hyperlink{a07096}{Update\+Type} \+\_\+type)
\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
virtual void \hyperlink{a07032_a66ac550529e9275a57eda2ca87cc8f67}{apply} ()
\begin{DoxyCompactList}\small\item\em Revert this backup. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a07032_acc3a1cd94c55f1b32b12e1e81d99e888}{name} ()
\begin{DoxyCompactList}\small\item\em Get the backups name) \end{DoxyCompactList}\item 
void \hyperlink{a07032_aa7548676fc0a9fbd24d63920187cb1d9}{set\+Links} (\hyperlink{a00188_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List} \+\_\+object\+I\+Ds)
\begin{DoxyCompactList}\small\item\em Set links to corresponding backups. \end{DoxyCompactList}\item 
int \hyperlink{a07032_a94f70eaf2af0eafb8d360562dacb6c8b}{id} ()
\begin{DoxyCompactList}\small\item\em get id of this backup \end{DoxyCompactList}\item 
bool \hyperlink{a07032_a15892057056a8b6527b681625e5278fe}{blocked} ()
\begin{DoxyCompactList}\small\item\em Returns if this backup is blocked. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a07032_a7ba7b1183c1a1f6147a9ca8fb3b49e67}\label{a07032_a7ba7b1183c1a1f6147a9ca8fb3b49e67}} 
std\+::vector$<$ std\+::pair$<$ Q\+String, \hyperlink{a07072}{Per\+Object\+Data} $\ast$ $>$ $>$ \hyperlink{a07032_a7ba7b1183c1a1f6147a9ca8fb3b49e67}{object\+Datas\+\_\+}
\begin{DoxyCompactList}\small\item\em Backup of the per\+Object\+Data objects. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a07032_aa51b80d09c2bb490e611604c4f06193a}\label{a07032_aa51b80d09c2bb490e611604c4f06193a}} 
\hyperlink{a07044}{Base\+Object\+Data} $\ast$ {\bfseries object\+\_\+}
\item 
\mbox{\Hypertarget{a07032_a5288cc6a0822c379d62bb4c037658925}\label{a07032_a5288cc6a0822c379d62bb4c037658925}} 
Q\+String {\bfseries name\+\_\+}
\item 
\mbox{\Hypertarget{a07032_a2d01ce364a3c0b8da8f62b2fc28bf8c8}\label{a07032_a2d01ce364a3c0b8da8f62b2fc28bf8c8}} 
\hyperlink{a00188_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List} {\bfseries links\+\_\+}
\item 
\mbox{\Hypertarget{a07032_a6ff32273d746856b04c6a912f1b14248}\label{a07032_a6ff32273d746856b04c6a912f1b14248}} 
int {\bfseries id\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class that encapsulates a backup. 

Definition at line 53 of file Base\+Backup.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a07032_ac6b9df2bd2c56f30a0ab0d470d5494fb}\label{a07032_ac6b9df2bd2c56f30a0ab0d470d5494fb}} 
\index{Base\+Backup@{Base\+Backup}!Base\+Backup@{Base\+Backup}}
\index{Base\+Backup@{Base\+Backup}!Base\+Backup@{Base\+Backup}}
\subsubsection{\texorpdfstring{Base\+Backup()}{BaseBackup()}}
{\footnotesize\ttfamily Base\+Backup\+::\+Base\+Backup (\begin{DoxyParamCaption}\item[{\hyperlink{a07044}{Base\+Object\+Data} $\ast$}]{\+\_\+object,  }\item[{Q\+String}]{\+\_\+name,  }\item[{\hyperlink{a07096}{Update\+Type}}]{\+\_\+type }\end{DoxyParamCaption})}



constructor 


\begin{DoxyParams}{Parameters}
{\em \+\_\+object} & Pointer to the object, this backup will belong to \\
\hline
{\em \+\_\+name} & Name of the object \\
\hline
{\em \+\_\+type} & Type of change which can be used to create more specific backups (e.\+g. selection only) \\
\hline
\end{DoxyParams}


Definition at line 57 of file Base\+Backup.\+cc.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a07032_a66ac550529e9275a57eda2ca87cc8f67}\label{a07032_a66ac550529e9275a57eda2ca87cc8f67}} 
\index{Base\+Backup@{Base\+Backup}!apply@{apply}}
\index{apply@{apply}!Base\+Backup@{Base\+Backup}}
\subsubsection{\texorpdfstring{apply()}{apply()}}
{\footnotesize\ttfamily void Base\+Backup\+::apply (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Revert this backup. 

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

\begin{DoxyNote}{Note}
You have to call the \hyperlink{a07032_a66ac550529e9275a57eda2ca87cc8f67}{Base\+Backup\+::apply()} first in your implementation of this function.
\end{DoxyNote}
You have to restore your backup to the corresponding object when this function gets called. 

Reimplemented in \hyperlink{a12056_a56233618c4146c30e693ff183be9216d}{Splat\+Cloud\+Backup}, \hyperlink{a10052_a8340832b274edb9e1fb2634dd95e7e85}{Group\+Backup}, \hyperlink{a11280_ac0275973a42676a170da34c55c2ca420}{B\+Spline\+Curve\+Backup}, \hyperlink{a11380_a21063079813e4cec1f44fca9319fd399}{Poly\+Mesh\+Backup}, \hyperlink{a11388_aaa5ddbd1695c98651732336246022c15}{Tri\+Mesh\+Backup}, and \hyperlink{a11964_a11868d5d72c63b47fee7936f426fa401}{Skeleton\+Backup}.



Definition at line 93 of file Base\+Backup.\+cc.

\mbox{\Hypertarget{a07032_a15892057056a8b6527b681625e5278fe}\label{a07032_a15892057056a8b6527b681625e5278fe}} 
\index{Base\+Backup@{Base\+Backup}!blocked@{blocked}}
\index{blocked@{blocked}!Base\+Backup@{Base\+Backup}}
\subsubsection{\texorpdfstring{blocked()}{blocked()}}
{\footnotesize\ttfamily bool Base\+Backup\+::blocked (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Returns if this backup is blocked. 

When Backups are grouped together, they can not be reversed o their own but oly together with the others in that backup group. This flag indicates, that the backup is part of a group and can not be reversed on its own. 

Definition at line 148 of file Base\+Backup.\+cc.

\mbox{\Hypertarget{a07032_a94f70eaf2af0eafb8d360562dacb6c8b}\label{a07032_a94f70eaf2af0eafb8d360562dacb6c8b}} 
\index{Base\+Backup@{Base\+Backup}!id@{id}}
\index{id@{id}!Base\+Backup@{Base\+Backup}}
\subsubsection{\texorpdfstring{id()}{id()}}
{\footnotesize\ttfamily int Base\+Backup\+::id (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



get id of this backup 

Automatically generated id for this backup. 

Definition at line 142 of file Base\+Backup.\+cc.

\mbox{\Hypertarget{a07032_acc3a1cd94c55f1b32b12e1e81d99e888}\label{a07032_acc3a1cd94c55f1b32b12e1e81d99e888}} 
\index{Base\+Backup@{Base\+Backup}!name@{name}}
\index{name@{name}!Base\+Backup@{Base\+Backup}}
\subsubsection{\texorpdfstring{name()}{name()}}
{\footnotesize\ttfamily Q\+String Base\+Backup\+::name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Get the backups name) 



Definition at line 136 of file Base\+Backup.\+cc.

\mbox{\Hypertarget{a07032_aa7548676fc0a9fbd24d63920187cb1d9}\label{a07032_aa7548676fc0a9fbd24d63920187cb1d9}} 
\index{Base\+Backup@{Base\+Backup}!set\+Links@{set\+Links}}
\index{set\+Links@{set\+Links}!Base\+Backup@{Base\+Backup}}
\subsubsection{\texorpdfstring{set\+Links()}{setLinks()}}
{\footnotesize\ttfamily void Base\+Backup\+::set\+Links (\begin{DoxyParamCaption}\item[{\hyperlink{a00188_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List}}]{\+\_\+object\+I\+Ds }\end{DoxyParamCaption})}



Set links to corresponding backups. 

Backups can be grouped together. The backups store the links to their group members via this function. 

Definition at line 154 of file Base\+Backup.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/common/Base\+Backup.\+hh\item 
Open\+Flipper/common/Base\+Backup.\+cc\end{DoxyCompactItemize}
