findattrdesc
findattrdesc |
Purpose
Find an attribute descriptor from its name.
Synopsis
XPRMattrdesc findattrdesc(XPRMcontext ctx, int type, const char **name, int *atype);
Arguments
ctx
|
Mosel's execution context
|
type
|
Type number for the attribute
|
name
|
Name of the attribute
|
Return value
Reference pointer to an attribute descriptor or
NULL if no corresponding function could be found.
Further information
The attribute
att of an entity of type
T is obtained by calling the function
get
att returning an integer, a string, a real or a Boolean and taking as its only argument an entity of type
T. This routine returns a descriptor of such a function that can be used with
getattr in order to retrieve the corresponding attribute of an entity of the corresponding type.
Related topics