| 87 | } |
| 88 | |
| 89 | void Extension::initExtension(ExtensionContainer* obj) |
| 90 | { |
| 91 | if (m_extensionType.isBad()) { |
| 92 | throw Base::RuntimeError("Extension: Extension type not set"); |
| 93 | } |
| 94 | |
| 95 | // all properties are initialised without PropertyContainer father. Now that we know it we can |
| 96 | // finally finish the property initialisation |
| 97 | std::vector<Property*> list; |
| 98 | extensionGetPropertyData().getPropertyList(this, list); |
| 99 | for (Property* prop : list) { |
| 100 | prop->setContainer(obj); |
| 101 | } |
| 102 | |
| 103 | m_base = obj; |
| 104 | m_base->registerExtension(m_extensionType, this); |
| 105 | } |
| 106 | |
| 107 | |
| 108 | PyObject* Extension::getExtensionPyObject() |
no test coverage detected