summaryrefslogtreecommitdiff
path: root/src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp')
-rw-r--r--src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp b/src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp
new file mode 100644
index 00000000..abaa1657
--- /dev/null
+++ b/src/desktop/rule/matchEngine/WorkspaceMatchEngine.cpp
@@ -0,0 +1,12 @@
+#include "WorkspaceMatchEngine.hpp"
+#include "../../Workspace.hpp"
+
+using namespace Desktop::Rule;
+
+CWorkspaceMatchEngine::CWorkspaceMatchEngine(const std::string& s) : m_value(s) {
+ ;
+}
+
+bool CWorkspaceMatchEngine::match(PHLWORKSPACE ws) {
+ return ws->matchesStaticSelector(m_value);
+}