returns a string which represent the object e.g. when printed in python
| 50 | |
| 51 | // returns a string which represent the object e.g. when printed in python |
| 52 | std::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 | |
| 60 | Py::Object DocumentObjectPy::getName() const |
| 61 | { |