\hypertarget{classRunCommandBase_1_1ExecId}{
\section{RunCommandBase::ExecId Class Reference}
\label{classRunCommandBase_1_1ExecId}\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}}
}


Class for setting \hyperlink{protocolthe-p}{the} execution ID when running \hyperlink{protocolthe-p}{the} command.  




{\ttfamily \#include $<$run\_\-command.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRunCommandBase_1_1ExecId_ab9516b69661d4e9923b04dd08ee18a45}{
\hyperlink{classRunCommandBase_1_1ExecId_ab9516b69661d4e9923b04dd08ee18a45}{ExecId} ()}
\label{classRunCommandBase_1_1ExecId_ab9516b69661d4e9923b04dd08ee18a45}

\begin{DoxyCompactList}\small\item\em Default constructor. \item\end{DoxyCompactList}\item 
\hyperlink{classRunCommandBase_1_1ExecId_a13734038d59b075b9f93b1f642fc8257}{ExecId} (uid\_\-t uid)
\begin{DoxyCompactList}\small\item\em Constructor for a given user ID. \item\end{DoxyCompactList}\item 
\hyperlink{classRunCommandBase_1_1ExecId_a5978c0670453305604081a232f5907e7}{ExecId} (uid\_\-t uid, gid\_\-t gid)
\begin{DoxyCompactList}\small\item\em Constructor for a given user ID and group ID. \item\end{DoxyCompactList}\item 
\hypertarget{classRunCommandBase_1_1ExecId_a43e9269346b9c7251f81b0e0e0a4d269}{
void \hyperlink{classRunCommandBase_1_1ExecId_a43e9269346b9c7251f81b0e0e0a4d269}{save\_\-current\_\-exec\_\-id} ()}
\label{classRunCommandBase_1_1ExecId_a43e9269346b9c7251f81b0e0e0a4d269}

\begin{DoxyCompactList}\small\item\em \hyperlink{classSave}{Save} \hyperlink{protocolthe-p}{the} current execution ID. \item\end{DoxyCompactList}\item 
int \hyperlink{classRunCommandBase_1_1ExecId_a71a95f41ba0127f869d571402b536d4e}{restore\_\-saved\_\-exec\_\-id} (string \&error\_\-msg) const 
\begin{DoxyCompactList}\small\item\em Restore \hyperlink{protocolthe-p}{the} previously saved execution ID. \item\end{DoxyCompactList}\item 
int \hyperlink{classRunCommandBase_1_1ExecId_a6564bf7f688e82e2e349610d6947388e}{set\_\-effective\_\-exec\_\-id} (string \&error\_\-msg)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} effective execution ID. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRunCommandBase_1_1ExecId_a10fafc7bca7ed58f2223b22ec4d52e41}{is\_\-set} () const 
\begin{DoxyCompactList}\small\item\em Test if \hyperlink{protocolthe-p}{the} execution ID is set. \item\end{DoxyCompactList}\item 
uid\_\-t \hyperlink{classRunCommandBase_1_1ExecId_abb7e142c26f2318dd5d78855c2d46306}{uid} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} user ID. \item\end{DoxyCompactList}\item 
gid\_\-t \hyperlink{classRunCommandBase_1_1ExecId_ae19bf85f073a44aca5aa7f19b9ffff95}{gid} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} group ID. \item\end{DoxyCompactList}\item 
void \hyperlink{classRunCommandBase_1_1ExecId_a5290864061650902785f590b5f210f65}{set\_\-uid} (uid\_\-t v)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} user ID. \item\end{DoxyCompactList}\item 
void \hyperlink{classRunCommandBase_1_1ExecId_a115240678532f8f33684c9d8fd43f7a1}{set\_\-gid} (gid\_\-t v)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} group ID. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRunCommandBase_1_1ExecId_a98dbd6daab70299f571c73d3a5840af1}{is\_\-uid\_\-set} () const 
\begin{DoxyCompactList}\small\item\em Test if \hyperlink{protocolthe-p}{the} user ID was assigned. \item\end{DoxyCompactList}\item 
bool \hyperlink{classRunCommandBase_1_1ExecId_a4892b4d1a237c666f62313784c1fc70a}{is\_\-gid\_\-set} () const 
\begin{DoxyCompactList}\small\item\em Test if \hyperlink{protocolthe-p}{the} group ID was assigned. \item\end{DoxyCompactList}\item 
\hypertarget{classRunCommandBase_1_1ExecId_a7676c80069b50d9d43812b8f4aa98642}{
void \hyperlink{classRunCommandBase_1_1ExecId_a7676c80069b50d9d43812b8f4aa98642}{reset} ()}
\label{classRunCommandBase_1_1ExecId_a7676c80069b50d9d43812b8f4aa98642}

