32 lines
2.0 KiB
TeX
32 lines
2.0 KiB
TeX
\hypertarget{FileOperator_8h_source}{}\doxysection{File\+Operator.\+h}
|
|
\label{FileOperator_8h_source}\index{src/core/function/FileOperator.h@{src/core/function/FileOperator.h}}
|
|
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{1 }
|
|
\DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef GPGFRONTEND\_FILEOPERATOR\_H}}
|
|
\DoxyCodeLine{30 \textcolor{preprocessor}{\#define GPGFRONTEND\_FILEOPERATOR\_H}}
|
|
\DoxyCodeLine{31 }
|
|
\DoxyCodeLine{32 \textcolor{preprocessor}{\#include "{}core/GpgFrontendCore.h"{}}}
|
|
\DoxyCodeLine{33 }
|
|
\DoxyCodeLine{34 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend}{GpgFrontend}} \{}
|
|
\DoxyCodeLine{35 }
|
|
\DoxyCodeLine{40 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1FileOperator}{FileOperator}} \{}
|
|
\DoxyCodeLine{41 \textcolor{keyword}{public}:}
|
|
\DoxyCodeLine{50 \textcolor{keyword}{static} \textcolor{keywordtype}{bool} ReadFileStd(\textcolor{keyword}{const} std::filesystem::path \&file\_name,}
|
|
\DoxyCodeLine{51 std::string \&data);}
|
|
\DoxyCodeLine{52 }
|
|
\DoxyCodeLine{60 \textcolor{keyword}{static} \textcolor{keywordtype}{bool} WriteFileStd(\textcolor{keyword}{const} std::filesystem::path \&file\_name,}
|
|
\DoxyCodeLine{61 \textcolor{keyword}{const} std::string \&data);}
|
|
\DoxyCodeLine{62 }
|
|
\DoxyCodeLine{71 \textcolor{keyword}{static} \textcolor{keywordtype}{bool} ReadFile(\textcolor{keyword}{const} QString \&file\_name, QByteArray \&data);}
|
|
\DoxyCodeLine{72 }
|
|
\DoxyCodeLine{81 \textcolor{keyword}{static} \textcolor{keywordtype}{bool} WriteFile(\textcolor{keyword}{const} QString \&file\_name, \textcolor{keyword}{const} QByteArray \&data);}
|
|
\DoxyCodeLine{82 }
|
|
\DoxyCodeLine{88 \textcolor{keyword}{static} std::string CalculateHash(\textcolor{keyword}{const} std::filesystem::path \&file\_path);}
|
|
\DoxyCodeLine{89 \};}
|
|
\DoxyCodeLine{90 \} \textcolor{comment}{// namespace GpgFrontend}}
|
|
\DoxyCodeLine{91 }
|
|
\DoxyCodeLine{92 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// GPGFRONTEND\_FILEOPERATOR\_H}}
|
|
|
|
\end{DoxyCode}
|