AddOptionalArg
This method defines optional arguments foryour plugin function. You can call AddOptionalArg
, only after call the AddArg method.
Calling convention:
int AddOptionalArg( const char* name, const char* desc, ArgType type, Measure dimens, DefValue defaultVal)
Argument | Data type | Description |
---|---|---|
name | const char* | Name of the optional argument. |
desc | const char* | Description of the optional argument. |
type | ArgType | Type of the optional argument. |
dimens | Measure | Unit dimension for the returned value. |
defaultVal | DefValue | Default value. |
You can find a definition of this function in the CaeUtils_Exp_IFunctionDefinition.hxx header file.
For the example, see the AddFunction method.