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

Method representation

src/App/DocumentPyImp.cpp:118–124  ·  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

116
117// returns a string which represent the object e.g. when printed in python
118std::string DocumentPy::representation() const
119{
120 std::stringstream str;
121 str << "<Document '" << getDocumentPtr()->getName() << "' (" << getDocumentPtr()->Label.getValue() << ") >";
122
123 return str.str();
124}
125
126PyObject* DocumentPy::save(PyObject* args)
127{

Callers

nothing calls this directly

Calls 3

getNameMethod · 0.45
getValueMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected