Logo Search packages:      
Sourcecode: passwordmaker-cli version File versions  Download package

template<class T >
TCLAP::MultiArg< T >::MultiArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
const std::vector< T > &  allowed,
CmdLineInterface parser,
Visitor v = NULL 
)

Constructor.

Parameters:
flag- The one character flag that identifies this argument on the command line.
name- A one word name for the argument. Can be used as a long flag on the command line.
desc- A description of what the argument is for or does.
req- Whether the argument is required on the command line.
allowed- A vector of type T that where the values in the vector are the only values allowed for the arg.
parser- A CmdLine parser object to add this Arg to
v- An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 415 of file MultiArg.h.

References TCLAP::CmdLineInterface::add(), and TCLAP::MultiArg< T >::allowedInit().

: Arg( flag, name, desc, req, true, v ),
  _allowed( allowed )
{ 
      allowedInit();
      parser.add( this );
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index