| 40 | |
| 41 | namespace astra { |
| 42 | class CPluginAlgorithm : public CAlgorithm { |
| 43 | |
| 44 | public: |
| 45 | |
| 46 | CPluginAlgorithm(PyObject* pyclass); |
| 47 | ~CPluginAlgorithm(); |
| 48 | |
| 49 | bool initialize(const Config& _cfg); |
| 50 | bool run(int _iNrIterations); |
| 51 | |
| 52 | // Return instance (including INCREF) |
| 53 | PyObject *getInstance() const; |
| 54 | |
| 55 | virtual std::string description() const { return "plugin"; } |
| 56 | |
| 57 | private: |
| 58 | PyObject * instance; |
| 59 | |
| 60 | }; |
| 61 | |
| 62 | PyObject* XMLNode2dict(XMLNode node); |
| 63 |
nothing calls this directly
no outgoing calls
no test coverage detected