Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeCAD/FreeCAD
/ getCStr
Method
getCStr
src/App/Enumeration.cpp:222–229 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
220
}
221
222
const char* Enumeration::getCStr() const
223
{
224
if (!isValid() || _index < 0 || _index >= countItems()) {
225
return nullptr;
226
}
227
228
return enumArray[_index]->data();
229
}
230
231
int Enumeration::getInt() const
232
{
Callers
2
execute
Method · 0.80
getValueAsString
Method · 0.80
Calls
2
isValid
Function · 0.70
data
Method · 0.45
Tested by
1
execute
Method · 0.64