API Reference > Other Classes > OdResBuf Class > OdResBuf Methods > OdResBuf::setBool Method
OdResBuf::setBool Method
Syntax
C++
void setBool(bool bValue);
Parameters 
Description 
bool bValue 
[in] Boolean value to be set. 

Sets the data content of the ResBuf object using the specified Boolean value only if the stored group code has a Boolean type. 

 

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Bool type.

Example of Entering and Displaying Tagged Data 

Getting and Setting Typical Data (integer 

Determining the Data Type by Group Code 

OdResBuf::getBool(), OdResBuf::setRestype(), OdDxfCode::_getType() methods

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