\begin{DoxyCompactList}\small\item\em Reset \hyperlink{protocolthe-p}{the} assigned user ID and group ID. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRunCommandBase_1_1ExecId_a73d1680a1a3b52f556ebb754785e6b9e}{
uid\_\-t {\bfseries saved\_\-uid} () const }
\label{classRunCommandBase_1_1ExecId_a73d1680a1a3b52f556ebb754785e6b9e}

\item 
\hypertarget{classRunCommandBase_1_1ExecId_a64d9338920b4f0bb2f168f5d45cb6bda}{
uid\_\-t {\bfseries saved\_\-gid} () const }
\label{classRunCommandBase_1_1ExecId_a64d9338920b4f0bb2f168f5d45cb6bda}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRunCommandBase_1_1ExecId_ad09b1a2ba45b6b6c1cb95a8776aa3038}{
uid\_\-t {\bfseries \_\-uid}}
\label{classRunCommandBase_1_1ExecId_ad09b1a2ba45b6b6c1cb95a8776aa3038}

\item 
\hypertarget{classRunCommandBase_1_1ExecId_acb1ea97a30573443aecdf65dbdd51601}{
gid\_\-t {\bfseries \_\-gid}}
\label{classRunCommandBase_1_1ExecId_acb1ea97a30573443aecdf65dbdd51601}

\item 
\hypertarget{classRunCommandBase_1_1ExecId_a95e7a96f8dbbf4a2b2a6d033a239383e}{
bool {\bfseries \_\-is\_\-uid\_\-set}}
\label{classRunCommandBase_1_1ExecId_a95e7a96f8dbbf4a2b2a6d033a239383e}

\item 
\hypertarget{classRunCommandBase_1_1ExecId_ab7130eea0a06c4a690c3604388f388bc}{
bool {\bfseries \_\-is\_\-gid\_\-set}}
\label{classRunCommandBase_1_1ExecId_ab7130eea0a06c4a690c3604388f388bc}

\item 
\hypertarget{classRunCommandBase_1_1ExecId_a6003b3060e3326f2bd3528ebe48aaf0a}{
uid\_\-t {\bfseries \_\-saved\_\-uid}}
\label{classRunCommandBase_1_1ExecId_a6003b3060e3326f2bd3528ebe48aaf0a}

\item 
\hypertarget{classRunCommandBase_1_1ExecId_ad30072603ed63b020c1f67f65fcc4104}{
gid\_\-t {\bfseries \_\-saved\_\-gid}}
\label{classRunCommandBase_1_1ExecId_ad30072603ed63b020c1f67f65fcc4104}

\item 
\hypertarget{classRunCommandBase_1_1ExecId_a49f9ae692cb784c4af8a679ae1d1d15d}{
bool {\bfseries \_\-is\_\-exec\_\-id\_\-saved}}
\label{classRunCommandBase_1_1ExecId_a49f9ae692cb784c4af8a679ae1d1d15d}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class for setting \hyperlink{protocolthe-p}{the} execution ID when running \hyperlink{protocolthe-p}{the} command. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classRunCommandBase_1_1ExecId_a13734038d59b075b9f93b1f642fc8257}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!ExecId@{ExecId}}
\index{ExecId@{ExecId}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{ExecId}]{\setlength{\rightskip}{0pt plus 5cm}RunCommandBase::ExecId::ExecId (
\begin{DoxyParamCaption}
\item[{uid\_\-t}]{uid}
\end{DoxyParamCaption}
)}}
\label{classRunCommandBase_1_1ExecId_a13734038d59b075b9f93b1f642fc8257}


