MCPcopy 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
222const char* Enumeration::getCStr() const
223{
224 if (!isValid() || _index < 0 || _index >= countItems()) {
225 return nullptr;
226 }
227
228 return enumArray[_index]->data();
229}
230
231int Enumeration::getInt() const
232{

Callers 2

executeMethod · 0.80
getValueAsStringMethod · 0.80

Calls 2

isValidFunction · 0.70
dataMethod · 0.45

Tested by 1

executeMethod · 0.64