find_attrib
List of: Functions
Subjects: Attributes
Contents: Kernel

Action: Locates an ENTITY's attribute list for an ATTRIB of a given type, subtype, etc., starting at the beginning of the list.

Prototype: ATTRIB* find_attrib (


ENTITY const* owner, // owning entity


int subtype // subtype



= -1,


int subsubtype // subsubtype



= -1,


int subsubsubtype // subsubsubtype



= -1,


int subsubsubsubtype // subsubsubsubtype



= -1


);

Includes: #include "kernel/acis.hxx"

#include "kernel/kerndata/attrib/attrib.hxx"

#include "kernel/kerndata/data/entity.hxx"

Description: Searches an ENTITY's attribute list for an ATTRIB of a given type, subtype, etc., starting at the beginning of the list. The int arguments are successive subtypes of ATTRIB to be matched. Genuine identifiers are always strictly positive. Zero means "don't care at this level." Negative means "don't care at this or any deeper level." All attribute type codes are guaranteed unique for any run of ACIS. If no matching ATTRIB is found, NULL is returned.

Library: kernel

Filename: kern/kernel/kerndata/attrib/attrib.hxx

Effect: Read-only
PDF/KERN/24FNC.PDF
HTM/DATA/KERN/KERN/24FNC/0014.HTM