2 from string import Template
4 from compat import Template,set
9 #ifndef _${module}_IDL_
10 #define _${module}_IDL_
12 #include "DSC_Engines.idl"
13 #include "SALOME_Exception.idl"
17 typedef sequence<string> stringvec;
18 typedef sequence<double> dblevec;
19 typedef sequence<long> intvec;
29 interface ${component}:Engines::Superv_Component
34 interface=Template(interface)
37 include $$(top_srcdir)/adm_local/make_common_starter.am
39 BUILT_SOURCES = ${module}SK.cc
40 IDL_FILES=${module}.idl
42 lib_LTLIBRARIES = lib${module}.la
43 salomeidl_DATA = $$(IDL_FILES)
44 salomepython_DATA = ${module}_idl.py
45 lib${module}_la_SOURCES =
46 nodist_lib${module}_la_SOURCES = ${module}SK.cc
47 nodist_salomeinclude_HEADERS= ${module}.hh
48 lib${module}_la_CXXFLAGS = -I. $$(KERNEL_INCLUDES)
49 lib${module}_la_LIBADD = $$(KERNEL_LIBS)
50 ##########################################################
52 \t$$(OMNIORB_IDL) -bcxx $$(IDLCXXFLAGS) $$(OMNIORB_IDLCXXFLAGS) $$(IDL_INCLUDES) $$<
54 \t$$(OMNIORB_IDL) -bpython $$(IDL_INCLUDES) $$<
56 CLEANFILES = *.hh *SK.cc *.py
59 \trm -rf ${module} ${module}__POA
62 \t$${mkinstalldirs} $$(DESTDIR)$$(salomepythondir)
63 \tcp -R ${module} ${module}__POA $$(DESTDIR)$$(salomepythondir)
66 \trm -rf $$(DESTDIR)$$(salomepythondir)/${module}
67 \trm -rf $$(DESTDIR)$$(salomepythondir)/${module}__POA
69 idlMakefile=Template(idlMakefile)
73 catalog="""<?xml version='1.0' encoding='us-ascii' ?>
75 <!-- XML component catalog -->
78 <!-- Path prefix information -->
83 <!-- Commonly used types -->
85 <objref name="pyobj" id="python:obj:1.0"/>
88 <!-- Component list -->
94 catalog=Template(catalog)
98 <!-- Component identification -->
99 <component-name>${component}</component-name>
100 <component-username>${component}</component-username>
101 <component-type>Data</component-type>
102 <component-author>${author}</component-author>
103 <component-version>1.0</component-version>
104 <component-comment></component-comment>
105 <component-multistudy>0</component-multistudy>
106 <component-impltype>${impltype}</component-impltype>
107 <component-implname>${implname}</component-implname>
108 <component-interface-list>
109 <component-interface-name>${component}</component-interface-name>
110 <component-interface-comment></component-interface-comment>
111 <component-service-list>
113 </component-service-list>
114 </component-interface-list>
116 cataCompo=Template(cataCompo)
118 cataService=""" <component-service>
119 <!-- service-identification -->
120 <service-name>${service}</service-name>
121 <service-author>${author}</service-author>
122 <service-version>1.0</service-version>
123 <service-comment></service-comment>
124 <service-by-default>0</service-by-default>
125 <!-- service-connexion -->
135 </component-service>"""
136 cataService=Template(cataService)
138 cataInparam=""" <inParameter>
139 <inParameter-name>${name}</inParameter-name>
140 <inParameter-type>${type}</inParameter-type>
142 cataInparam=Template(cataInparam)
144 cataOutparam=""" <outParameter>
145 <outParameter-name>${name}</outParameter-name>
146 <outParameter-type>${type}</outParameter-type>
148 cataOutparam=Template(cataOutparam)
150 cataInStream=""" <inParameter>
151 <inParameter-name>${name}</inParameter-name>
152 <inParameter-type>${type}</inParameter-type>
153 <inParameter-dependency>${dep}</inParameter-dependency>
155 cataInStream=Template(cataInStream)
157 cataOutStream=""" <outParameter>
158 <outParameter-name>${name}</outParameter-name>
159 <outParameter-type>${type}</outParameter-type>
160 <outParameter-dependency>${dep}</outParameter-dependency>
162 cataOutStream=Template(cataOutStream)