API Reference > OdDAI Namespace > Classes > OdSDAIInstance Class > OdSDAIInstance Methods > testAttr Method > OdSDAIInstance::testAttr Method (AttributePtr&)
OdSDAIInstance::testAttr Method (AttributePtr&)
Syntax
C++
virtual bool testAttr(const AttributePtr& attribute) const;
Parameters 
Description 
const AttributePtr& attribute 
[in] A smart pointer to an instance of the Attribute class that represents the attribute type.  

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

Retrieves whether the attribute value is set or is unset.

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