\section{cmdoptns.h File Reference} \label{cmdoptns_8h}\index{cmdoptns.h@{cmdoptns.h}} Command line option parsing interface. {\tt \#include $<$cc++/string.h$>$}\par \subsection*{Namespaces} \begin{CompactItemize} \item namespace {\bf ost} \end{CompactItemize} \subsection*{Classes} \begin{CompactItemize} \item class {\bf ost::Command\-Option} \begin{CompactList}\small\item\em {\bf Command\-Option}{\rm (p.\,\pageref{classost_1_1_command_option})} is the base class for all command line options. \item\end{CompactList}\item class {\bf ost::Command\-Option\-With\-Arg} \begin{CompactList}\small\item\em Derived class of {\bf Command\-Option}{\rm (p.\,\pageref{classost_1_1_command_option})} for options that have a value associated with them. \item\end{CompactList}\item class {\bf ost::Command\-Option\-Arg} \begin{CompactList}\small\item\em Class for options with an argument e.g. \item\end{CompactList}\item class {\bf ost::Command\-Option\-Rest} \begin{CompactList}\small\item\em 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. \item\end{CompactList}\item class {\bf ost::Command\-Option\-Collect} \begin{CompactList}\small\item\em It only makes sense to have a single one of these set and it is also exclusive with {\bf Command\-Option\-Rest.Command\-Option}{\rm (p.\,\pageref{classost_1_1_command_option_989bf900aed6323812ae6922edcdc4af})} to collect parameters that are not options. \item\end{CompactList}\item class {\bf ost::Command\-Option\-No\-Arg} \begin{CompactList}\small\item\em {\bf Command\-Option}{\rm (p.\,\pageref{classost_1_1_command_option})} type for flags. \item\end{CompactList}\item class {\bf ost::Command\-Option\-Parse} \begin{CompactList}\small\item\em This is the {\bf Command\-Option\-Parse}{\rm (p.\,\pageref{classost_1_1_command_option_parse})} interface class. \item\end{CompactList}\end{CompactItemize} \subsection*{Functions} \begin{CompactItemize} \item \_\-\_\-EXPORT Command\-Option\-Parse $\ast$ {\bf ost::make\-Command\-Option\-Parse} (int argc, char $\ast$$\ast$argv, char $\ast$comment, Command\-Option $\ast$options={\bf default\-Command\-Option\-List}) \begin{CompactList}\small\item\em make\-Command\-Option\-Parse will create an implementation of a {\bf Command\-Option\-Parse}{\rm (p.\,\pageref{classost_1_1_command_option_parse})} object. \item\end{CompactList}\end{CompactItemize} \subsection*{Variables} \begin{CompactItemize} \item \_\-\_\-EXPORT Command\-Option $\ast$ {\bf ost::default\-Command\-Option\-List} \begin{CompactList}\small\item\em This defines a linked list head pointer for all the command line options that use the default list. \item\end{CompactList}\end{CompactItemize} \subsection{Detailed Description} Command line option parsing interface.