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

void TCLAP::CmdLine::_constructor (  ) [inline, private]

Encapsulates the code common to the constructors (which is all of it).

Definition at line 305 of file CmdLine.h.

References _delimiter, _output, add(), deleteOnExit(), TCLAP::Arg::flagStartString(), TCLAP::Arg::ignoreNameString(), and TCLAP::Arg::setDelimiter().

Referenced by CmdLine().

{ 
      _output = new StdOutput;

      Visitor *v;
      
      Arg::setDelimiter( _delimiter );

      v = new HelpVisitor( this, &_output );
      SwitchArg* help = new SwitchArg("h","help", 
                              "Displays usage information and exits.", 
                              false, v);
      add( help );
      deleteOnExit(help);
      deleteOnExit(v);
      
      v = new VersionVisitor( this, &_output );
      SwitchArg* vers = new SwitchArg("v","version", 
                              "Displays version information and exits.", 
                              false, v);
      add( vers );
      deleteOnExit(vers);
      deleteOnExit(v);

      v = new IgnoreRestVisitor();
      SwitchArg* ignore  = new SwitchArg(Arg::flagStartString(), 
                                 Arg::ignoreNameString(),
                     "Ignores the rest of the labeled arguments following this flag.",
                                 false, v);
      add( ignore );
      deleteOnExit(ignore);
      deleteOnExit(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index