create/get/set an integer subobject to an object
int FLDadd_long_array (
OMobj_id field,
const char *name,
xp_long size);
int FLDset_array_long (
OMobj_id field,
const char *name,
xp_long size,
long *array,
int mode);
int FLDget_array_long (
OMobj_id field,
const char *name,
int **array,
xp_long *size,
int mode);
These routines add a new integer array subobject to an existing field data schema object, and then set/get its values. They could also be used when you want to construct and reference an entirely new data object and add int array subobjects to it, but you want to do this within the code of a function, rather than using V.
Note: If you are accessing an existing, defined subobject, use the specific routine for that subobject (for example, FLDget_coord_extent). Use FLDadd/set/ get_array_int only when you have created your own, unique, named subobject, or when no FLD routine exists for a pre-defined subobject.
FLDadd_int_array adds an integer array subobject to the object specified by OMobj_id field. The object is named in the Object Manager by the string name. size indicates the total number of array values. For example, a [100][2] array would have size 200. The new subobject is flagged as "not set."
FLDset_array_int sets the integer array object named name within field equal to the first size values found in a integer array pointed to by array.
FLDget_array_int returns the value of the integer subobject name within field in via the double pointer array.
The program intends to write to the array, completely replacing it, but not read it. |
||
The program requires a copy of the array for its own, private use (reading or writing). |