import salome
salome.salome_init()
print "Test du composant CALCUL généré généré par hxx2salome"
-import hxxcompos
+import hxxcompos_ORB
myCalc = salome.lcc.FindOrLoadComponent("FactoryServer", "CALCUL")
print "10+15 = ",myCalc.add(10,15)
print "10x15 = ",myCalc.mul(10,15)
#
myCoco1.initialize()
m=myCoco1.getInputFieldTemplate("TargetField")
-#myCoco1.solve() to test with 5.1.5
-#f=myCoco1.getOutputField("SourceField")
-#myCoco2.printField(f)
+myCoco1.solve() #to test with 5.1.5
+f=myCoco1.getOutputField("SourceField")
+myCoco2.printField(f)
#
print "##################################"
print "Fin test hxx2salome/ICOCO/A2"
class ${component}; // forward declaration
class ${component}_i: ${inheritedclass}
- public POA_${module}::${component}_Gen,
+ public POA_${module}_ORB::${component}_Gen,
public Engines_Component_i,
public SALOMEMultiComm
{
${component}_i.cxx
lib${component}Engine_la_CXXFLAGS = -I$$(top_builddir)/idl $$(SALOME_INCLUDES) ${includes}
-lib${component}Engine_la_LIBADD = ${libs} -L$$(top_builddir)/idl -l${module} $${SALOME_LIBS} $$(FLIBS)
+lib${component}Engine_la_LIBADD = ${libs} -L$$(top_builddir)/idl -lSalomeIDL${module} $${SALOME_LIBS} $$(FLIBS)
"""
defs.append(serv.defs)
service = cxxService.substitute(component=self.name, service=serv.name,ret=corba_rtn_type(serv.ret,gen.module.name),
parameters=gen.makeArgs(serv),
- body=serv.body % {"module":gen.module.name} )
+ body=serv.body % {"module":gen.module.name+"_ORB"} )
services.append(service)
return cxxCompo.substitute(component=self.name,
inheritedconstructor=self.inheritedconstructor,