From 6b95dccac3cb5f85786622729c24802f9156490c Mon Sep 17 00:00:00 2001 From: crouzet Date: Tue, 19 Oct 2010 14:01:47 +0000 Subject: [PATCH] hxx2salome integration: add the possibility to define services with a return value --- module_generator/cppcompo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2