\hypertarget{classBackupData}{}\section{Backup\+Data Class Reference}
\label{classBackupData}\index{Backup\+Data@{Backup\+Data}}


Abstract class that is used to store backups.  




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

Inheritance diagram for Backup\+Data\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classBackupData}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classBackupData_a30e0df6d817ce78dd9c006c99f800b41}\label{classBackupData_a30e0df6d817ce78dd9c006c99f800b41}} 
\hyperlink{classBackupData_a30e0df6d817ce78dd9c006c99f800b41}{Backup\+Data} (\hyperlink{classBaseObjectData}{Base\+Object\+Data} $\ast$\+\_\+object=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a9b20adf987c1ca5161fe89e46293a41c}\label{classBackupData_a9b20adf987c1ca5161fe89e46293a41c}} 
virtual \hyperlink{classBackupData_a9b20adf987c1ca5161fe89e46293a41c}{$\sim$\+Backup\+Data} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a81908c9c016fb443925d8321316d4998}\label{classBackupData_a81908c9c016fb443925d8321316d4998}} 
void \hyperlink{classBackupData_a81908c9c016fb443925d8321316d4998}{store\+Backup} (\hyperlink{classBaseBackup}{Base\+Backup} $\ast$\+\_\+backup)
\begin{DoxyCompactList}\small\item\em store a backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_ab349f292eb781bb30b8d59f5dc1f6e8b}\label{classBackupData_ab349f292eb781bb30b8d59f5dc1f6e8b}} 
void \hyperlink{classBackupData_ab349f292eb781bb30b8d59f5dc1f6e8b}{undo} ()
\begin{DoxyCompactList}\small\item\em perform an undo if possible \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_ae7e7c5a2090a6dbd67d2c793ebb94d33}\label{classBackupData_ae7e7c5a2090a6dbd67d2c793ebb94d33}} 
void \hyperlink{classBackupData_ae7e7c5a2090a6dbd67d2c793ebb94d33}{redo} ()
\begin{DoxyCompactList}\small\item\em perform a redo if possible \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_affe6442f615819b3540acc23a2d87e8b}\label{classBackupData_affe6442f615819b3540acc23a2d87e8b}} 
int \hyperlink{classBackupData_affe6442f615819b3540acc23a2d87e8b}{undo\+ID} ()
\begin{DoxyCompactList}\small\item\em return the id of the next undo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_acc6217cf3ca98caadde942789402b1b3}\label{classBackupData_acc6217cf3ca98caadde942789402b1b3}} 
int \hyperlink{classBackupData_acc6217cf3ca98caadde942789402b1b3}{redo\+ID} ()
\begin{DoxyCompactList}\small\item\em return the id of the next redo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a8c9c2e9aff232f2c48739cd9bde6afd8}\label{classBackupData_a8c9c2e9aff232f2c48739cd9bde6afd8}} 
int \hyperlink{classBackupData_a8c9c2e9aff232f2c48739cd9bde6afd8}{current\+ID} ()
\begin{DoxyCompactList}\small\item\em return the id of the current backup state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_aed8c279f9f0f7c8c1c7d1d166eaee1b3}\label{classBackupData_aed8c279f9f0f7c8c1c7d1d166eaee1b3}} 
Q\+String \hyperlink{classBackupData_aed8c279f9f0f7c8c1c7d1d166eaee1b3}{undo\+Name} ()
\begin{DoxyCompactList}\small\item\em return the name of the next undo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_ad4f41d174c593cbc6cbf8df4cf68ad41}\label{classBackupData_ad4f41d174c593cbc6cbf8df4cf68ad41}} 
Q\+String \hyperlink{classBackupData_ad4f41d174c593cbc6cbf8df4cf68ad41}{redo\+Name} ()
\begin{DoxyCompactList}\small\item\em return the name of the next redo backup \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a3c1058442967f32933dbbe758686a4e6}\label{classBackupData_a3c1058442967f32933dbbe758686a4e6}} 
bool \hyperlink{classBackupData_a3c1058442967f32933dbbe758686a4e6}{undo\+Available} ()
\begin{DoxyCompactList}\small\item\em return if an undo backup is available \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a83bf21d49bd20ebcc27185a77209a87b}\label{classBackupData_a83bf21d49bd20ebcc27185a77209a87b}} 
bool \hyperlink{classBackupData_a83bf21d49bd20ebcc27185a77209a87b}{redo\+Available} ()
\begin{DoxyCompactList}\small\item\em return if a redo backup is available \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_ad37f7418d7d51d2685ec12c4458d7bf2}\label{classBackupData_ad37f7418d7d51d2685ec12c4458d7bf2}} 
bool \hyperlink{classBackupData_ad37f7418d7d51d2685ec12c4458d7bf2}{undo\+Blocked} ()
\begin{DoxyCompactList}\small\item\em return if an undo backup is blocked \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_aa88d1543e973e0261dbdd097379f23bf}\label{classBackupData_aa88d1543e973e0261dbdd097379f23bf}} 
bool \hyperlink{classBackupData_aa88d1543e973e0261dbdd097379f23bf}{redo\+Blocked} ()
\begin{DoxyCompactList}\small\item\em return if a redo backup is blocked \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a90e0e093c61ea5ba30f9af33b7365903}\label{classBackupData_a90e0e093c61ea5ba30f9af33b7365903}} 
void \hyperlink{classBackupData_a90e0e093c61ea5ba30f9af33b7365903}{clear} ()
\begin{DoxyCompactList}\small\item\em remove all backups \end{DoxyCompactList}\item 
void \hyperlink{classBackupData_a81866f4b3cdbab15b79ce2410b58342e}{set\+Links} (\hyperlink{DataTypes_8hh_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List} \+\_\+object\+I\+Ds)
\item 
\mbox{\Hypertarget{classBackupData_a36aff5e9aa6afc2f25d619a29bc7478d}\label{classBackupData_a36aff5e9aa6afc2f25d619a29bc7478d}} 
\hyperlink{classBaseBackup}{Base\+Backup} $\ast$ \hyperlink{classBackupData_a36aff5e9aa6afc2f25d619a29bc7478d}{current\+State} ()
\begin{DoxyCompactList}\small\item\em return the current state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a276b7f343f48487a0c1f8782984bb763}\label{classBackupData_a276b7f343f48487a0c1f8782984bb763}} 
size\+\_\+t \hyperlink{classBackupData_a276b7f343f48487a0c1f8782984bb763}{max\+Backups} ()
\begin{DoxyCompactList}\small\item\em return the maximum of backups which are saved \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classBackupData_a1e7be2c8f05dad5ad4e0f57b08759a7d}\label{classBackupData_a1e7be2c8f05dad5ad4e0f57b08759a7d}} 
void \hyperlink{classBackupData_a1e7be2c8f05dad5ad4e0f57b08759a7d}{set\+Max\+Backups} (size\+\_\+t \+\_\+max)
\begin{DoxyCompactList}\small\item\em set the maximum of saved backups \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classBackupData_acf068d23fc463a3a0fe9dc2012189602}\label{classBackupData_acf068d23fc463a3a0fe9dc2012189602}} 
std\+::vector$<$ \hyperlink{classBaseBackup}{Base\+Backup} $\ast$$>$ {\bfseries undo\+States\+\_\+}
\item 
\mbox{\Hypertarget{classBackupData_a995b66813357097442becbe26ec10eed}\label{classBackupData_a995b66813357097442becbe26ec10eed}} 
std\+::vector$<$ \hyperlink{classBaseBackup}{Base\+Backup} $\ast$$>$ {\bfseries redo\+States\+\_\+}
\item 
\mbox{\Hypertarget{classBackupData_ab2d60cd6de02575e49c17f428c20615e}\label{classBackupData_ab2d60cd6de02575e49c17f428c20615e}} 
\hyperlink{classBaseBackup}{Base\+Backup} $\ast$ {\bfseries current\+State\+\_\+}
\item 
\mbox{\Hypertarget{classBackupData_aacd9198cec8fd2f223e199f7a364a632}\label{classBackupData_aacd9198cec8fd2f223e199f7a364a632}} 
\hyperlink{classBaseObjectData}{Base\+Object\+Data} $\ast$ {\bfseries object\+\_\+}
\item 
\mbox{\Hypertarget{classBackupData_a645db8af4c05627c203d9589c44e4198}\label{classBackupData_a645db8af4c05627c203d9589c44e4198}} 
size\+\_\+t {\bfseries max\+Backups\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Abstract class that is used to store backups. 

The default implementation can only backup per\+Object\+Datas 

Definition at line 57 of file Backup\+Data.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classBackupData_a81866f4b3cdbab15b79ce2410b58342e}\label{classBackupData_a81866f4b3cdbab15b79ce2410b58342e}} 
\index{Backup\+Data@{Backup\+Data}!set\+Links@{set\+Links}}
\index{set\+Links@{set\+Links}!Backup\+Data@{Backup\+Data}}
\subsubsection{\texorpdfstring{set\+Links()}{setLinks()}}
{\footnotesize\ttfamily void Backup\+Data\+::set\+Links (\begin{DoxyParamCaption}\item[{\hyperlink{DataTypes_8hh_af4b4959090eb91720b2f1f4bd6131cfb}{Id\+List}}]{\+\_\+object\+I\+Ds }\end{DoxyParamCaption})}

add links to other backups for the current state this is used to ensure that the backups are only applied simultaneously 

Definition at line 233 of file Backup\+Data.\+cc.



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