Bitwise OR of "EArgValueFlags".
Definition at line 330 of file ncbiargs.hpp.
◆ TCommandArgFlags ◆ TDependencies ◆ TDependency_CI ◆ TDescriptions ◆ TFileFlags ◆ TFlags ◆ THideStdArgs ◆ TInterval [1/2] ◆ TInterval [2/2] ◆ TKeyFlagArgs ◆ TMiscFlags ◆ TPosArgs ◆ TStringArraySome values types can contain several value lists.
Example: CGIs pass list selections by repeating the same name
Definition at line 308 of file ncbiargs.hpp.
◆ TStringsType of the container that contains the allowed string values.
Definition at line 1720 of file ncbiargs.hpp.
◆ TSymClass ◆ EArgPositionalModeProcessing of positional arguments.
In strict mode any value starting with '-' is treated as a key/flag unless any positional arguments have already been found (e.g. after '–' argument). In loose mode any argument is treated as positional if it can not be processed as a valid key or flag.
Enumerator ePositionalMode_StrictStrict mode (default)
ePositionalMode_LooseLoose mode.
Definition at line 599 of file ncbiargs.hpp.
◆ EArgSetTypeType of CArgDescriptions For a CGI application positional arguments and flags does not make sense (this syntax cannot be expressed by CGI protocol)
Enumerator eRegularArgsRegular application.
eCgiArgsCGI application.
Definition at line 582 of file ncbiargs.hpp.
◆ EArgValueFlagsWhether the argument:
Has default value.
fArgValue_FromDefaultNot provided in command line.
Definition at line 326 of file ncbiargs.hpp.
◆ ECommandArgFlags Enumerator eCommandMandatoryNonempty command is required.
eCommandOptionalCommand is not necessary.
eNoSortCommandsOn PrintUsage, keep commands unsorted.
eNoSortGroupsOn PrintUsage, keep command groups unsorted.
Definition at line 1416 of file ncbiargs.hpp.
◆ ECommandFlags Enumerator eDefault eHiddenHide command in Usage.
Definition at line 1441 of file ncbiargs.hpp.
◆ EConstraintNegateFlag to invert constraint logically.
Enumerator eConstraintInvertLogical NOT.
eConstraintConstraint is not inverted (taken as is)
Definition at line 954 of file ncbiargs.hpp.
◆ EDependencyDependencies between arguments.
Enumerator eRequiresOne argument requires another.
eExcludesOne argument excludes another.
Definition at line 987 of file ncbiargs.hpp.
◆ EErrCode [1/2]Error types for improperly formatted arguments.
These error conditions are checked for and caught when processing arguments.
Enumerator eInvalidArgInvalid argument.
eNoValueExpecting an argument value.
eExcludedValueThe value is excluded by another argument.
eWrongCastIncorrect cast for an argument.
eConvertConversion problem.
eNoFileExpecting a file.
eConstraintArgument value outside constraints.
eArgTypeWrong argument type.
eNoArgNo argument.
eSynopsisSynopsis error.
Definition at line 126 of file ncbiargs.hpp.
◆ EErrCode [2/2]Error type for help exception.
Enumerator eHelpError code for short help message.
eHelpFullError code for detailed help message.
eHelpShowAllError code for detailed help message which includes hidden arguments.
eHelpXmlError code for XML formatted help message.
eHelpErrShow short help message and return error.
Definition at line 161 of file ncbiargs.hpp.
◆ EFileFlags Enumerator fBinaryOpen file in binary mode.
fTextOpen file in text mode.
fAppendOpen file in append mode.
fTruncateOpen file in truncate mode.
fNoCreateOpen existing file, never create it.
fCreatePathIf needed, create directory where the file is located.
Definition at line 262 of file ncbiargs.hpp.
◆ EFlagsAdditional flags, the first group is file related flags.
Must match the argument type, or an exception will be thrown. ( File related are for eInputFile and eOutputFiler argument types.)
Enumerator fPreOpenOpen file right away; for eInputFile, eOutputFile, eIOFile.
fBinaryOpen as binary file; for eInputFile, eOutputFile, eIOFile.
fAppendAppend to end-of-file; for eOutputFile or eIOFile.
fTruncateDelete contents of an existing file; for eOutputFile or eIOFile.
fNoCreateIf the file does not exist, do not create it; for eOutputFile or eIOFile.
fCreatePathIf needed, create directory where the file is located.
fFileFlagsMask for all file-related flags.
fAllowMultipleRepeated key arguments are legal (use with AddKey)
fIgnoreInvalidValueIgnore invalid argument values.
If not set, exceptions will be thrown on invalid values.
fWarnOnInvalidValuePost warning when an invalid value is ignored (no effect if fIgnoreInvalidValue is not set).
fOptionalSeparatorAllow to ignore separator between the argument's name and value.
Usual ' ' or '=' separators can still be used with the argument. The following restrictions apply to a no-separator argument:
For arguments with fOptionalSeparator flag, allow other arguments which names begin with the same char.
fMandatorySeparatorRequire '=' separator.
fHiddenHide it in Usage.
fConfidentialConfidential argument Such arguments can be read from command line, from file, or from console.
On command line, they can appear in one of the following forms: -key – read value from console, with automatically generated prompt -key-file fname – read value from file 'fname', if 'fname' equals '-', read value from standard input (stdin) without any prompt -key-verbatim value – read value from the command line, as is
fStandardMark standard/special flag. For internal use only.
Definition at line 637 of file ncbiargs.hpp.
◆ EFlagValue ◆ EHideStdArgsWhich standard flag's descriptions should not be displayed in the usage message.
Do not display descriptions of the standard flags such as the -h, -logfile, -conffile, -version flags in the usage message. Note that you still can pass them in the command line.
Enumerator fHideLogfileHide log file description.
fHideConffileHide configuration file description.
fHideVersionHide version description.
fHideFullVersionHide full version description.
fHideDryRunHide dryrun description.
fHideHelpHide help description.
fHideFullHelpHide full help description.
fHideXmlHelpHide XML help description.
fHideAllHide all standard argument descriptions.
Definition at line 1095 of file ncbiargs.hpp.
◆ EInstantSet ◆ EMiscFlagsMiscellaneous flags.
Enumerator fNoUsageDo not print USAGE on argument error.
fUsageIfNoArgsForce printing USAGE (and then exit) if no command line args are present.
fUsageSortArgsSort args when printing USAGE.
fDupErrToCerrPrint arg error to both log and cerr.
fMisc_DefaultDefinition at line 1059 of file ncbiargs.hpp.
◆ EPostCheckCaller ◆ ESymbolClassSymbol class for defining sets of characters.
Symbol character classes patterned after those defined in <ctype.h>.
Enumerator eAlnumAlphanumeric characters.
eAlphaAlphabet characters.
eCntrlControl characters.
eDigitDigit characters.
eGraphGraphical characters.
eLowerLowercase characters.
ePrintPrintable characters.
ePunctPunctuation characters.
eSpaceSpace characters.
eUpperUppercase characters.
eXdigitHexadecimal characters.
eUserUser defined characters using constructor with string&.
Definition at line 1572 of file ncbiargs.hpp.
◆ ETypeAvailable argument types.
Enumerator eStringAn arbitrary string.
eBoolean{'true', 't', 'false', 'f'}, case-insensitive
eInt8Convertible into an integer number (Int8 only)
eIntegerConvertible into an integer number (int or Int8)
eIntIdConvertible to TIntId (int or Int8 depending on NCBI_INT8_GI)
eDoubleConvertible into a floating point number (double)
eInputFileName of file (must exist and be readable)
eOutputFileName of file (must be writable)
eIOFileName of file (must be writable)
eDirectoryName of file directory.
eDataSizeInteger number with possible "software" qualifiers (KB, KiB, et al)
eDateTimeDateTime string, formats: "M/D/Y h:m:s", "Y-M-DTh:m:g", "Y/M/D h:m:g", "Y-M-D h:m:g".
Time string can have trailing 'Z' symbol, specifying that it represent time in the UTC format.
k_EType_SizeFor internal use only.
Definition at line 611 of file ncbiargs.hpp.
◆ Add() [1/3]Make another dependency group a member of this dependency group.
Definition at line 4973 of file ncbiargs.cpp.
References CArgDependencyGroup::m_Groups.
◆ Add() [2/3]Add new argument name and value.
Throw an exception if the "name" is not an empty string, and if there is an argument with this name already and "update" parameter is not set.
HINT: Use empty "name" to add extra (unnamed) args, and they will be automagically assigned with the virtual names: "#1", "#2", "#3", etc.
Definition at line 1937 of file ncbiargs.cpp.
References _ASSERT, CArgValue::AsString(), set< Key, Compare >::end(), CArgValue::GetName(), set< Key, Compare >::insert(), CArgs::m_Args, CArgValue::m_Name, CArgs::m_nExtra, NCBI_THROW, CArgs::Remove(), s_ComposeNameExtra(), CArgValue::SetOrdinalPosition(), CArgValue::SetStringList(), set< Key, Compare >::size(), CArgDescriptions::VerifyName(), and CArgs::x_Find().
Referenced by CArgDescriptions::x_PostCheck().
◆ Add() [3/3]Make a regular argument a member of this dependency group.
An argument with this name will need to be added separately using CArgDescriptions::AddXXX().
Definition at line 4967 of file ncbiargs.cpp.
References CArgDependencyGroup::m_Arguments.
◆ AddAlias() ◆ AddCommand()Add command argument descriptions.
Definition at line 4056 of file ncbiargs.cpp.
References cmd, command, CArgDescriptions::Delete(), CCommandArgDescriptions::eHidden, map_checker< Container >::erase(), CArgDescriptions::Exist(), flags, kEmptyStr, CCommandArgDescriptions::m_Aliases, CArgDescriptions::m_AutoHelp, CCommandArgDescriptions::m_Commands, CCommandArgDescriptions::m_CurrentCmdGroup, CCommandArgDescriptions::m_Description, CCommandArgDescriptions::m_Groups, CArgDescriptions::m_HasHidden, NCBI_THROW, s_AutoHelp, s_AutoHelpFull, s_AutoHelpShowAll, s_AutoHelpXml, CCommandArgDescriptions::SetCurrentCommandGroup(), and NStr::TruncateSpaces().
◆ AddCommandDescription() ◆ AddDefaultFileArguments() void CArgDescriptions::AddDefaultFileArguments ( const string & default_config ) ◆ AddDefaultKey()Add description for optional key with default value.
Optional key with default value has the following syntax:
arg_key_dflt := [-<key>
]
Will throw exception CArgException if:
Any argument can be later referenced using its unique name "name".
Definition at line 2467 of file ncbiargs.cpp.
References flags, and CArgDescriptions::x_AddDesc().
Referenced by CFlatFileConfig::AddArgumentDescriptions(), CArgDescriptions::AddDefaultFileArguments(), CWinMaskConfig::AddWinMaskArgs(), CSdbapiTest::Init(), CAVApp::Init(), CId2FetchApp::Init(), CSdbapiSimpleApp::Init(), CDbapiTestSpeedApp::InitSample(), s_InitPsgOptions(), CPsgClientApp::s_InitRequest(), CStdCmdLineArgs::SetArgumentDescriptions(), CTaskCmdLineArgs::SetArgumentDescriptions(), COffDiagonalRangeArg::SetArgumentDescriptions(), CRMBlastNArg::SetArgumentDescriptions(), CGenericSearchArgs::SetArgumentDescriptions(), CFilteringArgs::SetArgumentDescriptions(), CCompositionBasedStatsArgs::SetArgumentDescriptions(), CLargestIntronSizeArgs::SetArgumentDescriptions(), CGeneticCodeArgs::SetArgumentDescriptions(), CGapTriggerArgs::SetArgumentDescriptions(), CPssmEngineArgs::SetArgumentDescriptions(), CPsiBlastArgs::SetArgumentDescriptions(), CKBlastpArgs::SetArgumentDescriptions(), CDeltaBlastArgs::SetArgumentDescriptions(), CMappingArgs::SetArgumentDescriptions(), CQueryOptionsArgs::SetArgumentDescriptions(), CMapperQueryOptionsArgs::SetArgumentDescriptions(), CIgBlastArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMapperFormattingArgs::SetArgumentDescriptions(), CMTArgs::SetArgumentDescriptions(), CMbIndexArgs::SetArgumentDescriptions(), CSRASearchModeArgs::SetArgumentDescriptions(), CMapperGenericSearchArgs::SetArgumentDescriptions(), CMapperNuclArgs::SetArgumentDescriptions(), CMapperLargestIntronSizeArgs::SetArgumentDescriptions(), CInputStreamSource::SetStandardInputArgs(), CAdvancedAlignCleanup::SetupArgDescriptions(), CSplignArgUtil::SetupArgDescriptions(), CAlignCollapser::SetupArgDescriptions(), CGnomonAnnotatorArgUtil::SetupArgDescriptions(), CChainerArgUtil::SetupArgDescriptions(), CMultAlign::SetupArgDescriptions(), CCompartOptions::SetupArgDescriptions(), CProSplignOptions_Base::SetupArgDescriptions(), CProSplignScoring::SetupArgDescriptions(), CProSplignOutputOptions::SetupArgDescriptions(), CDBLBClientApp::x_InitLookup(), CDBLBClientApp::x_InitWhereIs(), and CTbl2AsnApp::x_SetAlnArgs().
◆ AddDefaultPositional()Add description for optional positional argument with default value.
Optional positional argument with default value has the following syntax:
arg_pos_dflt := [
]
Will throw exception CArgException if:
Definition at line 2537 of file ncbiargs.cpp.
References flags, and CArgDescriptions::x_AddDesc().
◆ AddDependencyGroup()Add a dependency group.
The argument constraints specified by the dependency group(s) will be processed only after all regular dependencies for arguments and dependency groups have been processed.
Definition at line 2611 of file ncbiargs.cpp.
References set< Key, Compare >::insert(), and CArgDescriptions::m_DependencyGroups.
◆ AddDescription() void CArgDescriptions::CPrintUsage::AddDescription ( list< string > & arr, bool detailed ) const ◆ AddDetails() void CArgDescriptions::CPrintUsage::AddDetails ( list< string > & arr ) constDefinition at line 3773 of file ncbiargs.cpp.
References arr, NStr::fWrap_Hyphenate, i, kEmptyStr, kMax_UInt, s_IsFlag(), s_IsOptional(), s_PrintCommentBody(), string, NStr::UIntToString(), and NStr::Wrap().
Referenced by CArgDescriptions::PrintUsage(), and CCommandArgDescriptions::PrintUsage().
◆ AddExtra() void CArgDescriptions::AddExtra ( unsigned n_mandatory, unsigned n_optional, const string & comment, EType type, TFlags flags =0
) ◆ AddFlag()
Add description for flag argument.
Flag argument has the following syntax:
arg_flag := -<flag>, <flag> := "name"
If argument "set_value" is eFlagHasValueIfSet (TRUE), then:
Setting argument "set_value" to FALSE will reverse the above meaning.
NOTE: If CArgValue::HasValue() is TRUE, then AsBoolean() is always TRUE.
Definition at line 2485 of file ncbiargs.cpp.
References CArgDescriptions::eFlagHasValueIfSet, flags, and CArgDescriptions::x_AddDesc().
Referenced by CFlatFileConfig::AddArgumentDescriptions(), CLocalTaxon::AddArguments(), CArgDescriptions::AddStdArguments(), CWinMaskConfig::AddWinMaskArgs(), COMSSA::AppInit(), CArgDescriptions::CArgDescriptions(), CAVApp::Init(), SUApp::Init(), Cn3DNoWin::Init(), CId2FetchApp::Init(), CNcbiTestApplication::Init(), s_AddLatencyOptions(), s_CommandlessInit(), s_InitDataFlags(), s_InitDataOnly(), s_InitPsgOptions(), CPsgClientApp::s_InitRequest(), CStdCmdLineArgs::SetArgumentDescriptions(), CRMBlastNArg::SetArgumentDescriptions(), CNuclArgs::SetArgumentDescriptions(), CCompositionBasedStatsArgs::SetArgumentDescriptions(), CGappedArgs::SetArgumentDescriptions(), CPsiBlastArgs::SetArgumentDescriptions(), CDeltaBlastArgs::SetArgumentDescriptions(), CQueryOptionsArgs::SetArgumentDescriptions(), CMapperQueryOptionsArgs::SetArgumentDescriptions(), CBlastDatabaseArgs::SetArgumentDescriptions(), CIgBlastArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMapperFormattingArgs::SetArgumentDescriptions(), CRemoteArgs::SetArgumentDescriptions(), CDebugArgs::SetArgumentDescriptions(), CHspFilteringArgs::SetArgumentDescriptions(), CSRASearchModeArgs::SetArgumentDescriptions(), CMapperGenericSearchArgs::SetArgumentDescriptions(), CAdvancedAlignCleanup::SetupArgDescriptions(), CAlignCollapser::SetupArgDescriptions(), CGnomonAnnotatorArgUtil::SetupArgDescriptions(), CChainerArgUtil::SetupArgDescriptions(), CGridWorkerApp::SetupArgDescriptions(), CProSplignOptions_Base::SetupArgDescriptions(), CProSplignOutputOptions::SetupArgDescriptions(), CDBLBClientApp::x_InitLookup(), and CDBLBClientApp::x_InitWhereIs().
◆ AddKey()Add description for mandatory key.
Mandatory key has the syntax:
arg_key := -<key>
Will throw exception CArgException if:
Any argument can be later referenced using its unique name "name".
Definition at line 2437 of file ncbiargs.cpp.
References flags, and CArgDescriptions::x_AddDesc().
Referenced by CWinMaskConfig::AddWinMaskArgs(), CAVApp::Init(), SUApp::Init(), Cn3DNoWin::Init(), CPsgClientApp::s_InitRequest(), CTaskCmdLineArgs::SetArgumentDescriptions(), CBlastDatabaseArgs::SetArgumentDescriptions(), CInputStreamSource::SetStandardInputArgs(), CGnomonAnnotatorArgUtil::SetupArgDescriptions(), CChainerArgUtil::SetupArgDescriptions(), and CDBLBClientApp::x_InitLookup().
◆ AddNegatedFlagAlias() ◆ AddOpening()Add description of mandatory opening positional argument.
Mandatory opening argument has the following syntax: arg_pos :=
NOTE: In command line, mandatory opening arguments must go first, before any other arguments; their order is defined by the order in which they were described and added into CArgDescriptions.
Will throw exception CArgException if:
Any argument can be later referenced using its unique name "name".
Definition at line 2510 of file ncbiargs.cpp.
References flags, and CArgDescriptions::x_AddDesc().
Referenced by s_InitCreate(), and s_InitPost().
◆ AddOptionalKey()Add description for optional key without default value.
Optional key without default value has the following syntax:
arg_key_opt := [-<key>
]
Will throw exception CArgException if:
Any argument can be later referenced using its unique name "name".
Definition at line 2452 of file ncbiargs.cpp.
References flags, and CArgDescriptions::x_AddDesc().
Referenced by CFlatFileConfig::AddArgumentDescriptions(), CGenomicCollectionsService::AddArguments(), CLocalTaxon::AddArguments(), CArgDescriptions::AddDefaultFileArguments(), CArgDescriptions::AddStdArguments(), CWinMaskConfig::AddWinMaskArgs(), SUApp::Init(), Cn3DNoWin::Init(), CId2FetchApp::Init(), CNcbiTestApplication::Init(), CDbapiTestSpeedApp::InitSample(), CLangQueryApp::InitSample(), s_InitDataOnly(), s_InitPost(), s_InitPsgOptions(), CPsgClientApp::s_InitRequest(), CStdCmdLineArgs::SetArgumentDescriptions(), CWindowSizeArg::SetArgumentDescriptions(), CWordThresholdArg::SetArgumentDescriptions(), CMatrixNameArg::SetArgumentDescriptions(), CGenericSearchArgs::SetArgumentDescriptions(), CFilteringArgs::SetArgumentDescriptions(), CNuclArgs::SetArgumentDescriptions(), CDiscontiguousMegablastArgs::SetArgumentDescriptions(), CGappedArgs::SetArgumentDescriptions(), CFrameShiftArgs::SetArgumentDescriptions(), CSearchStrategyArgs::SetArgumentDescriptions(), CPsiBlastArgs::SetArgumentDescriptions(), CPhiBlastArgs::SetArgumentDescriptions(), CMappingArgs::SetArgumentDescriptions(), CQueryOptionsArgs::SetArgumentDescriptions(), CMapperQueryOptionsArgs::SetArgumentDescriptions(), CBlastDatabaseArgs::SetArgumentDescriptions(), CIgBlastArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMapperFormattingArgs::SetArgumentDescriptions(), CHspFilteringArgs::SetArgumentDescriptions(), CMbIndexArgs::SetArgumentDescriptions(), CMapperStdCmdLineArgs::SetArgumentDescriptions(), CInputStreamSource::SetStandardInputArgs(), CAdvancedAlignCleanup::SetupArgDescriptions(), CSplignArgUtil::SetupArgDescriptions(), CChainerArgUtil::SetupArgDescriptions(), CGridWorkerApp::SetupArgDescriptions(), CRemoteCgiApp::SetupArgDescriptions(), CDBLBClientApp::x_InitLookup(), and CTbl2AsnApp::x_SetAlnArgs().
◆ AddOptionalPositional()Add description for optional positional argument without default value.
Optional positional argument, without default value has the following syntax:
arg_pos_opt := [
]
Will throw exception CArgException if:
Any argument can be later referenced using its unique name "name".
Definition at line 2523 of file ncbiargs.cpp.
References flags, and CArgDescriptions::x_AddDesc().
Referenced by s_InitQuery(), and CPsgClientApp::s_InitRequest().
◆ AddPositional()Add description for mandatory positional argument.
Mandatory positional argument has the following syntax:
arg_pos :=
NOTE: For all types of positional arguments:
Will throw exception CArgException if:
Any argument can be later referenced using its unique name "name".
Definition at line 2497 of file ncbiargs.cpp.
References flags, and CArgDescriptions::x_AddDesc().
Referenced by CAVApp::Init(), CSdbapiSimpleApp::Init(), s_CommandlessInit(), s_InitPost(), CPsgClientApp::s_InitRequest(), CDBLBClientApp::x_InitWhatIs(), and CDBLBClientApp::x_InitWhereIs().
◆ AddStdArguments() [1/2] void CArgDescriptions::AddStdArguments ( THideStdArgs mask ) virtualAdd standard arguments.
Reimplemented in CCommandArgDescriptions.
Definition at line 2274 of file ncbiargs.cpp.
References CArgDescriptions::AddFlag(), CArgDescriptions::AddOptionalKey(), CArgDescriptions::Delete(), CArgDescriptions::eFlagHasValueIfSet, CArgDescriptions::eInputFile, CArgDescriptions::eOutputFile, CArgDescriptions::Exist(), CArgDescriptions::fHideConffile, CArgDescriptions::fHideDryRun, CArgDescriptions::fHideFullHelp, CArgDescriptions::fHideFullVersion, CArgDescriptions::fHideHelp, CArgDescriptions::fHideLogfile, CArgDescriptions::fHideVersion, CArgDescriptions::fHideXmlHelp, CArgDescriptions::fStandard, CArgDescriptions::m_AutoHelp, CArgDescriptions::m_HasHidden, mask, s_ArgCfgFile, s_ArgDryRun, s_ArgFullVersion, s_ArgFullVersionJson, s_ArgFullVersionXml, s_ArgLogFile, s_ArgVersion, s_AutoHelp, s_AutoHelpFull, s_AutoHelpShowAll, and s_AutoHelpXml.
Referenced by CCommandArgDescriptions::AddStdArguments().
◆ AddStdArguments() [2/2] void CCommandArgDescriptions::AddStdArguments ( THideStdArgs mask ) virtual ◆ AddSynopsis() ◆ Allow() [1/5] ◆ Allow() [2/5]Add allowed string values.
Definition at line 4639 of file ncbiargs.cpp.
References set< Key, Compare >::insert(), CArgAllow_Strings::m_Strings, and rapidjson::value.
Referenced by CWinMaskConfig::AddWinMaskArgs(), CArgAllow_Strings::AllowValue(), CAppHitFilter::Init(), CAppNWA::Init(), CSplignApp::Init(), CPrimeCacheApplication::Init(), CConvert2BlastMaskApplication::Init(), CDustMaskApplication::Init(), SegMaskerApplication::Init(), CHttpSessionApp::Init(), NCBITEST_INIT_CMDLINE(), and CSplignArgUtil::SetupArgDescriptions().
◆ Allow() [3/5] ◆ Allow() [4/5] ◆ Allow() [5/5] ◆ AllowRange() [1/2] ◆ AllowRange() [2/2] ◆ AllowValue() ◆ AsBoolean() virtual bool CArgValue::AsBoolean ( void ) const pure virtualGet the argument's boolean value.
If you request a wrong value type, such as a call to "AsBoolean()" for a "integer" argument, an exception is thrown.
NOTE: Do not confuse HasValue(), operator bool() and AsBoolean(). The former two methods check if the argument has any value, they do not return its actual value.
Implemented in CArg_Boolean, CArg_String, CArg_ExcludedValue, and CArg_NoValue.
◆ AsDateTime() virtual const CTime& CArgValue::AsDateTime ( void ) const pure virtual ◆ AsDirectory() virtual const CDir& CArgValue::AsDirectory ( void ) const pure virtual ◆ AsDouble() virtual double CArgValue::AsDouble ( void ) const pure virtual ◆ AsInputFile() ◆ AsInt8() virtual Int8 CArgValue::AsInt8 ( void ) const pure virtual ◆ AsInteger() virtual int CArgValue::AsInteger ( void ) const pure virtual ◆ AsIntId() virtual TIntId CArgValue::AsIntId ( void ) const pure virtualGet the argument's value as an integer id (TIntId).
The actual value is Int4 or Int8 depending on the NCBI_INT8_GI definition.
If you request a wrong value type, such as a call to "AsIntId()" for a "boolean", an exception is thrown. Calling AsIntId() on an integer argument is always allowed. For an Int8 argument it will throw an exception if NCBI_INT8_GI is not defined.
Implemented in CArg_IntId, CArg_Integer, CArg_Int8, CArg_String, CArg_ExcludedValue, and CArg_NoValue.
◆ AsIOFile() ◆ AsOutputFile() ◆ Assign() ◆ AsString() virtual const string& CArgValue::AsString ( void ) const pure virtualGet the argument's string value.
If it is a value of a flag argument, then return either "true" or "false".
Implemented in CArg_String, CArg_ExcludedValue, and CArg_NoValue.
Referenced by CArgs::Add(), ArgToSeq_id(), CCodeGenerator::GetOpt(), CProjBulderApp::ParseArguments(), CArgs::Print(), CAsn2Asn::RunAsn2Asn(), CMakeBlastDBApp::x_ProcessMaskData(), and CSplignApp::x_ReadFastaSetId().
◆ CArgAllow() CArgAllow::CArgAllow ( void ) inlineprotectedDefinition at line 1547 of file ncbiargs.hpp.
◆ CArgAllow_Doubles() [1/3] CArgAllow_Doubles::CArgAllow_Doubles ( double x_min, double x_max ) ◆ CArgAllow_Doubles() [2/3] CArgAllow_Doubles::CArgAllow_Doubles ( double x_value ) ◆ CArgAllow_Doubles() [3/3] CArgAllow_Doubles::CArgAllow_Doubles ( void ) inlineprotected ◆ CArgAllow_Int8s() [1/3] CArgAllow_Int8s::CArgAllow_Int8s ( Int8 x_min, Int8 x_max ) ◆ CArgAllow_Int8s() [2/3] CArgAllow_Int8s::CArgAllow_Int8s ( Int8 x_value ) ◆ CArgAllow_Int8s() [3/3] CArgAllow_Int8s::CArgAllow_Int8s ( void ) inlineprotected ◆ CArgAllow_Integers() [1/3] CArgAllow_Integers::CArgAllow_Integers ( int x_min, int x_max )Constructor specifying range of allowed integer values.
Definition at line 4814 of file ncbiargs.cpp.
◆ CArgAllow_Integers() [2/3] CArgAllow_Integers::CArgAllow_Integers ( int x_value )Constructor specifying an allowed integer value.
Definition at line 4809 of file ncbiargs.cpp.
◆ CArgAllow_Integers() [3/3] CArgAllow_Integers::CArgAllow_Integers ( void ) inlineprotected ◆ CArgAllow_Regexp() CArgAllow_Regexp::CArgAllow_Regexp ( const string & pattern ) ◆ CArgAllow_String() [1/3] CArgAllow_String::CArgAllow_String ( const string & symbol_set )Constructor for user defined eUser class.
Definition at line 4562 of file ncbiargs.cpp.
◆ CArgAllow_String() [2/3] CArgAllow_String::CArgAllow_String ( ESymbolClass symbol_class ) ◆ CArgAllow_String() [3/3] CArgAllow_String::CArgAllow_String ( void ) inlineprotected ◆ CArgAllow_Strings() [1/2]Constructor.
Definition at line 4633 of file ncbiargs.cpp.
◆ CArgAllow_Strings() [2/2] ◆ CArgAllow_Symbols() [1/3] CArgAllow_Symbols::CArgAllow_Symbols ( const string & symbol_set ) ◆ CArgAllow_Symbols() [2/3] CArgAllow_Symbols::CArgAllow_Symbols ( ESymbolClass symbol_class ) ◆ CArgAllow_Symbols() [3/3] CArgAllow_Symbols::CArgAllow_Symbols ( void ) inlineprotected ◆ CArgDependencyGroup() [1/2] ◆ CArgDependencyGroup() [2/2] CArgDependencyGroup::CArgDependencyGroup ( void ) private ◆ CArgDesc() ◆ CArgDescriptions()Constructor.
If "auto_help" is passed TRUE, then a special flag "-h" will be added to the list of accepted arguments. Passing "-h" in the command line will printout USAGE and ignore all other passed arguments. Error handler is used to process errors when parsing arguments. If not set the default handler is used.
Definition at line 2209 of file ncbiargs.cpp.
References CArgDescriptions::AddFlag(), kEmptyStr, CArgDescriptions::m_ArgGroups, CArgDescriptions::m_AutoHelp, CArgDescriptions::m_ErrorHandler, CRef< C, Locker >::Reset(), s_AutoHelp, s_AutoHelpFull, s_AutoHelpShowAll, s_AutoHelpXml, and CArgDescriptions::SetUsageContext().
◆ CArgs() [1/2]Creating copy of this object usually makes no sense if it is really required, please use Assign method.
Definition at line 1780 of file ncbiargs.cpp.
References CArgs::Assign().
◆ CArgs() [2/2] ◆ CArgValue() ◆ CCommandArgDescriptions()Constructor.
If "auto_help" is passed TRUE, then a special flag "-h" will be added to the list of accepted arguments. Passing "-h" in the command line will printout USAGE and ignore all other passed arguments. Error handler is used to process errors when parsing arguments. If not set the default handler is used.
Definition at line 4020 of file ncbiargs.cpp.
◆ Clone() [1/8] ◆ Clone() [2/8] CArgAllow * CArgAllow_Symbols::Clone ( void ) const protectedvirtual ◆ Clone() [3/8] CArgAllow * CArgAllow_String::Clone ( void ) const protectedvirtual ◆ Clone() [4/8] CArgAllow * CArgAllow_Strings::Clone ( void ) const protectedvirtual ◆ Clone() [5/8] CArgAllow * CArgAllow_Int8s::Clone ( void ) const protectedvirtual ◆ Clone() [6/8] CArgAllow * CArgAllow_Integers::Clone ( void ) const protectedvirtual ◆ Clone() [7/8] CArgAllow * CArgAllow_Doubles::Clone ( void ) const protectedvirtual ◆ Clone() [8/8] CArgAllow * CArgAllow_Regexp::Clone ( void ) const virtual ◆ CloseFile() virtual void CArgValue::CloseFile ( void ) const pure virtual ◆ ConvertKeys()template<class T >
void CArgDescriptions::ConvertKeys ( CArgs * args, const T & arg_map, bool update ) const inline ◆ CPrintUsage()Definition at line 3596 of file ncbiargs.cpp.
References _ASSERT, set< Key, Compare >::begin(), set< Key, Compare >::end(), CArgDescriptions::fHidden, CArgDescriptions::fUsageSortArgs, CArgDesc::GetName(), CArgDescriptions::IsSetMiscFlag(), kEmptyStr, CArgDescriptions::m_Args, CArgDescriptions::CPrintUsage::m_args, CArgDescriptions::m_AutoHelp, CArgDescriptions::m_HasHidden, CArgDescriptions::m_KeyFlagArgs, CArgDescriptions::m_OpeningArgs, CArgDescriptions::m_PosArgs, s_AutoHelp, s_AutoHelpFull, s_AutoHelpShowAll, util::strcmp(), and CArgDescriptions::x_Find().
◆ CPrintUsageXml() ◆ Create() ◆ CreateArgs() [1/3] ◆ CreateArgs() [2/3]Parse command-line arguments 'argv'.
Reimplemented from CArgDescriptions.
Definition at line 4133 of file ncbiargs.cpp.
References command, CArgDescriptions::CreateArgs(), map_checker< Container >::empty(), ctll::empty(), map_checker< Container >::end(), map_checker< Container >::find(), kEmptyStr, CCommandArgDescriptions::m_Command, CCommandArgDescriptions::m_Description, NCBI_THROW, CArgs::SetCommand(), CNcbiArguments::Shift(), CNcbiArguments::Size(), CArgDescriptions::x_CheckAutoHelp(), CCommandArgDescriptions::x_IdentifyCommand(), and CCommandArgDescriptions::x_IsCommandMandatory().
◆ CreateArgs() [3/3]template<class TSize , class TArray >
CArgs* CArgDescriptions::CreateArgs ( TSize argc, TArray argv ) const inlineCreate parsed arguments in CArgs object.
Parse command-line arguments, and create "CArgs" args object from the passed command-line arguments "argc" and "argv".
Throw
Definition at line 1311 of file ncbiargs.hpp.
References CArgDescriptions::eCgiArgs, CArgDescriptions::eCreateArgs, CArgDescriptions::GetArgsType(), i, kEmptyStr, kMax_UInt, CArgDescriptions::x_CheckAutoHelp(), CArgDescriptions::x_CreateArg(), CArgDescriptions::x_PostCheck(), and CArgDescriptions::x_PreCheck().
Referenced by CArgDescriptions::CreateArgs(), CCommandArgDescriptions::CreateArgs(), CBlastArgs::s_CreateBlastOptions(), and CNcbiApplicationAPI::SetupArgDescriptions().
◆ DECLARE_OPERATOR_BOOL() ◆ Delete()Delete description of argument with name "name".
Extra arguments get deleted by the name passed as "".
Throw the CArgException (eSynopsis error code) exception if the specified name cannot be found.
Definition at line 2685 of file ncbiargs.cpp.
References _ASSERT, set< Key, Compare >::end(), set< Key, Compare >::erase(), CArgDescriptions::m_Args, CArgDescriptions::m_AutoHelp, CArgDescriptions::m_KeyFlagArgs, CArgDescriptions::m_nExtra, CArgDescriptions::m_nExtraOpt, CArgDescriptions::m_PosArgs, NCBI_THROW, s_AutoHelp, and CArgDescriptions::x_Find().
Referenced by CCommandArgDescriptions::AddCommand(), and CArgDescriptions::AddStdArguments().
◆ Evaluate() void CArgDependencyGroup::Evaluate ( const CArgs & args ) const ◆ Exist() [1/2]Check existence of argument description.
Return TRUE if arg "name" was described in the parent CArgDescriptions.
NOTE: Do not confuse this method with CArgValue::HasValue() which checks if the argument not just exists, but was assigned a value (possibly the default one).
Definition at line 1833 of file ncbiargs.cpp.
References set< Key, Compare >::end(), CArgs::m_Args, and CArgs::x_Find().
Referenced by BuildAlgorithmParametersString(), CGenomicCollectionsService::CGenomicCollectionsService(), CBlastDBAliasApp::ConvertGiFile(), CBlastDBAliasApp::CreateAliasFile(), CWinMaskConfig::CWinMaskConfig(), CMapperMTArgs::ExtractAlgorithmOptions(), CMapperQueryOptionsArgs::ExtractAlgorithmOptions(), CMapperFormattingArgs::ExtractAlgorithmOptions(), CBlastDatabaseArgs::ExtractAlgorithmOptions(), CFormattingArgs::ExtractAlgorithmOptions(), CMbIndexArgs::ExtractAlgorithmOptions(), CStdCmdLineArgs::ExtractAlgorithmOptions(), CGenericSearchArgs::ExtractAlgorithmOptions(), CFilteringArgs::ExtractAlgorithmOptions(), CNuclArgs::ExtractAlgorithmOptions(), CCompositionBasedStatsArgs::ExtractAlgorithmOptions(), CPssmEngineArgs::ExtractAlgorithmOptions(), CPsiBlastArgs::ExtractAlgorithmOptions(), CPhiBlastArgs::ExtractAlgorithmOptions(), CKBlastpArgs::ExtractAlgorithmOptions(), CDeltaBlastArgs::ExtractAlgorithmOptions(), CMappingArgs::ExtractAlgorithmOptions(), CQueryOptionsArgs::ExtractAlgorithmOptions(), CIgBlastArgs::ExtractAlgorithmOptions(), CRemoteArgs::ExtractAlgorithmOptions(), NParamsBuilder::SOneRequest::GetDataOnlyEnabled(), NParamsBuilder::SOneRequest::GetDataOnlyOutputFormat(), CSearchStrategyArgs::GetExportStream(), CSearchStrategyArgs::GetImportStream(), GetSubjectFile(), CBlastDatabaseArgs::HasBeenSet(), CMbIndexArgs::HasBeenSet(), RecoverSearchStrategy(), CBlastnApp::Run(), CBlastpApp::Run(), CBlastxApp::Run(), CSeedTopApp::Run(), CTblastnApp::Run(), CIgBlastnApp::Run(), CNcbiApplogApp::Run(), CTbl2AsnApp::Run(), BlastdbCopyApplication::Run(), CVDBBlastnApp::Run(), CVDBTblastnApp::Run(), CClientGenomicCollectionsSvcApplication::Run(), CSampleBasicApplication::Run(), CBlastAppArgs::SetOptions(), CBlastnAppArgs::x_CreateOptionsHandle(), CBlastpAppArgs::x_CreateOptionsHandle(), CBlastxAppArgs::x_CreateOptionsHandle(), CPsiBlastAppArgs::x_CreateOptionsHandle(), CTblastnAppArgs::x_CreateOptionsHandle(), CTblastnVdbAppArgs::x_CreateOptionsHandle(), CArgDependencyGroup::x_Evaluate(), CMTArgs::x_ExtractAlgorithmOptions(), CArgDescriptions::x_PostCheck(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CDataLoadersUtil::x_SetupBlastDataLoader(), CDataLoadersUtil::x_SetupGenbankDataLoader(), CDataLoadersUtil::x_SetupLDS2DataLoader(), CDataLoadersUtil::x_SetupSRADataLoader(), and CDataLoadersUtil::x_SetupVDBDataLoader().
◆ Exist() [2/2] ◆ GetAll() ◆ GetAllDescriptions() [1/2] ◆ GetAllDescriptions() [2/2] ◆ GetArgsType() ◆ GetCommand() string CArgs::GetCommand ( void ) const inline ◆ GetComment() ◆ GetConstraint() ◆ GetDefault()Get default value of the argument.
Definition at line 173 of file ncbiargs.cpp.
References CArgValue::m_Default, and CArgValue::m_Flags.
◆ GetErrCodeString() [1/2] const char * CArgException::GetErrCodeString ( void ) const overridevirtualTranslate from the error code value to its string representation.
Reimplemented from CCoreException.
Reimplemented in CArgHelpException.
Definition at line 5167 of file ncbiargs.cpp.
References CArgException::eArgType, CArgException::eConstraint, CArgException::eConvert, CArgException::eExcludedValue, CArgException::eInvalidArg, CArgException::eNoArg, CArgException::eNoFile, CArgException::eNoValue, CArgException::eSynopsis, CArgException::eWrongCast, CCoreException::GetErrCode(), and CException::GetErrCodeString().
◆ GetErrCodeString() [2/2] const char * CArgHelpException::GetErrCodeString ( void ) const overridevirtual ◆ GetErrorHandler() ◆ GetFlags()Get argument flags.
Definition at line 1920 of file ncbiargs.hpp.
References CArgDesc::m_Flags.
Referenced by CArgDesc::GetUsageConstraint(), CArgDesc_Key::GetUsageSynopsis(), CArgDesc_KeyOpt::GetUsageSynopsis(), CArgDesc_KeyDef::GetUsageSynopsis(), CArgErrorHandler::HandleError(), CArgDesc::PrintXml(), CArgDescMandatory::ProcessArgument(), CArgDescriptions::x_AddDesc(), CArgDescriptions::x_IsMultiArg(), CArgDescriptions::x_PreCheck(), and CArgDescriptions::x_PrintComment().
◆ GetGroup() virtual size_t CArgDesc::GetGroup ( void ) const inlinevirtual ◆ GetName() [1/2]Get argument name.
Definition at line 187 of file ncbiargs.hpp.
References CArgValue::m_Name.
Referenced by CArgs::Add(), CArg_String::AsBoolean(), CArg_String::AsDateTime(), CArg_String::AsDirectory(), CArg_String::AsDouble(), CArg_String::AsInputFile(), CArg_String::AsInt8(), CArg_String::AsInteger(), CArg_IntId::AsInteger(), CArg_String::AsIntId(), CArg_Int8::AsIntId(), CArg_String::AsIOFile(), CArg_String::AsOutputFile(), CArg_Boolean::CArg_Boolean(), CArg_DataSize::CArg_DataSize(), CArg_DateTime::CArg_DateTime(), CArg_Double::CArg_Double(), CArg_Int8::CArg_Int8(), CArg_Integer::CArg_Integer(), CArg_IntId::CArg_IntId(), CArg_String::CloseFile(), CArg_Ios::CloseFile(), operator<(), and CArg_Ios::x_Open().
◆ GetName() [2/2]Get argument name.
Definition at line 1869 of file ncbiargs.hpp.
References CArgDesc::m_Name.
Referenced by CArgDescMandatory::CArgDescMandatory(), CArgDescriptions::CPrintUsage::CPrintUsage(), CArgDesc_Flag::GetUsageSynopsis(), CArgDesc_Pos::GetUsageSynopsis(), CArgDesc_Opening::GetUsageSynopsis(), CArgDesc_Key::GetUsageSynopsis(), CArgDesc_KeyOpt::GetUsageSynopsis(), CArgDesc_KeyDef::GetUsageSynopsis(), CArgErrorHandler::HandleError(), operator<(), CArgDesc::PrintXml(), CArgDescMandatory::ProcessArgument(), CArgDesc_Flag::ProcessArgument(), CArgDesc_Alias::ProcessArgument(), CArgDescMandatory::ProcessDefault(), CArgDescOptional::ProcessDefault(), CArgDesc_Flag::ProcessDefault(), CArgDesc_Alias::ProcessDefault(), CArgDesc::SetConstraint(), CArgDescriptions::x_AddDesc(), CArgDescriptions::x_PostCheck(), CArgDescriptions::x_PreCheck(), CArgDescriptions::x_PrintAliasesAsXml(), and CArgDescriptions::x_PrintComment().
◆ GetNExtra() size_t CArgs::GetNExtra ( void ) const inlineGet the number of unnamed positional (a.k.a. extra) args.
Definition at line 445 of file ncbiargs.hpp.
References CArgs::m_nExtra.
Referenced by CIdMapperApp::GetSourceIds(), COMSSAMerge::Run(), CDemoSeqQaApp::Run(), CCpGDemoApp::Run(), CAgpValidateApplication::Run(), CAgpconvertApplication::Run(), CMultipatternApp::Run(), CPsgPerfApplication::Run(), CRunTestApplication::Run(), CTestApplication::Run(), CSampleBasicApplication::Run(), CGapStatsApplication::RunNoCatch(), and CAgpValidateApplication::x_ValidateUsingFiles().
◆ GetOrdinalPosition() size_t CArgValue::GetOrdinalPosition ( void ) const inlineGet ordinal position of the value.
NOTE: this is not the position in command line, rather this reflects the order in which values were added to the list.
Definition at line 319 of file ncbiargs.hpp.
References CArgValue::m_Ordinal.
◆ GetPositionalMode() ◆ GetStringList() ◆ GetTypeName() const char * CArgDescriptions::GetTypeName ( EType type ) static ◆ GetUsage() [1/8] string CArgAllow_Symbols::GetUsage ( void ) const protectedvirtual ◆ GetUsage() [2/8] string CArgAllow_String::GetUsage ( void ) const protectedvirtual ◆ GetUsage() [3/8] string CArgAllow_Strings::GetUsage ( void ) const protectedvirtual ◆ GetUsage() [4/8] string CArgAllow_Int8s::GetUsage ( void ) const protectedvirtualGet usage information.
Implements CArgAllow.
Reimplemented in CArgAllow_Integers.
Definition at line 4739 of file ncbiargs.cpp.
References set< Key, Compare >::begin(), NStr::Int8ToString(), ITERATE, kEmptyStr, kMax_I8, kMin_I8, CArgAllow_Int8s::m_MinMax, pi, set< Key, Compare >::size(), string, and usage.
Referenced by CArgAllow_Integers::GetUsage().
◆ GetUsage() [5/8] string CArgAllow_Integers::GetUsage ( void ) const protectedvirtualGet usage information.
Reimplemented from CArgAllow_Int8s.
Definition at line 4819 of file ncbiargs.cpp.
References set< Key, Compare >::begin(), CArgAllow_Int8s::GetUsage(), NStr::Int8ToString(), kEmptyStr, kMax_Int, kMin_Int, CArgAllow_Int8s::m_MinMax, set< Key, Compare >::size(), and string.
◆ GetUsage() [6/8] string CArgAllow_Doubles::GetUsage ( void ) const protectedvirtualGet usage information.
Implements CArgAllow.
Definition at line 4874 of file ncbiargs.cpp.
References set< Key, Compare >::begin(), NStr::DoubleToString(), ITERATE, kEmptyStr, kMax_Double, kMin_Double, CArgAllow_Doubles::m_MinMax, pi, set< Key, Compare >::size(), string, and usage.
◆ GetUsage() [7/8] string CArgAllow_Regexp::GetUsage ( void ) const virtual ◆ GetUsage() [8/8] virtual string CArgAllow::GetUsage ( void ) const pure virtualGet usage information.
Implemented in CArgAllowGeneticCodeInteger, CArgAllow_Regexp, CArgAllow_Doubles, CArgAllow_Integers, CArgAllow_Int8s, CArgAllow_Strings, CArgAllow_String, CArgAllow_Symbols, CArgAllowStringSet, CArgAllowIntegerSet, CArgAllowValuesBetween, CArgAllowValuesLessThanOrEqual, CArgAllowValuesGreaterThanOrEqual, and CArgAllowMaximumFileNameLength.
Referenced by CArgDesc::GetUsageConstraint(), CArgDescMandatory::ProcessArgument(), and CArgDesc::SetConstraint().
◆ GetUsageCommentAttr() virtual string CArgDesc::GetUsageCommentAttr ( void ) const pure virtual ◆ GetUsageConstraint() string CArgDesc::GetUsageConstraint ( void ) const ◆ GetUsageSynopsis() ◆ HandleError() ◆ HasValue() virtual bool CArgValue::HasValue ( void ) const pure virtual ◆ IsAutoHelpEnabled() bool CArgDescriptions::IsAutoHelpEnabled ( void ) const inline ◆ IsConstraintInverted() virtual bool CArgDesc::IsConstraintInverted ( ) const inlinevirtual ◆ IsEmpty() bool CArgs::IsEmpty ( void ) const ◆ IsSetMiscFlag() ◆ IsStandard() size_t CArgValue::IsStandard ( void ) const inline ◆ NCBI_EXCEPTION_DEFAULT() [1/2] ◆ NCBI_EXCEPTION_DEFAULT() [2/2] ◆ operator,() ◆ operator<() ◆ operator=() [1/2] ◆ operator=() [2/2]Creating copy of this object usually makes no sense if it is really required, please use Assign method.
Definition at line 1785 of file ncbiargs.cpp.
References CArgs::Assign().
◆ operator[]() [1/2] ◆ operator[]() [2/2] ◆ Print()Print (append) all arguments to the string "str" and return "str".
Definition at line 1896 of file ncbiargs.cpp.
References CArgValue::AsString(), set< Key, Compare >::begin(), set< Key, Compare >::end(), CArgValue::GetStringList(), NStr::Join(), CArgs::m_Args, str(), and tmp.
Referenced by CXcompareAnnotsApplication::Run(), CReadBlastApp::Run(), and CSampleBasicApplication::Run().
◆ PrintArguments()Definition at line 3911 of file ncbiargs.cpp.
References a, CArgDescriptions::eExcludes, multimap_checker< Container >::empty(), CArgDescriptions::ePositionalMode_Loose, CArgDescriptions::eRequires, CArgDescriptions::GetPositionalMode(), i, ITERATE, CArgDescriptions::m_Args, CArgDescriptions::m_Dependencies, CArgDescriptions::m_nExtra, CArgDescriptions::m_nExtraOpt, CArgDescriptions::m_OpeningArgs, CArgDescriptions::m_PosArgs, s_IsFlag(), s_IsKey(), s_IsPositional(), s_WriteXmlLine(), tag, NStr::UIntToString(), and CArgDescriptions::x_PrintAliasesAsXml().
Referenced by CArgDescriptions::PrintUsageXml(), and CCommandArgDescriptions::PrintUsageXml().
◆ PrintUsage() [1/3] void CArgDependencyGroup::PrintUsage ( list< string > & arr, size_t offset ) constDefinition at line 5055 of file ncbiargs.cpp.
References arr, map_checker< Container >::begin(), count, CArgDependencyGroup::eInstantSet, map_checker< Container >::end(), first(), i, NStr::Join(), kEmptyStr, CArgDependencyGroup::m_Arguments, CArgDependencyGroup::m_Description, CArgDependencyGroup::m_Groups, CArgDependencyGroup::m_MaxMembers, CArgDependencyGroup::m_MinMembers, CArgDependencyGroup::m_Name, msg(), NStr::NumericToString(), offset, and map_checker< Container >::size().
◆ PrintUsage() [2/3]Print usage message to end of specified string.
Printout USAGE and append to the string "str" using provided argument descriptions and usage context.
Reimplemented in CArgDesc_agp_validate, CDiscRepArgDescriptions, and CCommandArgDescriptions.
Definition at line 3856 of file ncbiargs.cpp.
References CArgDescriptions::CPrintUsage::AddDescription(), CArgDescriptions::CPrintUsage::AddDetails(), CArgDescriptions::CPrintUsage::AddSynopsis(), arr, NStr::Join(), kEmptyStr, CArgDescriptions::m_UsageName, and str().
Referenced by CCgiRequestProcessor::OnException(), CDiscRepArgDescriptions::PrintUsage(), CMakeScoreMethodApp::Run(), and CBlastArgs::s_CreateBlastOptions().
◆ PrintUsage() [3/3]Print usage message to end of specified string.
Printout USAGE and append to the string "str" using provided argument descriptions and usage context.
Reimplemented from CArgDescriptions.
Definition at line 4175 of file ncbiargs.cpp.
References a, CArgDescriptions::CPrintUsage::AddCommandDescription(), CArgDescriptions::CPrintUsage::AddDescription(), CArgDescriptions::CPrintUsage::AddDetails(), CArgDescriptions::CPrintUsage::AddSynopsis(), arr, map_checker< Container >::begin(), cmd, map_checker< Container >::empty(), map_checker< Container >::end(), CCommandArgDescriptions::eNoSortCommands, CCommandArgDescriptions::eNoSortGroups, map_checker< Container >::find(), CNcbiApplicationAPI::GetArguments(), CNcbiApplication::Instance(), ITERATE, NStr::Join(), kEmptyStr, map_checker< Container >::lower_bound(), CCommandArgDescriptions::m_Aliases, CArgDescriptions::m_AutoHelp, CCommandArgDescriptions::m_Cmd_req, CCommandArgDescriptions::m_CmdGroups, CCommandArgDescriptions::m_Command, CCommandArgDescriptions::m_Commands, CCommandArgDescriptions::m_Description, CCommandArgDescriptions::m_Groups, CArgDescriptions::m_HasHidden, CArgDescriptions::m_UsageName, max(), NULL, map_checker< Container >::size(), CNcbiArguments::Size(), str(), t, CCommandArgDescriptions::x_GetCommandGroupIndex(), CCommandArgDescriptions::x_IdentifyCommand(), and CCommandArgDescriptions::x_IsCommandMandatory().
◆ PrintUsageIfNoArgs() void CArgDescriptions::PrintUsageIfNoArgs ( bool do_print =true
) ◆ PrintUsageXml() [1/10] void CArgDescriptions::PrintUsageXml ( CNcbiOstream & out ) const virtual ◆ PrintUsageXml() [2/10] void CCommandArgDescriptions::PrintUsageXml ( CNcbiOstream & out ) const virtual
Print argument description in XML format.
Reimplemented from CArgDescriptions.
Definition at line 4326 of file ncbiargs.cpp.
References map_checker< Container >::begin(), map_checker< Container >::end(), map_checker< Container >::find(), g(), CCommandArgDescriptions::m_Aliases, CCommandArgDescriptions::m_CmdGroups, CCommandArgDescriptions::m_Commands, CCommandArgDescriptions::m_Description, CCommandArgDescriptions::m_Groups, out(), CArgDescriptions::CPrintUsageXml::PrintArguments(), s_WriteXmlLine(), CCommandArgDescriptions::x_GetCommandGroupIndex(), and CCommandArgDescriptions::x_IsCommandMandatory().
◆ PrintUsageXml() [3/10] ◆ PrintUsageXml() [4/10] void CArgAllow_Symbols::PrintUsageXml ( CNcbiOstream & out ) const protectedvirtual ◆ PrintUsageXml() [5/10] void CArgAllow_String::PrintUsageXml ( CNcbiOstream & out ) const protectedvirtual ◆ PrintUsageXml() [6/10] void CArgAllow_Strings::PrintUsageXml ( CNcbiOstream & out ) const protectedvirtual ◆ PrintUsageXml() [7/10] void CArgAllow_Int8s::PrintUsageXml ( CNcbiOstream & out ) const protectedvirtual ◆ PrintUsageXml() [8/10] void CArgAllow_Doubles::PrintUsageXml ( CNcbiOstream & out ) const protectedvirtual ◆ PrintUsageXml() [9/10] void CArgDependencyGroup::PrintUsageXml ( CNcbiOstream & out ) constDefinition at line 5133 of file ncbiargs.cpp.
References map_checker< Container >::begin(), CArgDependencyGroup::eInstantSet, map_checker< Container >::end(), i, CArgDependencyGroup::m_Arguments, CArgDependencyGroup::m_Description, CArgDependencyGroup::m_Groups, CArgDependencyGroup::m_MaxMembers, CArgDependencyGroup::m_MinMembers, CArgDependencyGroup::m_Name, and out().
◆ PrintUsageXml() [10/10] void CArgAllow_Regexp::PrintUsageXml ( CNcbiOstream & out ) const virtual ◆ PrintXml()Print description in XML format.
Definition at line 1001 of file ncbiargs.cpp.
References CUtf8::AsUTF8(), eEncoding_Unknown, CArgDescriptions::fAllowMultiple, CArgDescriptions::fAppend, CArgDescriptions::fBinary, CArgDescriptions::fConfidential, CArgDescriptions::fCreatePath, CArgDescriptions::fHidden, CArgDescriptions::fIgnoreInvalidValue, flags, CArgDescriptions::fMandatorySeparator, CArgDescriptions::fNoCreate, CArgDescriptions::fOptionalSeparator, CArgDescriptions::fOptionalSeparatorAllowConflict, CArgDescriptions::fPreOpen, CArgDescriptions::fStandard, CArgDescriptions::fTruncate, CArgDescriptions::fWarnOnInvalidValue, CArgDesc::GetComment(), CArgDesc::GetConstraint(), CArgDescDefault::GetDisplayValue(), CArgDesc::GetFlags(), CArgDesc::GetGroup(), CArgDesc::GetName(), CArgDesc_Flag::GetSetValue(), CArgDescSynopsis::GetSynopsis(), CArgDescMandatory::GetType(), CArgDescriptions::GetTypeName(), CArgDesc::GetUsageConstraint(), CArgDesc::IsConstraintInverted(), out(), CArgAllow::PrintUsageXml(), s_IsFlag(), s_IsKey(), s_IsOpening(), s_IsOptional(), s_IsPositional(), s_WriteEscapedStr(), s_WriteXmlLine(), and NStr::SizetToString().
◆ ProcessArgument() ◆ ProcessDefault() virtual CArgValue* CArgDesc::ProcessDefault ( void ) const pure virtual ◆ Remove() ◆ Reset() void CArgs::Reset ( void ) ◆ ResetMiscFlags() void CArgDescriptions::ResetMiscFlags ( TMiscFlags flags ) inline ◆ SArgDependency() ◆ SetArgsType() [1/2] void CArgDescriptions::SetArgsType ( EArgSetType args_type ) ◆ SetArgsType() [2/2] ◆ SetCommand() ◆ SetConstraint() [1/3] ◆ SetConstraint() [2/3] ◆ SetConstraint() [3/3]Set additional user defined constraint on argument value.
Constraint is defined by CArgAllow and its derived classes. The constraint object must be allocated by "new", and it must NOT be freed by "delete" after it has been passed to CArgDescriptions!
Definition at line 2616 of file ncbiargs.cpp.
References CArgDescriptions::eConstraint, set< Key, Compare >::end(), CArgDescriptions::m_Args, NCBI_THROW, and CArgDescriptions::x_Find().
Referenced by CFlatFileConfig::AddArgumentDescriptions(), CWinMaskConfig::AddWinMaskArgs(), CAVApp::Init(), SUApp::Init(), Cn3DNoWin::Init(), CId2FetchApp::Init(), CDbapiTestSpeedApp::InitSample(), s_InitDataOnly(), CPsgClientApp::s_InitRequest(), CStdCmdLineArgs::SetArgumentDescriptions(), CTaskCmdLineArgs::SetArgumentDescriptions(), CWindowSizeArg::SetArgumentDescriptions(), COffDiagonalRangeArg::SetArgumentDescriptions(), CWordThresholdArg::SetArgumentDescriptions(), CRMBlastNArg::SetArgumentDescriptions(), CGenericSearchArgs::SetArgumentDescriptions(), CNuclArgs::SetArgumentDescriptions(), CDiscontiguousMegablastArgs::SetArgumentDescriptions(), CLargestIntronSizeArgs::SetArgumentDescriptions(), CFrameShiftArgs::SetArgumentDescriptions(), CGeneticCodeArgs::SetArgumentDescriptions(), CPsiBlastArgs::SetArgumentDescriptions(), CMappingArgs::SetArgumentDescriptions(), CQueryOptionsArgs::SetArgumentDescriptions(), CMapperQueryOptionsArgs::SetArgumentDescriptions(), CBlastDatabaseArgs::SetArgumentDescriptions(), CIgBlastArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMapperFormattingArgs::SetArgumentDescriptions(), CMTArgs::SetArgumentDescriptions(), CHspFilteringArgs::SetArgumentDescriptions(), CMapperGenericSearchArgs::SetArgumentDescriptions(), CMapperNuclArgs::SetArgumentDescriptions(), CMapperLargestIntronSizeArgs::SetArgumentDescriptions(), CArgDescriptions::SetConstraint(), CSplignArgUtil::SetupArgDescriptions(), CCompartOptions::SetupArgDescriptions(), CProSplignOutputOptions::SetupArgDescriptions(), CDBLBClientApp::x_InitLookup(), CDBLBClientApp::x_InitWhereIs(), and CTbl2AsnApp::x_SetAlnArgs().
◆ SetCurrentCommandGroup() void CCommandArgDescriptions::SetCurrentCommandGroup ( const string & group ) ◆ SetCurrentGroup() void CArgDescriptions::SetCurrentGroup ( const string & group )Set current arguments group name.
When printing descriptions for optional arguments (on -help command), they will be arranged by group name. Empty group name resets the group. Arguments without group are listed first immediately after mandatory arguments.
Definition at line 2657 of file ncbiargs.cpp.
References CArgDescriptions::m_ArgGroups, CArgDescriptions::m_CurrentGroup, and CArgDescriptions::x_GetGroupIndex().
Referenced by CFlatFileConfig::AddArgumentDescriptions(), CGenomicCollectionsService::AddArguments(), CWinMaskConfig::AddWinMaskArgs(), CArgDescriptions::CreateArgs(), CStdCmdLineArgs::SetArgumentDescriptions(), CTaskCmdLineArgs::SetArgumentDescriptions(), CWindowSizeArg::SetArgumentDescriptions(), COffDiagonalRangeArg::SetArgumentDescriptions(), CWordThresholdArg::SetArgumentDescriptions(), CRMBlastNArg::SetArgumentDescriptions(), CMatrixNameArg::SetArgumentDescriptions(), CGenericSearchArgs::SetArgumentDescriptions(), CFilteringArgs::SetArgumentDescriptions(), CNuclArgs::SetArgumentDescriptions(), CDiscontiguousMegablastArgs::SetArgumentDescriptions(), CCompositionBasedStatsArgs::SetArgumentDescriptions(), CGappedArgs::SetArgumentDescriptions(), CLargestIntronSizeArgs::SetArgumentDescriptions(), CFrameShiftArgs::SetArgumentDescriptions(), CGeneticCodeArgs::SetArgumentDescriptions(), CGapTriggerArgs::SetArgumentDescriptions(), CPssmEngineArgs::SetArgumentDescriptions(), CSearchStrategyArgs::SetArgumentDescriptions(), CPsiBlastArgs::SetArgumentDescriptions(), CPhiBlastArgs::SetArgumentDescriptions(), CKBlastpArgs::SetArgumentDescriptions(), CDeltaBlastArgs::SetArgumentDescriptions(), CMappingArgs::SetArgumentDescriptions(), CQueryOptionsArgs::SetArgumentDescriptions(), CMapperQueryOptionsArgs::SetArgumentDescriptions(), CBlastDatabaseArgs::SetArgumentDescriptions(), CIgBlastArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMapperFormattingArgs::SetArgumentDescriptions(), CMTArgs::SetArgumentDescriptions(), CRemoteArgs::SetArgumentDescriptions(), CDebugArgs::SetArgumentDescriptions(), CHspFilteringArgs::SetArgumentDescriptions(), CMbIndexArgs::SetArgumentDescriptions(), CSRASearchModeArgs::SetArgumentDescriptions(), CMapperStdCmdLineArgs::SetArgumentDescriptions(), CMapperGenericSearchArgs::SetArgumentDescriptions(), CMapperNuclArgs::SetArgumentDescriptions(), CMapperLargestIntronSizeArgs::SetArgumentDescriptions(), CInputStreamSource::SetStandardInputArgs(), CAdvancedAlignCleanup::SetupArgDescriptions(), CSplignArgUtil::SetupArgDescriptions(), CAlignCollapser::SetupArgDescriptions(), CGnomonAnnotatorArgUtil::SetupArgDescriptions(), and CChainerArgUtil::SetupArgDescriptions().
◆ SetDependency()Define a dependency.
If arg1 was specified and requires arg2, arg2 is treated as a mandatory one even if was defined as optional. If arg1 excludes arg2, arg2 must not be set even if it's mandatory. This allows to create a set of arguments exactly one of which must be set.
Definition at line 2643 of file ncbiargs.cpp.
References CArgDescriptions::eExcludes, multimap_checker< Container >::insert(), and CArgDescriptions::m_Dependencies.
Referenced by CFlatFileConfig::AddArgumentDescriptions(), CLocalTaxon::AddArguments(), s_AddLatencyOptions(), s_InitDataFlags(), s_InitDataOnly(), CPsgClientApp::s_InitRequest(), CStdCmdLineArgs::SetArgumentDescriptions(), CFilteringArgs::SetArgumentDescriptions(), CDiscontiguousMegablastArgs::SetArgumentDescriptions(), CFrameShiftArgs::SetArgumentDescriptions(), CSearchStrategyArgs::SetArgumentDescriptions(), CPsiBlastArgs::SetArgumentDescriptions(), CPhiBlastArgs::SetArgumentDescriptions(), CDeltaBlastArgs::SetArgumentDescriptions(), CMapperQueryOptionsArgs::SetArgumentDescriptions(), CBlastDatabaseArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMapperFormattingArgs::SetArgumentDescriptions(), CMTArgs::SetArgumentDescriptions(), CHspFilteringArgs::SetArgumentDescriptions(), CMapperStdCmdLineArgs::SetArgumentDescriptions(), CMapperGenericSearchArgs::SetArgumentDescriptions(), CInputStreamSource::SetStandardInputArgs(), CAdvancedAlignCleanup::SetupArgDescriptions(), CCompartOptions::SetupArgDescriptions(), CDBLBClientApp::x_InitLookup(), and CTbl2AsnApp::x_SetAlnArgs().
◆ SetDetailedDescription() void CArgDescriptions::SetDetailedDescription ( const string & usage_description )Set detailed usage description.
In short help message, program will print short description defined in SetUsageContext method. In detailed help message, program will use detailed description defined here.
Definition at line 3374 of file ncbiargs.cpp.
References CArgDescriptions::m_DetailedDescription.
◆ SetErrorHandler() [1/2] ◆ SetErrorHandler() [2/2] ◆ SetGroup() virtual void CArgDesc::SetGroup ( size_t ) inlinevirtual ◆ SetMaxMembers()Definition at line 4961 of file ncbiargs.cpp.
References CArgDependencyGroup::m_MaxMembers.
◆ SetMinMembers() ◆ SetMiscFlags() void CArgDescriptions::SetMiscFlags ( TMiscFlags flags ) inline ◆ SetOrdinalPosition() void CArgValue::SetOrdinalPosition ( size_t pos ) inlineprotected ◆ SetPositionalMode() ◆ SetStringList() ◆ SetUsageContext()Set extra info to be used by PrintUsage().
If "usage_name" is empty, it will be initialized using CNcbiApplicationAPI::GetProgramDisplayName
Definition at line 3344 of file ncbiargs.cpp.
References NStr::eNocase, ERR_POST_X, CArgDescriptions::fUsageSortArgs, CNcbiApplicationAPI::GetProgramDisplayName(), CNcbiApplicationAPI::Instance(), CArgDescriptions::m_UsageDescription, CArgDescriptions::m_UsageName, CArgDescriptions::m_UsageWidth, CArgDescriptions::ResetMiscFlags(), CArgDescriptions::SetMiscFlags(), NStr::TrimSuffixInPlace(), and Warning().
Referenced by COMSSA::AppInit(), CArgDescriptions::CArgDescriptions(), CSdbapiTest::Init(), CAVApp::Init(), Cn3DNoWin::Init(), CId2FetchApp::Init(), CNcbiTestApplication::Init(), CSdbapiSimpleApp::Init(), CProgramDescriptionArgs::SetArgumentDescriptions(), CIgBlastProgramDescriptionArgs::SetArgumentDescriptions(), CMapperProgramDescriptionArgs::SetArgumentDescriptions(), CDBLBClientApp::x_InitLookup(), CDBLBClientApp::x_InitWhatIs(), and CDBLBClientApp::x_InitWhereIs().
◆ ShowAllArguments() ◆ Verify() [1/7] ◆ Verify() [2/7] ◆ Verify() [3/7] ◆ Verify() [4/7] ◆ Verify() [5/7] ◆ Verify() [6/7] ◆ Verify() [7/7]Verify if specified value is allowed.
Implemented in CArgAllowGeneticCodeInteger, CArgAllow_Regexp, CArgAllow_Doubles, CArgAllow_Int8s, CArgAllow_Strings, CArgAllow_String, CArgAllow_Symbols, CArgAllowStringSet, CArgAllowIntegerSet, CArgAllowValuesBetween, CArgAllowValuesLessThanOrEqual, CArgAllowValuesGreaterThanOrEqual, and CArgAllowMaximumFileNameLength.
Referenced by CArgDescMandatory::ProcessArgument().
◆ VerifyDefault() void CArgDesc::VerifyDefault ( void ) const virtual ◆ VerifyName() ◆ x_AddDesc() void CArgDescriptions::x_AddDesc ( CArgDesc & arg ) privateHelper method for adding description.
Definition at line 3409 of file ncbiargs.cpp.
References _ASSERT, CArgDescriptions::Exist(), CArgDescriptions::fHidden, CArgDescriptions::fOptionalSeparator, CArgDesc::GetFlags(), CArgDesc::GetName(), CRef< C, Locker >::GetPointerOrNull(), set< Key, Compare >::insert(), CArgDescriptions::m_Args, CArgDescriptions::m_CurrentGroup, CArgDescriptions::m_ErrorHandler, CArgDescriptions::m_HasHidden, CArgDescriptions::m_KeyFlagArgs, CArgDescriptions::m_NoSeparator, CArgDescriptions::m_OpeningArgs, CArgDescriptions::m_PosArgs, NCBI_THROW, s_IsAlias(), s_IsFlag(), s_IsKey(), s_IsOpening(), s_IsOptional(), CArgDesc::SetErrorHandler(), CArgDesc::SetGroup(), and CArgDescriptions::x_Find().
Referenced by CArgDescriptions::AddAlias(), CArgDescriptions::AddDefaultKey(), CArgDescriptions::AddDefaultPositional(), CArgDescriptions::AddExtra(), CArgDescriptions::AddFlag(), CArgDescriptions::AddKey(), CArgDescriptions::AddNegatedFlagAlias(), CArgDescriptions::AddOpening(), CArgDescriptions::AddOptionalKey(), CArgDescriptions::AddOptionalPositional(), and CArgDescriptions::AddPositional().
◆ x_CheckAutoHelp() void CArgDescriptions::x_CheckAutoHelp ( const string & arg ) const protected ◆ x_CreateArg() [1/2]Process arguments.
Helper method to process arguments and build a CArgs object that is passed as the args parameter.
Definition at line 2898 of file ncbiargs.cpp.
References set< Key, Compare >::end(), CArgDescriptions::ePositionalMode_Loose, eq(), CArgs::GetAll(), kEmptyStr, kMax_UInt, CArgDescriptions::m_Args, CArgDescriptions::m_nExtra, CArgDescriptions::m_nExtraOpt, CArgDescriptions::m_OpeningArgs, CArgDescriptions::m_PosArgs, CArgDescriptions::m_PositionalMode, NCBI_THROW, NPOS, s_ArgDelimiter, NStr::UIntToString(), CArgDescriptions::VerifyName(), and CArgDescriptions::x_Find().
Referenced by CArgDescriptions::ConvertKeys(), and CArgDescriptions::CreateArgs().
◆ x_CreateArg() [2/2]Definition at line 4985 of file ncbiargs.cpp.
References map_checker< Container >::begin(), set< Key, Compare >::begin(), CArgDependencyGroup::eInstantSet, map_checker< Container >::end(), CArgs::Exist(), i, set< Key, Compare >::insert(), NStr::Join(), CArgDependencyGroup::m_Arguments, CArgDependencyGroup::m_Groups, CArgDependencyGroup::m_MaxMembers, CArgDependencyGroup::m_MinMembers, msg(), NCBI_THROW, result, map_checker< Container >::size(), and set< Key, Compare >::size().
Referenced by CArgDependencyGroup::Evaluate().
◆ x_Find() [1/4] ◆ x_Find() [2/4] ◆ x_Find() [3/4]Helper method to find named parameter.
'negative' (if provided) will indicate if the name referred to a negative alias.
Definition at line 2761 of file ncbiargs.cpp.
References set< Key, Compare >::end(), set< Key, Compare >::find(), CArgDesc_Alias::GetAliasedName(), CArgDesc_Alias::GetNegativeFlag(), CArgDescriptions::m_Args, and negative().
Referenced by CArgDescriptions::AddNegatedFlagAlias(), CArgDescriptions::CPrintUsage::CPrintUsage(), CArgDescriptions::Delete(), CArgDescriptions::Exist(), CArgDescriptions::SetConstraint(), CArgDescriptions::SetErrorHandler(), CArgDescriptions::x_AddDesc(), CArgDescriptions::x_CreateArg(), CArgDescriptions::x_Find(), CArgDescriptions::x_IsMultiArg(), CArgDescriptions::x_PostCheck(), and CArgDescriptions::x_PreCheck().
◆ x_Find() [4/4] ◆ x_GetCommandGroupIndex() size_t CCommandArgDescriptions::x_GetCommandGroupIndex ( const string & group ) const private ◆ x_GetGroupIndex() size_t CArgDescriptions::x_GetGroupIndex ( const string & group ) const private ◆ x_IdentifyCommand()Definition at line 4106 of file ncbiargs.cpp.
References a, map_checker< Container >::begin(), cmd, command, map_checker< Container >::end(), map_checker< Container >::find(), kEmptyStr, CCommandArgDescriptions::m_Aliases, CCommandArgDescriptions::m_Description, and NStr::StartsWith().
Referenced by CCommandArgDescriptions::CreateArgs(), and CCommandArgDescriptions::PrintUsage().
◆ x_IsCommandMandatory() bool CCommandArgDescriptions::x_IsCommandMandatory ( void ) const private ◆ x_IsMultiArg() ◆ x_PostCheck()Helper method for doing post-processing consistency checks.
Definition at line 3203 of file ncbiargs.cpp.
References CArgs::Add(), set< Key, Compare >::begin(), CArgDescriptions::eCgiArgs, CArgDescriptions::eConstraint, CArgDescriptions::eConvertKeys, CArgDescriptions::eExcludes, map_checker< Container >::end(), set< Key, Compare >::end(), CArgDescriptions::eRequires, CArgs::Exist(), map_checker< Container >::find(), set< Key, Compare >::find(), CArgDescriptions::fUsageIfNoArgs, CArgDescriptions::GetArgsType(), CArgDesc::GetName(), i, map_checker< Container >::insert(), set< Key, Compare >::insert(), CArgs::IsEmpty(), CArgDescriptions::IsSetMiscFlag(), ITERATE, kEmptyStr, CArgDescriptions::m_Dependencies, CArgDescriptions::m_DependencyGroups, CArgDescriptions::m_KeyFlagArgs, CArgDescriptions::m_nExtra, CArgDescriptions::m_OpeningArgs, CArgDescriptions::m_PosArgs, max(), NCBI_THROW, NStr::NumericToString(), CArgDesc::ProcessDefault(), s_ArgExptMsg(), NStr::StringToUInt(), NStr::UIntToString(), and CArgDescriptions::x_Find().
Referenced by CArgDescriptions::ConvertKeys(), and CArgDescriptions::CreateArgs().
◆ x_PreCheck() void CArgDescriptions::x_PreCheck ( void ) const privateHelper method for doing pre-processing consistency checks.
Definition at line 2794 of file ncbiargs.cpp.
References _ASSERT, a, set< Key, Compare >::begin(), CArgDescriptions::eConstraint, set< Key, Compare >::end(), ERR_POST_X, Error(), CArgDescriptions::fOptionalSeparator, CArgDescriptions::fOptionalSeparatorAllowConflict, CArgDescriptions::fStandard, CArgDesc::GetFlags(), CArgDesc::GetName(), i, CArgDescriptions::m_Args, CArgDescriptions::m_nExtra, CArgDescriptions::m_NoSeparator, CArgDescriptions::m_PosArgs, n, NCBI_RETHROW, NCBI_THROW, NPOS, s_IsAlias(), CArgDesc::VerifyDefault(), CException::what(), and CArgDescriptions::x_Find().
Referenced by CArgDescriptions::ConvertKeys(), and CArgDescriptions::CreateArgs().
◆ x_PrintAliasesAsXml() ◆ x_PrintComment()Definition at line 3469 of file ncbiargs.cpp.
References arr, CArgDescriptions::eExcludes, CArgDescriptions::eInputFile, multimap_checker< Container >::equal_range(), CArgDescriptions::eRequires, CArgDescriptions::fConfidential, CArgDescriptions::fMandatorySeparator, NStr::fWrap_Hyphenate, CArgDesc_Alias::GetAliasedName(), CArgDesc::GetComment(), CArgDescDefault::GetDisplayValue(), CArgDesc::GetFlags(), CArgDesc::GetName(), CArgDesc_Alias::GetNegativeFlag(), CArgDesc_Flag::GetSetValue(), CArgDescriptions::GetTypeName(), CArgDesc::GetUsageCommentAttr(), CArgDesc::GetUsageSynopsis(), indent(), ITERATE, kEmptyStr, CArgDescriptions::m_Args, CArgDescriptions::m_Dependencies, NPOS, s_IsFlag(), s_IsPositional(), s_PrintCommentBody(), t, and NStr::Wrap().
◆ x_SetDefault() ◆ ~CArgAllow() CArgAllow::~CArgAllow ( void ) virtualDefinition at line 4383 of file ncbiargs.cpp.
◆ ~CArgAllow_Regexp() CArgAllow_Regexp::~CArgAllow_Regexp ( void ) virtualDefinition at line 54 of file arg_regexp.cpp.
◆ ~CArgDependencyGroup() CArgDependencyGroup::~CArgDependencyGroup ( void ) virtualDefinition at line 4951 of file ncbiargs.cpp.
◆ ~CArgDesc() CArgDesc::~CArgDesc ( void ) virtual ◆ ~CArgDescriptions() CArgDescriptions::~CArgDescriptions ( void ) virtual ◆ ~CArgs() ◆ ~CArgValue() CArgValue::~CArgValue ( void ) protectedvirtualDefinition at line 161 of file ncbiargs.cpp.
◆ ~CCommandArgDescriptions() CCommandArgDescriptions::~CCommandArgDescriptions ( void ) virtual ◆ ~CPrintUsage() CArgDescriptions::CPrintUsage::~CPrintUsage ( )Definition at line 3697 of file ncbiargs.cpp.
◆ ~CPrintUsageXml() CArgDescriptions::CPrintUsageXml::~CPrintUsageXml ( )Definition at line 3906 of file ncbiargs.cpp.
◆ m_Aliases ◆ m_Arg ◆ m_ArgGroups ◆ m_Args [1/2] ◆ m_Args [2/2] TArgs CArgDescriptions::m_Args privateAssoc.map of arguments' name/descr.
Definition at line 1166 of file ncbiargs.hpp.
Referenced by CArgDescriptions::AddNegatedFlagAlias(), CArgDescriptions::CPrintUsage::CPrintUsage(), CArgDescriptions::Delete(), CArgDescriptions::Exist(), CArgDescriptions::CPrintUsageXml::PrintArguments(), CArgDescriptions::SetConstraint(), CArgDescriptions::SetErrorHandler(), CArgDescriptions::x_AddDesc(), CArgDescriptions::x_CreateArg(), CArgDescriptions::x_Find(), CArgDescriptions::x_IsMultiArg(), CArgDescriptions::x_PreCheck(), CArgDescriptions::x_PrintAliasesAsXml(), and CArgDescriptions::x_PrintComment().
◆ m_args ◆ m_ArgsType ◆ m_Arguments ◆ m_AutoHelp bool CArgDescriptions::m_AutoHelp protected ◆ m_Cmd_req ◆ m_CmdGroups list<string> CCommandArgDescriptions::m_CmdGroups private ◆ m_Command [1/2] ◆ m_Command [2/2] string CCommandArgDescriptions::m_Command mutableprivate ◆ m_Commands list<string> CCommandArgDescriptions::m_Commands private ◆ m_Comment ◆ m_CurrentCmdGroup size_t CCommandArgDescriptions::m_CurrentCmdGroup private ◆ m_CurrentGroup size_t CArgDescriptions::m_CurrentGroup private ◆ m_Default ◆ m_Dep ◆ m_Dependencies ◆ m_DependencyGroups ◆ m_desc [1/2] ◆ m_desc [2/2] ◆ m_Description [1/2] ◆ m_Description [2/2] string CArgDependencyGroup::m_Description private ◆ m_DetailedDescription string CArgDescriptions::m_DetailedDescription protected ◆ m_ErrorHandler ◆ m_Flags [1/2] ◆ m_Flags [2/2] ◆ m_Groups [1/2] map<string, size_t > CCommandArgDescriptions::m_Groups private ◆ m_Groups [2/2] ◆ m_HasHidden bool CArgDescriptions::m_HasHidden protected ◆ m_KeyFlagArgs ◆ m_MaxMembers size_t CArgDependencyGroup::m_MaxMembers private ◆ m_MinMax [1/2] ◆ m_MinMax [2/2] ◆ m_MinMembers size_t CArgDependencyGroup::m_MinMembers private ◆ m_MiscFlags ◆ m_Name [1/3] ◆ m_Name [2/3] ◆ m_Name [3/3] string CArgDependencyGroup::m_Name private ◆ m_nExtra [1/2] ◆ m_nExtra [2/2] unsigned CArgDescriptions::m_nExtra private ◆ m_nExtraOpt unsigned CArgDescriptions::m_nExtraOpt private ◆ m_NoSeparator string CArgDescriptions::m_NoSeparator private ◆ m_OpeningArgs TPosArgs CArgDescriptions::m_OpeningArgs private ◆ m_Ordinal size_t CArgValue::m_Ordinal protected ◆ m_out ◆ m_Pattern ◆ m_PosArgs ◆ m_PositionalMode ◆ m_Regexp ◆ m_Standard bool CArgValue::m_Standard protected ◆ m_Strings ◆ m_SymClass ◆ m_UsageDescription string CArgDescriptions::m_UsageDescription protected ◆ m_UsageName string CArgDescriptions::m_UsageName protected ◆ m_UsageWidth ◆ CArgDesc_Flag ◆ CArgDescDefault ◆ CArgDescMandatory ◆ CArgs ◆ CCommandArgDescriptions [1/2] ◆ CCommandArgDescriptions [2/2]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