API Reference > Other Classes > OdResBuf Class > OdResBuf Methods > OdResBuf::getBool Method
OdResBuf::getBool Method
Syntax
C++
bool getBool() const;

Returns the data content of the ResBuf object as a Boolean value.

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Bool type. If the stored value is an Integer type, this method casts it to a Boolean type and returns True when the value is non zero, or False when the value is zero.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.