Debugging Tools for Windows

GetArgStr

The GetArgStr method returns a named string argument from the command line used to invoke the current extension command.

PCSTR
  ExtExtension::GetArgStr(
    IN PCSTR  Name,
    IN bool  Required = true
    ) throw(...)

Parameters

Name
Specifies the name of the argument. The command-line description used in EXT_COMMAND must specify that the type of this argument is string.
Required
Specifies if the argument is required. If Required is true and the argument was not present on the command line, ExtInvalidArgumentException is thrown. You do not need to set this parameter; if it is not set Required defaults to true.

Return Value

GetArgStr returns the named string argument.

Comments

For an overview of argument parsing in the EngExtCpp extensions framework, see Parsing Extension Arguments.

The string returned by GetArgStr is only meaningful during the execution of the current extension command.

This method should only be called during the execution of an extension command provided by this class.

Requirements

Headers: Defined in Engextcpp.hpp. Include Engextcpp.hpp.

See Also

EXT_COMMAND

Build machine: CAPEBUILD