\hypertarget{GpgCommandExecutor_8h_source}{}\doxysection{Gpg\+Command\+Executor.\+h} \label{GpgCommandExecutor_8h_source}\index{src/core/function/gpg/GpgCommandExecutor.h@{src/core/function/gpg/GpgCommandExecutor.h}} \begin{DoxyCode}{0} \DoxyCodeLine{1 } \DoxyCodeLine{29 \textcolor{preprocessor}{\#ifndef GPGFRONTEND\_ZH\_CN\_TS\_GPGCOMMANDEXECUTOR\_H}} \DoxyCodeLine{30 \textcolor{preprocessor}{\#define GPGFRONTEND\_ZH\_CN\_TS\_GPGCOMMANDEXECUTOR\_H}} \DoxyCodeLine{31 } \DoxyCodeLine{32 \textcolor{preprocessor}{\#ifndef WINDOWS}} \DoxyCodeLine{33 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{34 \textcolor{preprocessor}{\#endif}} \DoxyCodeLine{35 } \DoxyCodeLine{36 \textcolor{preprocessor}{\#include "{}core/GpgContext.h"{}}} \DoxyCodeLine{37 \textcolor{preprocessor}{\#include "{}core/GpgFunctionObject.h"{}}} \DoxyCodeLine{38 } \DoxyCodeLine{39 \textcolor{keyword}{namespace }\mbox{\hyperlink{namespaceGpgFrontend}{GpgFrontend}} \{} \DoxyCodeLine{40 } \DoxyCodeLine{45 \textcolor{keyword}{class }GPGFRONTEND\_CORE\_EXPORT \mbox{\hyperlink{classGpgFrontend_1_1GpgCommandExecutor}{GpgCommandExecutor}} : \textcolor{keyword}{public} \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject}{SingletonFunctionObject}} \{} \DoxyCodeLine{46 \textcolor{keyword}{public}:} \DoxyCodeLine{52 \textcolor{keyword}{explicit} \mbox{\hyperlink{classGpgFrontend_1_1GpgCommandExecutor}{GpgCommandExecutor}}(} \DoxyCodeLine{53 \textcolor{keywordtype}{int} channel = \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a50e2b3794d6553f4231eaec72d9d0a50}{SingletonFunctionObject::GetDefaultChannel}}());} \DoxyCodeLine{54 } \DoxyCodeLine{55 \textcolor{preprocessor}{\#ifndef WINDOWS}} \DoxyCodeLine{56 } \DoxyCodeLine{63 \textcolor{keywordtype}{void} Execute(StringArgsRef arguments,} \DoxyCodeLine{64 \textcolor{keyword}{const} std::function<\textcolor{keywordtype}{void}(boost::process::async\_pipe \&in,} \DoxyCodeLine{65 boost::process::async\_pipe \&out)>} \DoxyCodeLine{66 \&interact\_func);} \DoxyCodeLine{67 \textcolor{preprocessor}{\#endif}} \DoxyCodeLine{68 } \DoxyCodeLine{69 \textcolor{keyword}{private}:} \DoxyCodeLine{70 \mbox{\hyperlink{classGpgFrontend_1_1GpgContext}{GpgContext}} \&ctx\_ = \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_a8a378452876a685af879e04bfa456b6f}{GpgContext::GetInstance}}(} \DoxyCodeLine{71 \mbox{\hyperlink{classGpgFrontend_1_1SingletonFunctionObject_aa99440b9177f5d0c18840f08a40d64b7}{SingletonFunctionObject::GetChannel}}()); } \DoxyCodeLine{72 \};} \DoxyCodeLine{73 } \DoxyCodeLine{74 \} \textcolor{comment}{// namespace GpgFrontend}} \DoxyCodeLine{75 } \DoxyCodeLine{76 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// GPGFRONTEND\_ZH\_CN\_TS\_GPGCOMMANDEXECUTOR\_H}} \end{DoxyCode}