API Reference > OdDAI Namespace > Classes > OdDAIObjectSDAI Class > OdDAIObjectSDAI Methods > testAttr Method > OdDAIObjectSDAI::testAttr Method (AttributePtr&)
OdDAIObjectSDAI::testAttr Method (AttributePtr&)
Syntax
C++
virtual bool testAttr(const AttributePtr& attribute) const = 0;
Parameters 
Description 
const AttributePtr& attribute 
[in] A smart pointer to an Attribute object that represents the attribute's type.  

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

Retrieves whether the attribute value is set or is unset.

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