Get an attribute with a cat¶
saf_get_cat_att
is a function defined in cat.c.
Synopsis:
-
int
saf_get_cat_att
(SAF_ParMode pmode, SAF_Cat *cat, const char *name, hid_t *datatype, int *count, void **value)¶
Formal Arguments:
cat
: Collection category owning the attribute for which we’re searching.name
: Name of the attribute.datatype
: [OUT
] Datatype of the attribute as it is stored.count
: [OUT
] Number of elements contained in the attribute.value
: [OUT
] On successful return this will point to an allocated array containingcount
elements each of typedatatype
.
Description: This function is identical to the generic saf_get_attribute function except that it is specific to
SAF__Cat
objects to provide the client with compile time type checking. For a description,
see saf_get_attribute.
See Also:
- saf_get_attribute: 23.1: Read a non-sharable attribute
- Collection Categories: Introduction for current chapter