Constructor for a given user ID. 


\begin{DoxyParams}{Parameters}
{\em uid} & \hyperlink{protocolthe-p}{the} user ID. \\
\hline
\end{DoxyParams}
\hypertarget{classRunCommandBase_1_1ExecId_a5978c0670453305604081a232f5907e7}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!ExecId@{ExecId}}
\index{ExecId@{ExecId}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{ExecId}]{\setlength{\rightskip}{0pt plus 5cm}RunCommandBase::ExecId::ExecId (
\begin{DoxyParamCaption}
\item[{uid\_\-t}]{uid, }
\item[{gid\_\-t}]{gid}
\end{DoxyParamCaption}
)}}
\label{classRunCommandBase_1_1ExecId_a5978c0670453305604081a232f5907e7}


Constructor for a given user ID and group ID. 


\begin{DoxyParams}{Parameters}
{\em uid} & \hyperlink{protocolthe-p}{the} user ID. \\
\hline
{\em gid} & \hyperlink{protocolthe-p}{the} group ID. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classRunCommandBase_1_1ExecId_ae19bf85f073a44aca5aa7f19b9ffff95}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!gid@{gid}}
\index{gid@{gid}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{gid}]{\setlength{\rightskip}{0pt plus 5cm}gid\_\-t RunCommandBase::ExecId::gid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRunCommandBase_1_1ExecId_ae19bf85f073a44aca5aa7f19b9ffff95}


Get \hyperlink{protocolthe-p}{the} group ID. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} group ID. 
\end{DoxyReturn}
\hypertarget{classRunCommandBase_1_1ExecId_a4892b4d1a237c666f62313784c1fc70a}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!is\_\-gid\_\-set@{is\_\-gid\_\-set}}
\index{is\_\-gid\_\-set@{is\_\-gid\_\-set}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{is\_\-gid\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}bool RunCommandBase::ExecId::is\_\-gid\_\-set (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRunCommandBase_1_1ExecId_a4892b4d1a237c666f62313784c1fc70a}


Test if \hyperlink{protocolthe-p}{the} group ID was assigned. 

\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} group ID was assigned, otherwise false. 
\end{DoxyReturn}
\hypertarget{classRunCommandBase_1_1ExecId_a10fafc7bca7ed58f2223b22ec4d52e41}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!is\_\-set@{is\_\-set}}
\index{is\_\-set@{is\_\-set}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{is\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}bool RunCommandBase::ExecId::is\_\-set (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classRunCommandBase_1_1ExecId_a10fafc7bca7ed58f2223b22ec4d52e41}


Test if \hyperlink{protocolthe-p}{the} execution ID is set. 

\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} execution ID is set, otherwise false. 
\end{DoxyReturn}
\hypertarget{classRunCommandBase_1_1ExecId_a98dbd6daab70299f571c73d3a5840af1}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!is\_\-uid\_\-set@{is\_\-uid\_\-set}}
\index{is\_\-uid\_\-set@{is\_\-uid\_\-set}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{is\_\-uid\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}bool RunCommandBase::ExecId::is\_\-uid\_\-set (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRunCommandBase_1_1ExecId_a98dbd6daab70299f571c73d3a5840af1}


Test if \hyperlink{protocolthe-p}{the} user ID was assigned. 

\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} user ID was assigned, otherwise false. 
\end{DoxyReturn}
\hypertarget{classRunCommandBase_1_1ExecId_a71a95f41ba0127f869d571402b536d4e}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!restore\_\-saved\_\-exec\_\-id@{restore\_\-saved\_\-exec\_\-id}}
\index{restore\_\-saved\_\-exec\_\-id@{restore\_\-saved\_\-exec\_\-id}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{restore\_\-saved\_\-exec\_\-id}]{\setlength{\rightskip}{0pt plus 5cm}int RunCommandBase::ExecId::restore\_\-saved\_\-exec\_\-id (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
) const}}
\label{classRunCommandBase_1_1ExecId_a71a95f41ba0127f869d571402b536d4e}


