Turn Wrapper to singleton
This commit is contained in:
19
src/PyClassifier.h
Normal file
19
src/PyClassifier.h
Normal 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 */
|
Reference in New Issue
Block a user