API Reference > OdDAI Namespace > Classes > Entity Class > Entity Methods > Entity::rfindAttribute Method
Entity::rfindAttribute Method
Syntax
C++
const AttributePtr rfindAttribute(const char * attrName) const;
Parameters 
Description 
const char * attrName 
[in] An ANSI string that contains the name of the attribute to find.  

A smart pointer to the found attribute definition; if the attribute is not found then a NULL smart pointer is returned.

Searches for an attribute definition with a specified name for the entity definition and all its supertypes. The search proceeds in reversed order.

The search of an attribute is performed starting from this entity definition towards its supertypes.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.