int kgeom_create_attribute(
kobject object,
char *name,
int num,
int length,
int type,
int permanence,
int shared)
none
The second argument to this function is the name of the attribute to be created. If the attribute specified already exists then this function will return FALSE.
The type argument indicates the data type of all the elements associated with the attribute. It take on any of the following values: KBIT, KUBYTE, KBYTE, KUSHORT, KSHORT, KUINT, KINT, KULONG, KLONG, KFLOAT, KDOUBLE, KCOMPLEX, or KDCOMPLEX. Any other value is considered illegal. Passing this argument with an illegal value will force this function to return FALSE.
The num argument indicates how many of elements of the type "type" will be contained in the attribute. This information is necessary so that Geometry Services can allocate sufficient memory to store the attribute. A negative or 0 value passed in will force this function to return FALSE.
The length argument indicates the size of each element, i.e. you could be passing in a pointer to an array of integers or several arrays if num greater than 1. This information is necessary so that Geometry Services can allocate sufficient memory to store the attribute. This argument specifies the length of the array that needs to be allocated. A negative or 0 value passed in will force this function to return FALSE.
The last argument, permanence indicates whether the attribute should be saved when the data object is closed and being stored in a permanent transport. It should be set to TRUE if the attribute is permanent and FALSE if the attribute is transient.
none
none
$DATASERV/include/koldgeom/kgeometry.h