API Reference > Classes > PRC Protocol Extensions Classes > ExPrcCommandContext Class > ExPrcCommandContext Methods > ExPrcCommandContext::getReal Method
ExPrcCommandContext::getReal Method
Syntax
C++
virtual double getReal(const OdString& prompt, int options = OdEd::kInpDefault, double defVal = 0.0, const OdString& keywordList = OdString::kEmpty, OdEdRealTracker* pTracker = 0);
Parameters 
Description 
const OdString& prompt 
[in] A prompt string with text printed before waiting for user input.  
int options = OdEd::kInpDefault 
[in] A set of input options (bitwise or combination of the OdEd::CommonInputOptions enum).  
double defVal = 0.0 
[in] A default value returned if user inputs nothing.  
const OdString& keywordList = OdString::kEmpty 
[in] A string with a keywords list.  
OdEdRealTracker* pTracker = 0 
[in] A pointer to a notification interface for tracking changes in the command context object.  

Returns the entered double value.

Gets user input of a real value from the command's input.

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