If "range" is non-zero, it is an array with two entries - the lower and upper limits of the allowable range of actValue.
If there is any error in getting the value, including its value not being in range, the actual value is set to that specified by "defVal" and status will be reset to OK. (see flags arguments to change the effect on status).
> | id | SdsIdType | Id of the argument system. |
---|---|---|---|
> | name | Char * | Name of the argument to get |
> | position | int | The position of the argument. This is used if "name" is a null pointer, an empty string or if we can't find an SDS structure item of that name. |
> | range | Long Int {[]} | If non-null, array of two values, the lower and upper limit for value. |
> | defVal | Long Int | The Default value. Note, this is NOT validated against the range. |
> | flags | Int | A bit-mask of flags. Possible values are
|
GIT_M_ARG_KEEPERR | If we use the default value, return the error which caused it to be used. |
---|---|
GIT_M_ARG_KEEPVALERR |
Only retain the error
if we found the item (and its value
was in error). If we did not find the
item, then return status ok and the default.
|
< | actValue | Long int * | The actual value is written here. |
---|---|---|---|
! | status | StatusType * | Modified status. If we have an
error and GIT_M_ARG_KEEPERR is true then a message
is reported using {\tt ErsRep} and status is set.
In addition to error codes from the underlying
Arg and Sds routines, one of the following may be
returned
|
GIT__NOARG | The argument id is zero or no item was found. Will not be returned if GIT_M_ARG_KEEPVALERR flag is set, in that case, just return the default with status ok. |
---|---|
GIT__ARGLTMIN | Argument value less than range[0]. |
---|---|
GIT__ARGGTMAX |
Argument value greater than range[1].
|
SdsFreeId | Sds | Free an sds id |
---|---|---|
GitArgNamePos | Git | Get an argument Id by name or position |
ArgCvt | Arg | Convert an id to a specified type. |
ErsRep | Ers | Report an error. |
ErsPush | Ers | Increase error context |
ErsPop | Ers | Decreate error context |
ErsAnnul | Ers | Annul error messages |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au