MCPcopy Create free account
hub / github.com/astra-toolbox/astra-toolbox / CPluginAlgorithm

Class CPluginAlgorithm

python/astra/src/PythonPluginAlgorithm.h:42–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41namespace astra {
42class CPluginAlgorithm : public CAlgorithm {
43
44public:
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
57private:
58 PyObject * instance;
59
60};
61
62PyObject* XMLNode2dict(XMLNode node);
63

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected