API Reference > OdIfc Namespace > Classes > OdIfcEntity Class > OdIfcEntity Methods > testAttr Method > OdIfcEntity::testAttr Method (OdIfcAttribute)
OdIfcEntity::testAttr Method (OdIfcAttribute)
Syntax
C++
virtual bool testAttr(const OdIfcAttribute explicitAttrDef) const;
Parameters 
Description 
const OdIfcAttribute explicitAttrDef 
[in] An OdIfcAttribute enumeration that represents the attribute definition.  

Returns true if the attribute has a value; otherwise, the method returns false (the attribute value is not set).

Retrieves whether the attribute value is set or is unset.

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