API Reference > Other Classes > OdDgResBuf Class > OdDgResBuf Methods > OdDgResBuf::getDouble Method
OdDgResBuf::getDouble Method
Syntax
C++
double getDouble() const;

Returns the data content of the ResBuf object as a double-precision floating-point value.

This method generates the OdError_InvalidResBuf exception when the stored data type does not correspond to the Double or Angle type. The returned value can be converted to an Integer value truncating the fractional part.

Example of Entering and Displaying Tagged Data 

Getting and Setting Typical Data (integer 

Determining the Data Type by Group Code 

OdResBuf::setDouble(), OdResBuf::restype(), OdDxfCode::_getType() methods

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