Turn Wrapper to singleton

This commit is contained in:
2023-10-30 11:31:11 +01:00
parent 6277f5f2f9
commit 5258e90bae
10 changed files with 249 additions and 92 deletions

19
src/PyClassifier.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef PYCLASSIFER_H
#define PYCLASSIFER_H
#include <string>
#include "PyWrap.h"
namespace pywrap {
class PyClassifier {
public:
PyClassifier(const std::string& module, const std::string& className);
virtual ~PyClassifier();
void callMethod(const std::string& method);
private:
PyWrap* pyWrap;
std::string module;
std::string className;
};
} /* namespace pywrap */
#endif /* PYCLASSIFER_H */