API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::setDouble Method
OdDgResBuf::setDouble Method
Syntax
C++
void setDouble(double realValue);
Parameters 
Description 
double realValue 
[in] Double value to be set. 

Sets the data content of the ResBuf object using the specified double-precision floating-point value only if the stored group code has a Double or Angle type. 

 

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Double or Angle type. Use the ((double)value) instruction to convert the passed value.

Example of Entering and Displaying Tagged Data 

Getting and Setting Typical Data (integer 

Determining the Data Type by Group Code 

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

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