22 from omniidl_be.doil.corba
import template
23 import omniidl_be.doil.yat
as yat
25 keys = [
'idl_fname',
'idl_includes',
26 'types_h',
'types_h_path',
27 'typeconv_h',
'typeconv_h_path',
32 'decl': template.object_conv_h,
'impl': template.object_conv_cpp},
34 'decl': template.struct_conv_h,
'impl': template.struct_conv_cpp},
36 'decl': template.union_conv_h,
'impl': template.union_conv_cpp},
38 'decl': template.enum_conv_h,
'impl': template.enum_conv_cpp},
40 'decl': template.exception_conv_h,
'impl': template.exception_conv_cpp},
42 'decl': template.typedef_decl_h,
'impl': template.typedef_dec_cpp}
46 for d
in dict[
'tree']:
47 if d[
'corba'][
'decl_type'] ==
'interface':
50 ifdict[key] = dict[key]
55 text = t.generate(ifdict)
56 fname = d[
'local'][
'servant_h']
62 text = t.generate(ifdict)
63 fname = d[
'local'][
'servant_cpp']
69 for d
in dict[
'tree']:
70 if d[
'corba'][
'decl_type'] ==
'interface':
73 ifdict[key] = dict[key]
78 text = t.generate(ifdict)
79 fname = d[
'local'][
'adapter_h']
85 text = t.generate(ifdict)
86 fname = d[
'local'][
'adapter_cpp']
92 for d
in dict[
'tree']:
93 if d[
'corba'][
'decl_type'] ==
'interface':
96 ifdict[key] = dict[key]
101 text = t.generate(ifdict)
102 fname = d[
'local'][
'proxy_h']
108 text = t.generate(ifdict)
109 fname = d[
'local'][
'proxy_cpp']
117 for d
in dict[
'tree']:
118 decl_type = d[
'decl_type']
120 if not decl_map.has_key(decl_type):
continue 123 decl_text = decl_temp.generate(d)
124 decl.append(decl_text)
127 impl_text = impl_temp.generate(d)
128 impl.append(impl_text)
131 dict[
'declarations'] = decl
132 dict[
'implementations'] = impl
134 typeconv_h = dict[
'typeconv_h']
135 typeconv_cpp = dict[
'typeconv_cpp']
138 f = open(typeconv_h,
"w")
139 text = t.generate(dict)
144 f = open(typeconv_cpp,
"w")
145 text = t.generate(dict)
def generate_servant(dict)
def generate_adapter(dict)