10#include <boost/python/class.hpp>
11#include <boost/python/def.hpp>
12#include <boost/python/pure_virtual.hpp>
21 using ConfigObserver::notifyValueChanged;
23 void onValueChanged(
const std::string &name,
const std::string &newValue,
const std::string &prevValue)
override {
24 callMethod<void>(
m_self,
"onValueChanged", name, newValue, prevValue);
36 class_<ConfigObserverWrapper, boost::noncopyable>(
"ConfigObserver")
void export_ConfigObserver()
ConfigObserverWrapper(PyObject *self)
void onValueChanged(const std::string &name, const std::string &newValue, const std::string &prevValue) override
The ConfigObserver is used to observe changes in the configuration based on notifications sent from t...
ReturnType callMethod(PyObject *obj, const char *methodName, const Args &...args)
Wrapper around boost::python::call_method to acquire GIL for duration of call.