From: crouzet Date: Tue, 19 Oct 2010 14:01:47 +0000 (+0000) Subject: hxx2salome integration: X-Git-Tag: RELIQUAT_5x_15112010~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6b95dccac3cb5f85786622729c24802f9156490c;p=tools%2Fyacsgen.git hxx2salome integration: add the possibility to define services with a return value --- diff --git a/module_generator/cppcompo.py b/module_generator/cppcompo.py index eb6edea..8c0819c 100644 --- a/module_generator/cppcompo.py +++ b/module_generator/cppcompo.py @@ -25,6 +25,7 @@ import os from gener import Component, Invalid from cpp_tmpl import initService, cxxService, hxxCompo, cxxCompo from cpp_tmpl import exeCPP, compoEXEMakefile, compoMakefile +from yacstypes import corba_rtn_type class CPPComponent(Component): def __init__(self, name, services=None, libs="", rlibs="", includes="", @@ -98,7 +99,7 @@ AM_CFLAGS=$(SALOME_INCLUDES) -fexceptions """ services = [] for serv in self.services: - service = " void %s(" % serv.name + service = " %s %s(" % (corba_rtn_type(serv.ret,gen.module.name),serv.name) service = service+gen.makeArgs(serv)+");" services.append(service) servicesdef = "\n".join(services)