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

Method representation

src/App/DocumentObjectPyImp.cpp:52–58  ·  view source on GitHub ↗

returns a string which represent the object e.g. when printed in python

Source from the content-addressed store, hash-verified

50
51// returns a string which represent the object e.g. when printed in python
52std::string DocumentObjectPy::representation() const
53{
54 DocumentObject* object = this->getDocumentObjectPtr();
55 std::stringstream str;
56 str << "<" << object->getTypeId().getName() << " object>";
57 return str.str();
58}
59
60Py::Object DocumentObjectPy::getName() const
61{

Callers

nothing calls this directly

Calls 3

getNameMethod · 0.45
getTypeIdMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected