Salome HOME
Merge branch 'V8_0_0_BR'
[tools/yacsgen.git] / module_generator / hxxparacompo.py
index 5b795850445f0518a22ceaa7c1de012cdfe22a88..b2eeece142bd9bf29818c50e44f0a82f12ea4d8e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2014  EDF R&D
+# Copyright (C) 2009-2015  EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -471,3 +471,22 @@ void *th_%(serv_name)s(void *s)
                                servicesimpl="\n".join(services),
                                thread_impl=self.thread_impl % {"module":gen.module.name} )
 
+  def getIdlInterfaces(self):
+    services = self.getIdlServices()
+    from hxx_tmpl import interfaceidlhxx
+    Inherited=""
+    Inherited="SALOME_MED::ParaMEDMEMComponent"
+    return interfaceidlhxx.substitute(component=self.name,inherited=Inherited, services="\n".join(services))
+
+  def getIdlDefs(self):
+    idldefs="""#include "ParaMEDMEMComponent.idl"\n"""
+    if self.interfacedefs:
+      idldefs = idldefs + self.interfacedefs
+    return idldefs
+
+  def getDependentModules(self):
+    """ This component depends on "MED" because it inherits from ParaMEDMEMComponent
+    """
+    depend_modules = Component.getDependentModules(self)
+    depend_modules.add("MED")
+    return depend_modules