XPRMgetnextattrdesc
XPRMgetnextattrdesc |
Purpose
Get the next attribute descriptor.
Synopsis
XPRMattrdesc XPRMgetnextattrdesc(XPRMmodel model,XPRMattrdesc ref,int *ntype,const char **name,int *atype);
Arguments
model
|
Reference to a model
|
ref
|
Reference an attribute descriptor or
NULL
|
ntype
|
Type number supporting the attribute (may be
NULL)
|
name
|
Name of the attribute (may be
NULL)
|
atype
|
Type of the attribute (may be
NULL)
|
Return value
Reference pointer for the next attribute descriptor or
NULL if no further descriptor is available.
Further information
1. This function is used to enumerate attribute descriptors of a model. The second parameter is used to store the current location in the list of descriptors; if this parameter is
NULL, the first descriptor of the list is returned. This function returns
NULL if it is called with the reference to the last descriptor. Otherwise, the returned value can be used as the input parameter
ref to get the following descriptor and so on.
2. The
name,
ntype and
atype are the returned attribute properties associated to the provided descriptor
ref.
Related topics