574 lines
37 KiB
HTML
574 lines
37 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
|
|
<title>tclap: TCLAP::UnlabeledValueArg< T > Class Template Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.0 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="navpath"><a class="el" href="namespaceTCLAP.html">TCLAP</a>::<a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">UnlabeledValueArg</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>TCLAP::UnlabeledValueArg< T > Class Template Reference</h1><!-- doxytag: class="TCLAP::UnlabeledValueArg" --><!-- doxytag: inherits="TCLAP::ValueArg" -->
|
|
<p>The basic unlabeled argument that parses a value.
|
|
<a href="#_details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for TCLAP::UnlabeledValueArg< T >:</div>
|
|
<div class="dynsection">
|
|
<div class="center">
|
|
<img src="classTCLAP_1_1UnlabeledValueArg.gif" usemap="#TCLAP::UnlabeledValueArg< T >_map" alt=""/>
|
|
<map id="TCLAP::UnlabeledValueArg< T >_map" name="TCLAP::UnlabeledValueArg< T >_map">
|
|
<area href="classTCLAP_1_1ValueArg.html" alt="TCLAP::ValueArg< T >" shape="rect" coords="0,56,199,80"/>
|
|
<area href="classTCLAP_1_1Arg.html" alt="TCLAP::Arg" shape="rect" coords="0,0,199,24"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
|
|
<p><a href="classTCLAP_1_1UnlabeledValueArg-members.html">List of all members.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee">UnlabeledValueArg</a> (const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, bool ignoreable=false, <a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> *v=NULL)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. <a href="#acba2fddd0719ccd90f48fcf06aaffbee"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#a9eafea8158d27a5af48e92f62debcf65">UnlabeledValueArg</a> (const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, <a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &parser, bool ignoreable=false, <a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> *v=NULL)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. <a href="#a9eafea8158d27a5af48e92f62debcf65"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#a2aa148ef6a2016bb3f32a33a7c644404">UnlabeledValueArg</a> (const std::string &name, const std::string &desc, bool req, T value, <a class="el" href="classTCLAP_1_1Constraint.html">Constraint</a>< T > *constraint, bool ignoreable=false, <a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> *v=NULL)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. <a href="#a2aa148ef6a2016bb3f32a33a7c644404"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#afd3af78fccd14f2654e9b2f981ead12f">UnlabeledValueArg</a> (const std::string &name, const std::string &desc, bool req, T value, <a class="el" href="classTCLAP_1_1Constraint.html">Constraint</a>< T > *constraint, <a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &parser, bool ignoreable=false, <a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> *v=NULL)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. <a href="#afd3af78fccd14f2654e9b2f981ead12f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#ad853d7950a659b0d4ee2cda3f61261fd">processArg</a> (int *i, std::vector< std::string > &args)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Handles the processing of the argument. <a href="#ad853d7950a659b0d4ee2cda3f61261fd"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#abda4d1d695003ba165b6797e03007a99">shortID</a> (const std::string &val="val") const </td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Overrides shortID for specific behavior. <a href="#abda4d1d695003ba165b6797e03007a99"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#ade738f42a7867324ce780b0c240b0460">longID</a> (const std::string &val="val") const </td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Overrides longID for specific behavior. <a href="#ade738f42a7867324ce780b0c240b0460"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#a74632cd4d169481518cb1a871f97b412">operator==</a> (const <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> &a) const </td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Overrides operator== for specific behavior. <a href="#a74632cd4d169481518cb1a871f97b412"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#a8670fc7797254e602d302318063f3515">addToList</a> (std::list< <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> * > &argList) const </td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Instead of pushing to the front of list, push to the back. <a href="#a8670fc7797254e602d302318063f3515"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class T><br/>
|
|
class TCLAP::UnlabeledValueArg< T ></h3>
|
|
|
|
<p>The basic unlabeled argument that parses a value. </p>
|
|
<p>This is a template class, which means the type T defines the type that a given object will attempt to parse when an <a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> is reached in the list of args that the <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> iterates over. </p>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00043">43</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
<hr/><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="acba2fddd0719ccd90f48fcf06aaffbee"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::UnlabeledValueArg" ref="acba2fddd0719ccd90f48fcf06aaffbee" args="(const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, bool ignoreable=false, Visitor *v=NULL)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::<a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">UnlabeledValueArg</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>desc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>req</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>typeDesc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>ignoreable</em> = <code>false</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> * </td>
|
|
<td class="paramname"> <em>v</em> = <code>NULL</code></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. </p>
|
|
<p>Constructor implemenation.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- A one word name for the argument. Note that this is used for identification, not as a long flag. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>desc</em> </td><td>- A description of what the argument is for or does. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>req</em> </td><td>- Whether the argument is required on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>- The default value assigned to this argument if it is not present on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>typeDesc</em> </td><td>- A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>ignoreable</em> </td><td>- Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>- Optional Vistor. You should leave this blank unless you have a very good reason. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00213">213</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="Arg_8h_source.html#l00150">TCLAP::Arg::_ignoreable</a>, <a class="el" href="OptionalUnlabeledTracker_8h_source.html#l00048">TCLAP::OptionalUnlabeledTracker::check()</a>, and <a class="el" href="Arg_8h_source.html#l00599">TCLAP::Arg::toString()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9eafea8158d27a5af48e92f62debcf65"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::UnlabeledValueArg" ref="a9eafea8158d27a5af48e92f62debcf65" args="(const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::<a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">UnlabeledValueArg</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>desc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>req</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>typeDesc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> & </td>
|
|
<td class="paramname"> <em>parser</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>ignoreable</em> = <code>false</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> * </td>
|
|
<td class="paramname"> <em>v</em> = <code>NULL</code></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- A one word name for the argument. Note that this is used for identification, not as a long flag. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>desc</em> </td><td>- A description of what the argument is for or does. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>req</em> </td><td>- Whether the argument is required on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>- The default value assigned to this argument if it is not present on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>typeDesc</em> </td><td>- A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>parser</em> </td><td>- A <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> parser object to add this <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> to </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>ignoreable</em> </td><td>- Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>- Optional Vistor. You should leave this blank unless you have a very good reason. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00229">229</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="Arg_8h_source.html#l00150">TCLAP::Arg::_ignoreable</a>, <a class="el" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631">TCLAP::CmdLineInterface::add()</a>, <a class="el" href="OptionalUnlabeledTracker_8h_source.html#l00048">TCLAP::OptionalUnlabeledTracker::check()</a>, and <a class="el" href="Arg_8h_source.html#l00599">TCLAP::Arg::toString()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2aa148ef6a2016bb3f32a33a7c644404"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::UnlabeledValueArg" ref="a2aa148ef6a2016bb3f32a33a7c644404" args="(const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, bool ignoreable=false, Visitor *v=NULL)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::<a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">UnlabeledValueArg</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>desc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>req</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1Constraint.html">Constraint</a>< T > * </td>
|
|
<td class="paramname"> <em>constraint</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>ignoreable</em> = <code>false</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> * </td>
|
|
<td class="paramname"> <em>v</em> = <code>NULL</code></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. </p>
|
|
<p>Constructor implemenation.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- A one word name for the argument. Note that this is used for identification, not as a long flag. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>desc</em> </td><td>- A description of what the argument is for or does. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>req</em> </td><td>- Whether the argument is required on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>- The default value assigned to this argument if it is not present on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>constraint</em> </td><td>- A pointer to a <a class="el" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a> object used to constrain this <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>ignoreable</em> </td><td>- Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>- Optional Vistor. You should leave this blank unless you have a very good reason. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00248">248</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="Arg_8h_source.html#l00150">TCLAP::Arg::_ignoreable</a>, <a class="el" href="OptionalUnlabeledTracker_8h_source.html#l00048">TCLAP::OptionalUnlabeledTracker::check()</a>, and <a class="el" href="Arg_8h_source.html#l00599">TCLAP::Arg::toString()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="afd3af78fccd14f2654e9b2f981ead12f"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::UnlabeledValueArg" ref="afd3af78fccd14f2654e9b2f981ead12f" args="(const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::<a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">UnlabeledValueArg</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>desc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>req</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">T </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1Constraint.html">Constraint</a>< T > * </td>
|
|
<td class="paramname"> <em>constraint</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> & </td>
|
|
<td class="paramname"> <em>parser</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>ignoreable</em> = <code>false</code>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classTCLAP_1_1Visitor.html">Visitor</a> * </td>
|
|
<td class="paramname"> <em>v</em> = <code>NULL</code></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> constructor. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- A one word name for the argument. Note that this is used for identification, not as a long flag. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>desc</em> </td><td>- A description of what the argument is for or does. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>req</em> </td><td>- Whether the argument is required on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>- The default value assigned to this argument if it is not present on the command line. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>constraint</em> </td><td>- A pointer to a <a class="el" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a> object used to constrain this <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>parser</em> </td><td>- A <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> parser object to add this <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> to </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>ignoreable</em> </td><td>- Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>v</em> </td><td>- Optional Vistor. You should leave this blank unless you have a very good reason. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00262">262</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="Arg_8h_source.html#l00150">TCLAP::Arg::_ignoreable</a>, <a class="el" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631">TCLAP::CmdLineInterface::add()</a>, <a class="el" href="OptionalUnlabeledTracker_8h_source.html#l00048">TCLAP::OptionalUnlabeledTracker::check()</a>, and <a class="el" href="Arg_8h_source.html#l00599">TCLAP::Arg::toString()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="a8670fc7797254e602d302318063f3515"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::addToList" ref="a8670fc7797254e602d302318063f3515" args="(std::list< Arg * > &argList) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::addToList </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::list< <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> * > & </td>
|
|
<td class="paramname"> <em>argList</em></td>
|
|
<td> ) </td>
|
|
<td> const<code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Instead of pushing to the front of list, push to the back. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>argList</em> </td><td>- The list to add this to. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00334">334</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ade738f42a7867324ce780b0c240b0460"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::longID" ref="ade738f42a7867324ce780b0c240b0460" args="(const std::string &val="val") const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string <a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::longID </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>val</em> = <code>"val"</code></td>
|
|
<td> ) </td>
|
|
<td> const<code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Overrides longID for specific behavior. </p>
|
|
<p>Overriding longID for specific output. </p>
|
|
|
|
<p>Reimplemented from <a class="el" href="classTCLAP_1_1ValueArg.html#a586d25c04c39ddf0e589605d79f72f8a">TCLAP::ValueArg< T ></a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00311">311</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="ValueArg_8h_source.html#l00067">TCLAP::ValueArg< T >::_typeDesc</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a74632cd4d169481518cb1a871f97b412"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::operator==" ref="a74632cd4d169481518cb1a871f97b412" args="(const Arg &a) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::operator== </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> & </td>
|
|
<td class="paramname"> <em>a</em></td>
|
|
<td> ) </td>
|
|
<td> const<code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Overrides operator== for specific behavior. </p>
|
|
<p>Overriding operator== for specific behavior. </p>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00325">325</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="Arg_8h_source.html#l00112">TCLAP::Arg::_description</a>, <a class="el" href="Arg_8h_source.html#l00107">TCLAP::Arg::_name</a>, <a class="el" href="Arg_8h_source.html#l00554">TCLAP::Arg::getDescription()</a>, and <a class="el" href="Arg_8h_source.html#l00569">TCLAP::Arg::getName()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad853d7950a659b0d4ee2cda3f61261fd"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::processArg" ref="ad853d7950a659b0d4ee2cda3f61261fd" args="(int *i, std::vector< std::string > &args)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::processArg </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int * </td>
|
|
<td class="paramname"> <em>i</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< std::string > & </td>
|
|
<td class="paramname"> <em>args</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Handles the processing of the argument. </p>
|
|
<p>Implementation of <a class="el" href="classTCLAP_1_1UnlabeledValueArg.html#ad853d7950a659b0d4ee2cda3f61261fd" title="Handles the processing of the argument.">processArg()</a>.</p>
|
|
<p>This re-implements the <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> version of this method to set the _value of the argument appropriately. Handling specific to unlabled arguments. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>i</em> </td><td>- Pointer the the current argument in the list. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>args</em> </td><td>- Mutable list of strings. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Reimplemented from <a class="el" href="classTCLAP_1_1ValueArg.html#a71e6ee7c7324724b6fc067c5ffe31160">TCLAP::ValueArg< T ></a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00281">281</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="Arg_8h_source.html#l00137">TCLAP::Arg::_alreadySet</a>, <a class="el" href="ValueArg_8h_source.html#l00400">TCLAP::ValueArg< T >::_extractValue()</a>, and <a class="el" href="Arg_8h_source.html#l00641">TCLAP::Arg::_hasBlanks()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abda4d1d695003ba165b6797e03007a99"></a><!-- doxytag: member="TCLAP::UnlabeledValueArg::shortID" ref="abda4d1d695003ba165b6797e03007a99" args="(const std::string &val="val") const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class T > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string <a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg</a>< T >::shortID </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"> <em>val</em> = <code>"val"</code></td>
|
|
<td> ) </td>
|
|
<td> const<code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Overrides shortID for specific behavior. </p>
|
|
<p>Overriding shortID for specific output. </p>
|
|
|
|
<p>Reimplemented from <a class="el" href="classTCLAP_1_1ValueArg.html#abb1eb22814d0a0da49c5f8bb57362d09">TCLAP::ValueArg< T ></a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="UnlabeledValueArg_8h_source.html#l00301">301</a> of file <a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="ValueArg_8h_source.html#l00067">TCLAP::ValueArg< T >::_typeDesc</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="UnlabeledValueArg_8h_source.html">UnlabeledValueArg.h</a></li>
|
|
</ul>
|
|
</div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
|
|
</body>
|
|
</html>
|