API Reference > OdEd Classes > OdEdUserIO Class > OdEdUserIO Methods > OdEdUserIO::getInt Method
OdEdUserIO::getInt Method
Syntax
C++
virtual int getInt(const OdString& prompt, int options = OdEd::kInpDefault, int defVal = 0, const OdString& keywords = OdString::kEmpty, OdEdIntegerTracker* pTracker = 0) = 0;
Parameters 
Description 
const OdString& prompt 
[in] Prompt output before pausing for user input.  
int options = OdEd::kInpDefault 
[in] Bitwise OR combination of OdEd::CommonInputOptions enum.  
int defVal = 0 
[in] Returned if user input nothing and OdEd::kInpReturnDefVal flag is set. 
OdEdIntegerTracker* pTracker = 0 
[in/out] Pointer to an IO Tracker for this user input.  

Returns user input of an integer. 

 

If prompt is empty, a default prompt is used. 

This function uses the underlying OdEdBaseIO functions putString and getString for low level output and input.

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