Restore \hyperlink{protocolthe-p}{the} previously saved execution ID. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classRunCommandBase_1_1ExecId_a6564bf7f688e82e2e349610d6947388e}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!set\_\-effective\_\-exec\_\-id@{set\_\-effective\_\-exec\_\-id}}
\index{set\_\-effective\_\-exec\_\-id@{set\_\-effective\_\-exec\_\-id}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{set\_\-effective\_\-exec\_\-id}]{\setlength{\rightskip}{0pt plus 5cm}int RunCommandBase::ExecId::set\_\-effective\_\-exec\_\-id (
\begin{DoxyParamCaption}
\item[{string \&}]{error\_\-msg}
\end{DoxyParamCaption}
)}}
\label{classRunCommandBase_1_1ExecId_a6564bf7f688e82e2e349610d6947388e}


Set \hyperlink{protocolthe-p}{the} effective execution ID. 


\begin{DoxyParams}{Parameters}
{\em error\_\-msg} & \hyperlink{protocolthe-p}{the} error message (if error). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
XORP\_\-OK on success, otherwise XORP\_\-ERROR. 
\end{DoxyReturn}
\hypertarget{classRunCommandBase_1_1ExecId_a115240678532f8f33684c9d8fd43f7a1}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!set\_\-gid@{set\_\-gid}}
\index{set\_\-gid@{set\_\-gid}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{set\_\-gid}]{\setlength{\rightskip}{0pt plus 5cm}void RunCommandBase::ExecId::set\_\-gid (
\begin{DoxyParamCaption}
\item[{gid\_\-t}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRunCommandBase_1_1ExecId_a115240678532f8f33684c9d8fd43f7a1}


Set \hyperlink{protocolthe-p}{the} group ID. 


\begin{DoxyParams}{Parameters}
{\em v} & \hyperlink{protocolthe-p}{the} group ID. \\
\hline
\end{DoxyParams}
\hypertarget{classRunCommandBase_1_1ExecId_a5290864061650902785f590b5f210f65}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!set\_\-uid@{set\_\-uid}}
\index{set\_\-uid@{set\_\-uid}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{set\_\-uid}]{\setlength{\rightskip}{0pt plus 5cm}void RunCommandBase::ExecId::set\_\-uid (
\begin{DoxyParamCaption}
\item[{uid\_\-t}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRunCommandBase_1_1ExecId_a5290864061650902785f590b5f210f65}


Set \hyperlink{protocolthe-p}{the} user ID. 


\begin{DoxyParams}{Parameters}
{\em v} & \hyperlink{protocolthe-p}{the} user ID. \\
\hline
\end{DoxyParams}
\hypertarget{classRunCommandBase_1_1ExecId_abb7e142c26f2318dd5d78855c2d46306}{
\index{RunCommandBase::ExecId@{RunCommandBase::ExecId}!uid@{uid}}
\index{uid@{uid}!RunCommandBase::ExecId@{RunCommandBase::ExecId}}
\subsubsection[{uid}]{\setlength{\rightskip}{0pt plus 5cm}uid\_\-t RunCommandBase::ExecId::uid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classRunCommandBase_1_1ExecId_abb7e142c26f2318dd5d78855c2d46306}


Get \hyperlink{protocolthe-p}{the} user ID. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} user ID. 
\end{DoxyReturn}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/run\_\-command.hh\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/run\_\-command.cc\end{DoxyCompactItemize}
