SYNOPSIS¶
| mixed * | variable_list | ( | object ob, | int flags | )¶ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DESCRIPTION¶
Return an array with information about ob's variables. For every variable, 1 to 3 values (depending on flags) are stored in the result array conveying in this order:
- the name of the variable
- the variable flags (see below)
- the return type (listed in <lpctypes.h>)
- the value of the variable
ob may be given as true object or as a filename. In the latter case, the efun does not try to load the object before proceeding.
If ob is not the current object and the value of the variable is requested, a privilege_violation (“variable_list”, <ob>) occurs.
flags determines both which information is returned for every variable, and which variables should be considered at all. Its value is created by bin-or’ing together the following flags from <functionlist.h>:
Control of returned information:
RETURN_FUNCTION_NAMEinclude the variable nameRETURN_FUNCTION_FLAGSinclude the variable flagsRETURN_FUNCTION_TYPEinclude the return typeRETURN_VARIABLE_VALUEinclude the variable valueControl of listed variables:
NAME_INHERITEDdon’t list if defined by inheritanceTYPE_MOD_STATIC==TYPE_MOD_NOSAVEdon’t list if nosave (‘static’) variableTYPE_MOD_PRIVATEdon’t list if privateTYPE_MOD_PROTECTEDdon’t list if protectedNAME_HIDDENdon’t list if not visible through inheritance
The ‘flags’ information consists of the bin-or of the list control flags given above, plus the following:
TYPE_MOD_VIRTUALvariable is inherited virtuallyTYPE_MOD_NO_MASKvariable is nomaskTYPE_MOD_PUBLICvariable is public
All these flags are defined in <functionlist.h>; the return types are defined in <lpctypes.h>.
HISTORY¶
- introduced (3.2.10)