Returns a string which represents the object e.g. when printed in Python
| 37 | |
| 38 | // Returns a string which represents the object e.g. when printed in Python |
| 39 | std::string MetadataPy::representation() const |
| 40 | { |
| 41 | MetadataPy::PointerType ptr = getMetadataPtr(); |
| 42 | std::stringstream str; |
| 43 | str << "Metadata [Name=("; |
| 44 | str << ptr->name(); |
| 45 | str << "), Description=("; |
| 46 | str << ptr->description(); |
| 47 | if (!ptr->maintainer().empty()) { |
| 48 | str << "), Maintainer=("; |
| 49 | str << ptr->maintainer().front().name; |
| 50 | } |
| 51 | str << ")]"; |
| 52 | |
| 53 | return str.str(); |
| 54 | } |
| 55 | |
| 56 | PyObject* MetadataPy::PyMake(struct _typeobject*, PyObject*, PyObject*) // Python wrapper |
| 57 | { |
nothing calls this directly
no test coverage detected