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

void TCLAP::CmdLine::xorAdd ( std::vector< Arg * > &  xors ) [inline, virtual]

Add a list of Args that will be xor'd. If this method is used, add does not need to be called.

Parameters:
xors- List of Args to be added and xor'd.

Implements TCLAP::CmdLineInterface.

Definition at line 339 of file CmdLine.h.

References _xorHandler, add(), and TCLAP::XorHandler::add().

{
      _xorHandler.add( ors );

      for (ArgVectorIterator it = ors.begin(); it != ors.end(); it++)
      {
            (*it)->forceRequired();
            (*it)->setRequireLabel( "OR required" );

            add( *it );
      }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index