Index: compiled/ActiveFilter.cpp |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/compiled/ActiveFilter.cpp |
@@ -0,0 +1,19 @@ |
+#include <emscripten/bind.h> |
+ |
+#include "ActiveFilter.h" |
+ |
+ActiveFilter::ActiveFilter(const std::wstring& text) |
+ : Filter(text), disabled(false), hitCount(0), lastHit(0) |
+{ |
+} |
+ |
+EMSCRIPTEN_BINDINGS(activefilter) |
+{ |
+ using namespace emscripten; |
+ class_<ActiveFilter,base<Filter>>("ActiveFilter") |
+ .property("disabled", &ActiveFilter::GetDisabled, |
+ &ActiveFilter::SetDisabled) |
+ .property("hitCount", &ActiveFilter::GetHitCount, |
+ &ActiveFilter::SetHitCount) |
+ .property("lastHit", &ActiveFilter::GetLastHit, &ActiveFilter::SetLastHit); |
+} |