MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getModule

Method getModule

src/Base/BaseClassPyImp.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71Py::String BaseClassPy::getModule() const
72{
73 std::string module(getBaseClassPtr()->getTypeId().getName());
74 std::string::size_type pos = module.find_first_of("::");
75
76 if (pos != std::string::npos) {
77 module = std::string(module, 0, pos);
78 }
79 else {
80 module.clear();
81 }
82
83 return {module};
84}
85
86PyObject* BaseClassPy::getCustomAttributes(const char* /*attr*/) const
87{

Callers

nothing calls this directly

Calls 3

getNameMethod · 0.45
getTypeIdMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected