\hypertarget{a00310}{\section{Base\+Backup Class Reference}
\label{a00310}\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]{a00310}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00310_a63567e39db5b506970f20fee88093502}{{\bfseries Base\+Backup} (Q\+String \+\_\+name)}\label{a00310_a63567e39db5b506970f20fee88093502}

\item 
\hyperlink{a00310_ac6b9df2bd2c56f30a0ab0d470d5494fb}{Base\+Backup} (\hyperlink{a00330}{Base\+Object\+Data} $\ast$\+\_\+object, Q\+String \+\_\+name, \hyperlink{a01393}{Update\+Type} \+\_\+type)
\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
virtual void \hyperlink{a00310_a66ac550529e9275a57eda2ca87cc8f67}{apply} ()
\begin{DoxyCompactList}\small\item\em Revert this backup. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a00310_acc3a1cd94c55f1b32b12e1e81d99e888}{name} ()
\begin{DoxyCompactList}\small\item\em Get the backups name) \end{DoxyCompactList}\item 
void \hyperlink{a00310_aa7548676fc0a9fbd24d63920187cb1d9}{set\+Links} (\hyperlink{a02488_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List} \+\_\+object\+I\+Ds)
\begin{DoxyCompactList}\small\item\em Set links to corresponding backups. \end{DoxyCompactList}\item 
int \hyperlink{a00310_a94f70eaf2af0eafb8d360562dacb6c8b}{id} ()
\begin{DoxyCompactList}\small\item\em get id of this backup \end{DoxyCompactList}\item 
bool \hyperlink{a00310_a15892057056a8b6527b681625e5278fe}{blocked} ()
\begin{DoxyCompactList}\small\item\em Returns if this backup is blocked. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00310_a7ba7b1183c1a1f6147a9ca8fb3b49e67}{std\+::vector$<$ std\+::pair\\*
$<$ Q\+String, \hyperlink{a00953}{Per\+Object\+Data} $\ast$ $>$ $>$ \hyperlink{a00310_a7ba7b1183c1a1f6147a9ca8fb3b49e67}{object\+Datas\+\_\+}}\label{a00310_a7ba7b1183c1a1f6147a9ca8fb3b49e67}

\begin{DoxyCompactList}\small\item\em Backup of the per\+Object\+Data objects. \end{DoxyCompactList}\item 
\hypertarget{a00310_aa51b80d09c2bb490e611604c4f06193a}{\hyperlink{a00330}{Base\+Object\+Data} $\ast$ {\bfseries object\+\_\+}}\label{a00310_aa51b80d09c2bb490e611604c4f06193a}

\item 
\hypertarget{a00310_a5288cc6a0822c379d62bb4c037658925}{Q\+String {\bfseries name\+\_\+}}\label{a00310_a5288cc6a0822c379d62bb4c037658925}

\item 
\hypertarget{a00310_a2d01ce364a3c0b8da8f62b2fc28bf8c8}{\hyperlink{a02488_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List} {\bfseries links\+\_\+}}\label{a00310_a2d01ce364a3c0b8da8f62b2fc28bf8c8}

\item 
\hypertarget{a00310_a6ff32273d746856b04c6a912f1b14248}{int {\bfseries id\+\_\+}}\label{a00310_a6ff32273d746856b04c6a912f1b14248}

\end{DoxyCompactItemize}


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

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



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00310_ac6b9df2bd2c56f30a0ab0d470d5494fb}{\index{Base\+Backup@{Base\+Backup}!Base\+Backup@{Base\+Backup}}
\index{Base\+Backup@{Base\+Backup}!Base\+Backup@{Base\+Backup}}
\subsubsection[{Base\+Backup}]{\setlength{\rightskip}{0pt plus 5cm}Base\+Backup\+::\+Base\+Backup (
\begin{DoxyParamCaption}
\item[{{\bf Base\+Object\+Data} $\ast$}]{\+\_\+object, }
\item[{Q\+String}]{\+\_\+name, }
\item[{{\bf Update\+Type}}]{\+\_\+type}
\end{DoxyParamCaption}
)}}\label{a00310_ac6b9df2bd2c56f30a0ab0d470d5494fb}


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 65 of file Base\+Backup.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a00310_a66ac550529e9275a57eda2ca87cc8f67}{\index{Base\+Backup@{Base\+Backup}!apply@{apply}}
\index{apply@{apply}!Base\+Backup@{Base\+Backup}}
\subsubsection[{apply}]{\setlength{\rightskip}{0pt plus 5cm}void Base\+Backup\+::apply (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00310_a66ac550529e9275a57eda2ca87cc8f67}


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{a00310_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{a01220_a56233618c4146c30e693ff183be9216d}{Splat\+Cloud\+Backup}, \hyperlink{a00371_ac0275973a42676a170da34c55c2ca420}{B\+Spline\+Curve\+Backup}, \hyperlink{a00992_a21063079813e4cec1f44fca9319fd399}{Poly\+Mesh\+Backup}, \hyperlink{a01184_a11868d5d72c63b47fee7936f426fa401}{Skeleton\+Backup}, \hyperlink{a01338_aaa5ddbd1695c98651732336246022c15}{Tri\+Mesh\+Backup}, and \hyperlink{a00661_a8340832b274edb9e1fb2634dd95e7e85}{Group\+Backup}.



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

\hypertarget{a00310_a15892057056a8b6527b681625e5278fe}{\index{Base\+Backup@{Base\+Backup}!blocked@{blocked}}
\index{blocked@{blocked}!Base\+Backup@{Base\+Backup}}
\subsubsection[{blocked}]{\setlength{\rightskip}{0pt plus 5cm}bool Base\+Backup\+::blocked (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a00310_a15892057056a8b6527b681625e5278fe}


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 156 of file Base\+Backup.\+cc.

\hypertarget{a00310_a94f70eaf2af0eafb8d360562dacb6c8b}{\index{Base\+Backup@{Base\+Backup}!id@{id}}
\index{id@{id}!Base\+Backup@{Base\+Backup}}
\subsubsection[{id}]{\setlength{\rightskip}{0pt plus 5cm}int Base\+Backup\+::id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a00310_a94f70eaf2af0eafb8d360562dacb6c8b}


get id of this backup 

Automatically generated id for this backup. 

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

\hypertarget{a00310_acc3a1cd94c55f1b32b12e1e81d99e888}{\index{Base\+Backup@{Base\+Backup}!name@{name}}
\index{name@{name}!Base\+Backup@{Base\+Backup}}
\subsubsection[{name}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Base\+Backup\+::name (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}\label{a00310_acc3a1cd94c55f1b32b12e1e81d99e888}


Get the backups name) 



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

\hypertarget{a00310_aa7548676fc0a9fbd24d63920187cb1d9}{\index{Base\+Backup@{Base\+Backup}!set\+Links@{set\+Links}}
\index{set\+Links@{set\+Links}!Base\+Backup@{Base\+Backup}}
\subsubsection[{set\+Links}]{\setlength{\rightskip}{0pt plus 5cm}void Base\+Backup\+::set\+Links (
\begin{DoxyParamCaption}
\item[{{\bf Id\+List}}]{\+\_\+object\+I\+Ds}
\end{DoxyParamCaption}
)}}\label{a00310_aa7548676fc0a9fbd24d63920187cb1d9}


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 162 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}
