Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 639

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

\section{ost::Command\-Option\-Rest Class Reference}
\label{classost_1_1_command_option_rest}\index{ost::CommandOptionRest@{ost::CommandOptionRest}}
It only makes sense to have a single one of these set and it is exclusive with {\bf Command\-Option\-Collect.Command\-Option}{\rm (p.\,\pageref{classost_1_1_command_option_989bf900aed6323812ae6922edcdc4af})} to take the rest of the command line.  


{\tt \#include $<$cmdoptns.h$>$}

Inheritance diagram for ost::Command\-Option\-Rest::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3cm]{classost_1_1_command_option_rest}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Command\-Option\-Rest} (const char $\ast$in\-Option\-Name, const char $\ast$in\-Option\-Letter, const char $\ast$in\-Description, bool in\-Required=false, {\bf Command\-Option} $\ast$$\ast$pp\-Next=\&{\bf default\-Command\-Option\-List})
\begin{CompactList}\small\item\em {\bf Command\-Option\-Rest}{\rm (p.\,\pageref{classost_1_1_command_option_rest})} contructor. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
It only makes sense to have a single one of these set and it is exclusive with {\bf Command\-Option\-Collect.Command\-Option}{\rm (p.\,\pageref{classost_1_1_command_option_989bf900aed6323812ae6922edcdc4af})} to take the rest of the command line. 

It is the option that takes the rest of the command line options that are not part of any other options. e.g. \char`\"{}strace -ofile command arg1 arg2\char`\"{}. The \char`\"{}command arg1 arg2\char`\"{} part is placed in objects of this class. \begin{Desc}
\item[Examples: ]\par


{\bf cmdlineopt.cpp}.\end{Desc}




\subsection{Constructor \& Destructor Documentation}
\index{ost::CommandOptionRest@{ost::Command\-Option\-Rest}!CommandOptionRest@{CommandOptionRest}}
\index{CommandOptionRest@{CommandOptionRest}!ost::CommandOptionRest@{ost::Command\-Option\-Rest}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Command\-Option\-Rest::Command\-Option\-Rest (const char $\ast$ {\em in\-Option\-Name}, const char $\ast$ {\em in\-Option\-Letter}, const char $\ast$ {\em in\-Description}, bool {\em in\-Required} = {\tt false}, {\bf Command\-Option} $\ast$$\ast$ {\em pp\-Next} = {\tt \&{\bf default\-Command\-Option\-List}})}\label{classost_1_1_command_option_rest_df9824e9309fd733c2deb4f5652353c9}


{\bf Command\-Option\-Rest}{\rm (p.\,\pageref{classost_1_1_command_option_rest})} contructor. 

This sets the option\-Type for this object to Trailing.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em in\-Option\-Name}]long option name \item[{\em in\-Option\-Letter}]short letter name \item[{\em in\-Description}]short description of the option \item[{\em in\-Required}]true if option is required \item[{\em pp\-Next}]the linked list header \end{description}
\end{Desc}


The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
{\bf cmdoptns.h}\end{CompactItemize}