A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCCommandLineParser.html below:

NCBI C++ ToolKit: CCommandLineParser Class Reference

Search Toolkit Book for CCommandLineParser

#include <connect/services/clparser.hpp>

  CCommandLineParser (EVoid)     CCommandLineParser (SCommandLineParserImpl *impl)   CCommandLineParseroperator= (SCommandLineParserImpl *impl)     operator SCommandLineParserImpl * ()     operator const SCommandLineParserImpl * () const   SCommandLineParserImploperator-- (int)   const SCommandLineParserImploperator-- (int) const   SCommandLineParserImploperator-> ()   const SCommandLineParserImploperator-> () const     CCommandLineParser ()     CCommandLineParser (const string &program_name, const string &version_info, const string &program_summary, const string &program_description=kEmptyStr)   void  SetHelpTextMargins (int help_text_width, int cmd_descr_indent, int opt_descr_indent)   void  AddOption (EOptionType type, int opt_id, const string &name_variants, const string &description)   void  AddCommandCategory (int cat_id, const string &title)   void  AddCommand (int cmd_id, const string &name_variants, const string &synopsis, const string &usage, int cat_id=-1)   void  AddAssociation (int cmd_id, int opt_id)   int  Parse (int argc, const char *const *argv)   Parse the command line. More...
  const stringGetProgramName () const   bool  NextOption (int *opt_id, const char **opt_value)  

Definition at line 45 of file clparser.hpp.

◆ TInstance ◆ EOptionType Enumerator eSwitch  eOptionWithParameter  ePositionalArgument  eOptionalPositional  eZeroOrMorePositional  eOneOrMorePositional 

Definition at line 60 of file clparser.hpp.

◆ CCommandLineParser() [1/4] CCommandLineParser::CCommandLineParser ( EVoid  ) inline

Definition at line 47 of file clparser.hpp.

◆ CCommandLineParser() [2/4] ◆ CCommandLineParser() [3/4] CCommandLineParser::CCommandLineParser ( ) inline

Definition at line 47 of file clparser.hpp.

◆ CCommandLineParser() [4/4] ◆ AddAssociation() void CCommandLineParser::AddAssociation ( int  cmd_id, int  opt_id  ) ◆ AddCommand() ◆ AddCommandCategory() void CCommandLineParser::AddCommandCategory ( int  cat_id, const stringtitle  ) ◆ AddOption() ◆ GetProgramName() const string & CCommandLineParser::GetProgramName ( ) const ◆ NextOption() bool CCommandLineParser::NextOption ( intopt_id, const char **  opt_value  ) ◆ operator const SCommandLineParserImpl *() ◆ operator SCommandLineParserImpl *() ◆ operator--() [1/2] ◆ operator--() [2/2] ◆ operator->() [1/2] ◆ operator->() [2/2] ◆ operator=() ◆ Parse()

Parse the command line.

Print program version or the help screen if requested by the command line arguments.

Returns
One of the command identifiers or -1 if the requested command is either help or version command, in which case it has been already processed by this method, and the caller must immediately exit with return code 0.

Definition at line 734 of file clparser.cpp.

References m_Impl.

Referenced by CGridCommandLineInterfaceApp::Run(), and CComponentIDToolApp::Run().

◆ SetHelpTextMargins() void CCommandLineParser::SetHelpTextMargins ( int  help_text_width, int  cmd_descr_indent, int  opt_descr_indent  ) ◆ m_Impl

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4