Salome HOME
Observer using plugins through python
[modules/yacs.git] / src / engine_swig / pilot.i
index 642fb3518fc696bd23e95a5ee67d8fb415e65f6e..c2c324fe75990c4da8490ddef48441bfab84cf0b 100644 (file)
@@ -64,6 +64,7 @@
 #include "ForkBlocPoint.hxx"
 #include "LinkedBlocPoint.hxx"
 #include "ElementaryPoint.hxx"
+#include "ObserverAsPlugin.hxx"
   
 using namespace YACS::ENGINE;
 
@@ -645,3 +646,17 @@ namespace YACS
   }
 }
 
+%rename(LoadObserversPluginIfAny) LoadObserversPluginIfAnySwig;
+%rename(UnLoadObserversPluginIfAny) UnLoadObserversPluginIfAnySwig;
+                                  
+%inline{
+  void LoadObserversPluginIfAnySwig(YACS::ENGINE::ComposedNode *rootNode, YACS::ENGINE::ExecutorSwig *executor)
+  {
+    YACS::ENGINE::LoadObserversPluginIfAny(rootNode,executor);
+  }
+
+  void UnLoadObserversPluginIfAnySwig()
+  {
+    YACS::ENGINE::UnLoadObserversPluginIfAny();
+  }
+}