author | vincent@clarinet.u-strasbg.fr |
Wed, 05 Nov 2008 14:49:21 -0800 | |
changeset 3842 | 545ddf9398ed |
parent 3816 | edd4928b2046 |
child 3855 | 7fdcbeea6c4f |
permissions | -rw-r--r-- |
3468
0bb5275704fc
Python: new pybindgen, rescan API definitions, new API definition files are more multi-line and hopefully easier to read
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3457
diff
changeset
|
1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass |
3408 | 2 |
|
3 |
||
4 |
import pybindgen.settings |
|
5 |
import warnings |
|
6 |
||
7 |
class ErrorHandler(pybindgen.settings.ErrorHandler): |
|
8 |
def handle_error(self, wrapper, exception, traceback_): |
|
9 |
warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) |
|
10 |
return True |
|
11 |
pybindgen.settings.error_handler = ErrorHandler() |
|
12 |
||
13 |
||
14 |
import sys |
|
15 |
import ns3_module_core |
|
16 |
import ns3_module_simulator |
|
17 |
import ns3_module_mobility |
|
18 |
import ns3_module_common |
|
19 |
import ns3_module_contrib |
|
20 |
import ns3_module_node |
|
21 |
import ns3_module_point_to_point |
|
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
22 |
import ns3_module_stats |
3408 | 23 |
import ns3_module_internet_stack |
24 |
import ns3_module_wifi |
|
25 |
import ns3_module_csma |
|
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
26 |
import ns3_module_emu |
3457 | 27 |
import ns3_module_bridge |
3408 | 28 |
import ns3_module_packet_sink |
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
29 |
import ns3_module_v4ping |
3408 | 30 |
import ns3_module_global_routing |
31 |
import ns3_module_onoff |
|
32 |
import ns3_module_olsr |
|
33 |
import ns3_module_udp_echo |
|
34 |
import ns3_module_helper |
|
35 |
||
36 |
def module_init(): |
|
37 |
root_module = Module('ns3', cpp_namespace='::ns3') |
|
38 |
return root_module |
|
39 |
||
40 |
def register_types(module): |
|
41 |
root_module = module.get_root() |
|
42 |
||
43 |
root_module.begin_section('ns3_module_core') |
|
44 |
ns3_module_core.register_types(module) |
|
45 |
||
46 |
try: |
|
47 |
import ns3_module_core__local |
|
48 |
except ImportError: |
|
49 |
pass |
|
50 |
else: |
|
51 |
ns3_module_core__local.register_types(module) |
|
52 |
||
53 |
root_module.end_section('ns3_module_core') |
|
54 |
root_module.begin_section('ns3_module_simulator') |
|
55 |
ns3_module_simulator.register_types(module) |
|
56 |
||
57 |
try: |
|
58 |
import ns3_module_simulator__local |
|
59 |
except ImportError: |
|
60 |
pass |
|
61 |
else: |
|
62 |
ns3_module_simulator__local.register_types(module) |
|
63 |
||
64 |
root_module.end_section('ns3_module_simulator') |
|
65 |
root_module.begin_section('ns3_module_mobility') |
|
66 |
ns3_module_mobility.register_types(module) |
|
67 |
||
68 |
try: |
|
69 |
import ns3_module_mobility__local |
|
70 |
except ImportError: |
|
71 |
pass |
|
72 |
else: |
|
73 |
ns3_module_mobility__local.register_types(module) |
|
74 |
||
75 |
root_module.end_section('ns3_module_mobility') |
|
76 |
root_module.begin_section('ns3_module_common') |
|
77 |
ns3_module_common.register_types(module) |
|
78 |
||
79 |
try: |
|
80 |
import ns3_module_common__local |
|
81 |
except ImportError: |
|
82 |
pass |
|
83 |
else: |
|
84 |
ns3_module_common__local.register_types(module) |
|
85 |
||
86 |
root_module.end_section('ns3_module_common') |
|
87 |
root_module.begin_section('ns3_module_contrib') |
|
88 |
ns3_module_contrib.register_types(module) |
|
89 |
||
90 |
try: |
|
91 |
import ns3_module_contrib__local |
|
92 |
except ImportError: |
|
93 |
pass |
|
94 |
else: |
|
95 |
ns3_module_contrib__local.register_types(module) |
|
96 |
||
97 |
root_module.end_section('ns3_module_contrib') |
|
98 |
root_module.begin_section('ns3_module_node') |
|
99 |
ns3_module_node.register_types(module) |
|
100 |
||
101 |
try: |
|
102 |
import ns3_module_node__local |
|
103 |
except ImportError: |
|
104 |
pass |
|
105 |
else: |
|
106 |
ns3_module_node__local.register_types(module) |
|
107 |
||
108 |
root_module.end_section('ns3_module_node') |
|
109 |
root_module.begin_section('ns3_module_point_to_point') |
|
110 |
ns3_module_point_to_point.register_types(module) |
|
111 |
||
112 |
try: |
|
113 |
import ns3_module_point_to_point__local |
|
114 |
except ImportError: |
|
115 |
pass |
|
116 |
else: |
|
117 |
ns3_module_point_to_point__local.register_types(module) |
|
118 |
||
119 |
root_module.end_section('ns3_module_point_to_point') |
|
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
120 |
root_module.begin_section('ns3_module_stats') |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
121 |
ns3_module_stats.register_types(module) |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
122 |
|
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
123 |
try: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
124 |
import ns3_module_stats__local |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
125 |
except ImportError: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
126 |
pass |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
127 |
else: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
128 |
ns3_module_stats__local.register_types(module) |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
129 |
|
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
130 |
root_module.end_section('ns3_module_stats') |
3408 | 131 |
root_module.begin_section('ns3_module_internet_stack') |
132 |
ns3_module_internet_stack.register_types(module) |
|
133 |
||
134 |
try: |
|
135 |
import ns3_module_internet_stack__local |
|
136 |
except ImportError: |
|
137 |
pass |
|
138 |
else: |
|
139 |
ns3_module_internet_stack__local.register_types(module) |
|
140 |
||
141 |
root_module.end_section('ns3_module_internet_stack') |
|
142 |
root_module.begin_section('ns3_module_wifi') |
|
143 |
ns3_module_wifi.register_types(module) |
|
144 |
||
145 |
try: |
|
146 |
import ns3_module_wifi__local |
|
147 |
except ImportError: |
|
148 |
pass |
|
149 |
else: |
|
150 |
ns3_module_wifi__local.register_types(module) |
|
151 |
||
152 |
root_module.end_section('ns3_module_wifi') |
|
153 |
root_module.begin_section('ns3_module_csma') |
|
154 |
ns3_module_csma.register_types(module) |
|
155 |
||
156 |
try: |
|
157 |
import ns3_module_csma__local |
|
158 |
except ImportError: |
|
159 |
pass |
|
160 |
else: |
|
161 |
ns3_module_csma__local.register_types(module) |
|
162 |
||
163 |
root_module.end_section('ns3_module_csma') |
|
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
164 |
root_module.begin_section('ns3_module_emu') |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
165 |
ns3_module_emu.register_types(module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
166 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
167 |
try: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
168 |
import ns3_module_emu__local |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
169 |
except ImportError: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
170 |
pass |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
171 |
else: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
172 |
ns3_module_emu__local.register_types(module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
173 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
174 |
root_module.end_section('ns3_module_emu') |
3457 | 175 |
root_module.begin_section('ns3_module_bridge') |
176 |
ns3_module_bridge.register_types(module) |
|
177 |
||
178 |
try: |
|
179 |
import ns3_module_bridge__local |
|
180 |
except ImportError: |
|
181 |
pass |
|
182 |
else: |
|
183 |
ns3_module_bridge__local.register_types(module) |
|
184 |
||
185 |
root_module.end_section('ns3_module_bridge') |
|
3408 | 186 |
root_module.begin_section('ns3_module_packet_sink') |
187 |
ns3_module_packet_sink.register_types(module) |
|
188 |
||
189 |
try: |
|
190 |
import ns3_module_packet_sink__local |
|
191 |
except ImportError: |
|
192 |
pass |
|
193 |
else: |
|
194 |
ns3_module_packet_sink__local.register_types(module) |
|
195 |
||
196 |
root_module.end_section('ns3_module_packet_sink') |
|
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
197 |
root_module.begin_section('ns3_module_v4ping') |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
198 |
ns3_module_v4ping.register_types(module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
199 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
200 |
try: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
201 |
import ns3_module_v4ping__local |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
202 |
except ImportError: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
203 |
pass |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
204 |
else: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
205 |
ns3_module_v4ping__local.register_types(module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
206 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
207 |
root_module.end_section('ns3_module_v4ping') |
3408 | 208 |
root_module.begin_section('ns3_module_global_routing') |
209 |
ns3_module_global_routing.register_types(module) |
|
210 |
||
211 |
try: |
|
212 |
import ns3_module_global_routing__local |
|
213 |
except ImportError: |
|
214 |
pass |
|
215 |
else: |
|
216 |
ns3_module_global_routing__local.register_types(module) |
|
217 |
||
218 |
root_module.end_section('ns3_module_global_routing') |
|
219 |
root_module.begin_section('ns3_module_onoff') |
|
220 |
ns3_module_onoff.register_types(module) |
|
221 |
||
222 |
try: |
|
223 |
import ns3_module_onoff__local |
|
224 |
except ImportError: |
|
225 |
pass |
|
226 |
else: |
|
227 |
ns3_module_onoff__local.register_types(module) |
|
228 |
||
229 |
root_module.end_section('ns3_module_onoff') |
|
230 |
root_module.begin_section('ns3_module_olsr') |
|
231 |
ns3_module_olsr.register_types(module) |
|
232 |
||
233 |
try: |
|
234 |
import ns3_module_olsr__local |
|
235 |
except ImportError: |
|
236 |
pass |
|
237 |
else: |
|
238 |
ns3_module_olsr__local.register_types(module) |
|
239 |
||
240 |
root_module.end_section('ns3_module_olsr') |
|
241 |
root_module.begin_section('ns3_module_udp_echo') |
|
242 |
ns3_module_udp_echo.register_types(module) |
|
243 |
||
244 |
try: |
|
245 |
import ns3_module_udp_echo__local |
|
246 |
except ImportError: |
|
247 |
pass |
|
248 |
else: |
|
249 |
ns3_module_udp_echo__local.register_types(module) |
|
250 |
||
251 |
root_module.end_section('ns3_module_udp_echo') |
|
252 |
root_module.begin_section('ns3_module_helper') |
|
253 |
ns3_module_helper.register_types(module) |
|
254 |
||
255 |
try: |
|
256 |
import ns3_module_helper__local |
|
257 |
except ImportError: |
|
258 |
pass |
|
259 |
else: |
|
260 |
ns3_module_helper__local.register_types(module) |
|
261 |
||
262 |
root_module.end_section('ns3_module_helper') |
|
3731
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3574
diff
changeset
|
263 |
module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector') |
317f9dbccc2b
New pybindgen and new API scanning, brings support for comparison operators and + - * / numeric operators.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3574
diff
changeset
|
264 |
module.add_container('std::list< unsigned int >', 'unsigned int', container_type='list') |
3408 | 265 |
|
266 |
## Register a nested module for the namespace internal |
|
267 |
||
268 |
nested_module = module.add_cpp_namespace('internal') |
|
269 |
register_types_ns3_internal(nested_module) |
|
270 |
||
271 |
||
272 |
## Register a nested module for the namespace TimeStepPrecision |
|
273 |
||
274 |
nested_module = module.add_cpp_namespace('TimeStepPrecision') |
|
275 |
register_types_ns3_TimeStepPrecision(nested_module) |
|
276 |
||
277 |
||
278 |
## Register a nested module for the namespace Config |
|
279 |
||
280 |
nested_module = module.add_cpp_namespace('Config') |
|
281 |
register_types_ns3_Config(nested_module) |
|
282 |
||
283 |
||
284 |
## Register a nested module for the namespace olsr |
|
285 |
||
286 |
nested_module = module.add_cpp_namespace('olsr') |
|
287 |
register_types_ns3_olsr(nested_module) |
|
288 |
||
289 |
||
290 |
def register_types_ns3_internal(module): |
|
291 |
root_module = module.get_root() |
|
292 |
||
293 |
||
294 |
def register_types_ns3_TimeStepPrecision(module): |
|
295 |
root_module = module.get_root() |
|
296 |
||
297 |
||
298 |
def register_types_ns3_Config(module): |
|
299 |
root_module = module.get_root() |
|
300 |
||
3816
edd4928b2046
remove realtime public API.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
3731
diff
changeset
|
301 |
module.add_container('std::vector< std::string >', 'std::string', container_type='vector') |
3408 | 302 |
|
303 |
def register_types_ns3_olsr(module): |
|
304 |
root_module = module.get_root() |
|
305 |
||
306 |
||
307 |
def register_methods(root_module): |
|
308 |
root_module.begin_section('ns3_module_core') |
|
309 |
ns3_module_core.register_methods(root_module) |
|
310 |
||
311 |
try: |
|
312 |
import ns3_module_core__local |
|
313 |
except ImportError: |
|
314 |
pass |
|
315 |
else: |
|
316 |
ns3_module_core__local.register_methods(root_module) |
|
317 |
||
318 |
root_module.end_section('ns3_module_core') |
|
319 |
root_module.begin_section('ns3_module_simulator') |
|
320 |
ns3_module_simulator.register_methods(root_module) |
|
321 |
||
322 |
try: |
|
323 |
import ns3_module_simulator__local |
|
324 |
except ImportError: |
|
325 |
pass |
|
326 |
else: |
|
327 |
ns3_module_simulator__local.register_methods(root_module) |
|
328 |
||
329 |
root_module.end_section('ns3_module_simulator') |
|
330 |
root_module.begin_section('ns3_module_mobility') |
|
331 |
ns3_module_mobility.register_methods(root_module) |
|
332 |
||
333 |
try: |
|
334 |
import ns3_module_mobility__local |
|
335 |
except ImportError: |
|
336 |
pass |
|
337 |
else: |
|
338 |
ns3_module_mobility__local.register_methods(root_module) |
|
339 |
||
340 |
root_module.end_section('ns3_module_mobility') |
|
341 |
root_module.begin_section('ns3_module_common') |
|
342 |
ns3_module_common.register_methods(root_module) |
|
343 |
||
344 |
try: |
|
345 |
import ns3_module_common__local |
|
346 |
except ImportError: |
|
347 |
pass |
|
348 |
else: |
|
349 |
ns3_module_common__local.register_methods(root_module) |
|
350 |
||
351 |
root_module.end_section('ns3_module_common') |
|
352 |
root_module.begin_section('ns3_module_contrib') |
|
353 |
ns3_module_contrib.register_methods(root_module) |
|
354 |
||
355 |
try: |
|
356 |
import ns3_module_contrib__local |
|
357 |
except ImportError: |
|
358 |
pass |
|
359 |
else: |
|
360 |
ns3_module_contrib__local.register_methods(root_module) |
|
361 |
||
362 |
root_module.end_section('ns3_module_contrib') |
|
363 |
root_module.begin_section('ns3_module_node') |
|
364 |
ns3_module_node.register_methods(root_module) |
|
365 |
||
366 |
try: |
|
367 |
import ns3_module_node__local |
|
368 |
except ImportError: |
|
369 |
pass |
|
370 |
else: |
|
371 |
ns3_module_node__local.register_methods(root_module) |
|
372 |
||
373 |
root_module.end_section('ns3_module_node') |
|
374 |
root_module.begin_section('ns3_module_point_to_point') |
|
375 |
ns3_module_point_to_point.register_methods(root_module) |
|
376 |
||
377 |
try: |
|
378 |
import ns3_module_point_to_point__local |
|
379 |
except ImportError: |
|
380 |
pass |
|
381 |
else: |
|
382 |
ns3_module_point_to_point__local.register_methods(root_module) |
|
383 |
||
384 |
root_module.end_section('ns3_module_point_to_point') |
|
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
385 |
root_module.begin_section('ns3_module_stats') |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
386 |
ns3_module_stats.register_methods(root_module) |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
387 |
|
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
388 |
try: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
389 |
import ns3_module_stats__local |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
390 |
except ImportError: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
391 |
pass |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
392 |
else: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
393 |
ns3_module_stats__local.register_methods(root_module) |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
394 |
|
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
395 |
root_module.end_section('ns3_module_stats') |
3408 | 396 |
root_module.begin_section('ns3_module_internet_stack') |
397 |
ns3_module_internet_stack.register_methods(root_module) |
|
398 |
||
399 |
try: |
|
400 |
import ns3_module_internet_stack__local |
|
401 |
except ImportError: |
|
402 |
pass |
|
403 |
else: |
|
404 |
ns3_module_internet_stack__local.register_methods(root_module) |
|
405 |
||
406 |
root_module.end_section('ns3_module_internet_stack') |
|
407 |
root_module.begin_section('ns3_module_wifi') |
|
408 |
ns3_module_wifi.register_methods(root_module) |
|
409 |
||
410 |
try: |
|
411 |
import ns3_module_wifi__local |
|
412 |
except ImportError: |
|
413 |
pass |
|
414 |
else: |
|
415 |
ns3_module_wifi__local.register_methods(root_module) |
|
416 |
||
417 |
root_module.end_section('ns3_module_wifi') |
|
418 |
root_module.begin_section('ns3_module_csma') |
|
419 |
ns3_module_csma.register_methods(root_module) |
|
420 |
||
421 |
try: |
|
422 |
import ns3_module_csma__local |
|
423 |
except ImportError: |
|
424 |
pass |
|
425 |
else: |
|
426 |
ns3_module_csma__local.register_methods(root_module) |
|
427 |
||
428 |
root_module.end_section('ns3_module_csma') |
|
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
429 |
root_module.begin_section('ns3_module_emu') |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
430 |
ns3_module_emu.register_methods(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
431 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
432 |
try: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
433 |
import ns3_module_emu__local |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
434 |
except ImportError: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
435 |
pass |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
436 |
else: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
437 |
ns3_module_emu__local.register_methods(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
438 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
439 |
root_module.end_section('ns3_module_emu') |
3457 | 440 |
root_module.begin_section('ns3_module_bridge') |
441 |
ns3_module_bridge.register_methods(root_module) |
|
442 |
||
443 |
try: |
|
444 |
import ns3_module_bridge__local |
|
445 |
except ImportError: |
|
446 |
pass |
|
447 |
else: |
|
448 |
ns3_module_bridge__local.register_methods(root_module) |
|
449 |
||
450 |
root_module.end_section('ns3_module_bridge') |
|
3408 | 451 |
root_module.begin_section('ns3_module_packet_sink') |
452 |
ns3_module_packet_sink.register_methods(root_module) |
|
453 |
||
454 |
try: |
|
455 |
import ns3_module_packet_sink__local |
|
456 |
except ImportError: |
|
457 |
pass |
|
458 |
else: |
|
459 |
ns3_module_packet_sink__local.register_methods(root_module) |
|
460 |
||
461 |
root_module.end_section('ns3_module_packet_sink') |
|
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
462 |
root_module.begin_section('ns3_module_v4ping') |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
463 |
ns3_module_v4ping.register_methods(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
464 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
465 |
try: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
466 |
import ns3_module_v4ping__local |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
467 |
except ImportError: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
468 |
pass |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
469 |
else: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
470 |
ns3_module_v4ping__local.register_methods(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
471 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
472 |
root_module.end_section('ns3_module_v4ping') |
3408 | 473 |
root_module.begin_section('ns3_module_global_routing') |
474 |
ns3_module_global_routing.register_methods(root_module) |
|
475 |
||
476 |
try: |
|
477 |
import ns3_module_global_routing__local |
|
478 |
except ImportError: |
|
479 |
pass |
|
480 |
else: |
|
481 |
ns3_module_global_routing__local.register_methods(root_module) |
|
482 |
||
483 |
root_module.end_section('ns3_module_global_routing') |
|
484 |
root_module.begin_section('ns3_module_onoff') |
|
485 |
ns3_module_onoff.register_methods(root_module) |
|
486 |
||
487 |
try: |
|
488 |
import ns3_module_onoff__local |
|
489 |
except ImportError: |
|
490 |
pass |
|
491 |
else: |
|
492 |
ns3_module_onoff__local.register_methods(root_module) |
|
493 |
||
494 |
root_module.end_section('ns3_module_onoff') |
|
495 |
root_module.begin_section('ns3_module_olsr') |
|
496 |
ns3_module_olsr.register_methods(root_module) |
|
497 |
||
498 |
try: |
|
499 |
import ns3_module_olsr__local |
|
500 |
except ImportError: |
|
501 |
pass |
|
502 |
else: |
|
503 |
ns3_module_olsr__local.register_methods(root_module) |
|
504 |
||
505 |
root_module.end_section('ns3_module_olsr') |
|
506 |
root_module.begin_section('ns3_module_udp_echo') |
|
507 |
ns3_module_udp_echo.register_methods(root_module) |
|
508 |
||
509 |
try: |
|
510 |
import ns3_module_udp_echo__local |
|
511 |
except ImportError: |
|
512 |
pass |
|
513 |
else: |
|
514 |
ns3_module_udp_echo__local.register_methods(root_module) |
|
515 |
||
516 |
root_module.end_section('ns3_module_udp_echo') |
|
517 |
root_module.begin_section('ns3_module_helper') |
|
518 |
ns3_module_helper.register_methods(root_module) |
|
519 |
||
520 |
try: |
|
521 |
import ns3_module_helper__local |
|
522 |
except ImportError: |
|
523 |
pass |
|
524 |
else: |
|
525 |
ns3_module_helper__local.register_methods(root_module) |
|
526 |
||
527 |
root_module.end_section('ns3_module_helper') |
|
528 |
return |
|
529 |
||
530 |
def register_functions(root_module): |
|
531 |
module = root_module |
|
532 |
root_module.begin_section('ns3_module_core') |
|
533 |
ns3_module_core.register_functions(root_module) |
|
534 |
||
535 |
try: |
|
536 |
import ns3_module_core__local |
|
537 |
except ImportError: |
|
538 |
pass |
|
539 |
else: |
|
540 |
ns3_module_core__local.register_functions(root_module) |
|
541 |
||
542 |
root_module.end_section('ns3_module_core') |
|
543 |
root_module.begin_section('ns3_module_simulator') |
|
544 |
ns3_module_simulator.register_functions(root_module) |
|
545 |
||
546 |
try: |
|
547 |
import ns3_module_simulator__local |
|
548 |
except ImportError: |
|
549 |
pass |
|
550 |
else: |
|
551 |
ns3_module_simulator__local.register_functions(root_module) |
|
552 |
||
553 |
root_module.end_section('ns3_module_simulator') |
|
554 |
root_module.begin_section('ns3_module_mobility') |
|
555 |
ns3_module_mobility.register_functions(root_module) |
|
556 |
||
557 |
try: |
|
558 |
import ns3_module_mobility__local |
|
559 |
except ImportError: |
|
560 |
pass |
|
561 |
else: |
|
562 |
ns3_module_mobility__local.register_functions(root_module) |
|
563 |
||
564 |
root_module.end_section('ns3_module_mobility') |
|
565 |
root_module.begin_section('ns3_module_common') |
|
566 |
ns3_module_common.register_functions(root_module) |
|
567 |
||
568 |
try: |
|
569 |
import ns3_module_common__local |
|
570 |
except ImportError: |
|
571 |
pass |
|
572 |
else: |
|
573 |
ns3_module_common__local.register_functions(root_module) |
|
574 |
||
575 |
root_module.end_section('ns3_module_common') |
|
576 |
root_module.begin_section('ns3_module_contrib') |
|
577 |
ns3_module_contrib.register_functions(root_module) |
|
578 |
||
579 |
try: |
|
580 |
import ns3_module_contrib__local |
|
581 |
except ImportError: |
|
582 |
pass |
|
583 |
else: |
|
584 |
ns3_module_contrib__local.register_functions(root_module) |
|
585 |
||
586 |
root_module.end_section('ns3_module_contrib') |
|
587 |
root_module.begin_section('ns3_module_node') |
|
588 |
ns3_module_node.register_functions(root_module) |
|
589 |
||
590 |
try: |
|
591 |
import ns3_module_node__local |
|
592 |
except ImportError: |
|
593 |
pass |
|
594 |
else: |
|
595 |
ns3_module_node__local.register_functions(root_module) |
|
596 |
||
597 |
root_module.end_section('ns3_module_node') |
|
598 |
root_module.begin_section('ns3_module_point_to_point') |
|
599 |
ns3_module_point_to_point.register_functions(root_module) |
|
600 |
||
601 |
try: |
|
602 |
import ns3_module_point_to_point__local |
|
603 |
except ImportError: |
|
604 |
pass |
|
605 |
else: |
|
606 |
ns3_module_point_to_point__local.register_functions(root_module) |
|
607 |
||
608 |
root_module.end_section('ns3_module_point_to_point') |
|
3574
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
609 |
root_module.begin_section('ns3_module_stats') |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
610 |
ns3_module_stats.register_functions(root_module) |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
611 |
|
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
612 |
try: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
613 |
import ns3_module_stats__local |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
614 |
except ImportError: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
615 |
pass |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
616 |
else: |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
617 |
ns3_module_stats__local.register_functions(root_module) |
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
618 |
|
b6804efbe16b
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.
Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
parents:
3567
diff
changeset
|
619 |
root_module.end_section('ns3_module_stats') |
3408 | 620 |
root_module.begin_section('ns3_module_internet_stack') |
621 |
ns3_module_internet_stack.register_functions(root_module) |
|
622 |
||
623 |
try: |
|
624 |
import ns3_module_internet_stack__local |
|
625 |
except ImportError: |
|
626 |
pass |
|
627 |
else: |
|
628 |
ns3_module_internet_stack__local.register_functions(root_module) |
|
629 |
||
630 |
root_module.end_section('ns3_module_internet_stack') |
|
631 |
root_module.begin_section('ns3_module_wifi') |
|
632 |
ns3_module_wifi.register_functions(root_module) |
|
633 |
||
634 |
try: |
|
635 |
import ns3_module_wifi__local |
|
636 |
except ImportError: |
|
637 |
pass |
|
638 |
else: |
|
639 |
ns3_module_wifi__local.register_functions(root_module) |
|
640 |
||
641 |
root_module.end_section('ns3_module_wifi') |
|
642 |
root_module.begin_section('ns3_module_csma') |
|
643 |
ns3_module_csma.register_functions(root_module) |
|
644 |
||
645 |
try: |
|
646 |
import ns3_module_csma__local |
|
647 |
except ImportError: |
|
648 |
pass |
|
649 |
else: |
|
650 |
ns3_module_csma__local.register_functions(root_module) |
|
651 |
||
652 |
root_module.end_section('ns3_module_csma') |
|
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
653 |
root_module.begin_section('ns3_module_emu') |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
654 |
ns3_module_emu.register_functions(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
655 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
656 |
try: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
657 |
import ns3_module_emu__local |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
658 |
except ImportError: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
659 |
pass |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
660 |
else: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
661 |
ns3_module_emu__local.register_functions(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
662 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
663 |
root_module.end_section('ns3_module_emu') |
3457 | 664 |
root_module.begin_section('ns3_module_bridge') |
665 |
ns3_module_bridge.register_functions(root_module) |
|
666 |
||
667 |
try: |
|
668 |
import ns3_module_bridge__local |
|
669 |
except ImportError: |
|
670 |
pass |
|
671 |
else: |
|
672 |
ns3_module_bridge__local.register_functions(root_module) |
|
673 |
||
674 |
root_module.end_section('ns3_module_bridge') |
|
3408 | 675 |
root_module.begin_section('ns3_module_packet_sink') |
676 |
ns3_module_packet_sink.register_functions(root_module) |
|
677 |
||
678 |
try: |
|
679 |
import ns3_module_packet_sink__local |
|
680 |
except ImportError: |
|
681 |
pass |
|
682 |
else: |
|
683 |
ns3_module_packet_sink__local.register_functions(root_module) |
|
684 |
||
685 |
root_module.end_section('ns3_module_packet_sink') |
|
3842
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
686 |
root_module.begin_section('ns3_module_v4ping') |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
687 |
ns3_module_v4ping.register_functions(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
688 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
689 |
try: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
690 |
import ns3_module_v4ping__local |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
691 |
except ImportError: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
692 |
pass |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
693 |
else: |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
694 |
ns3_module_v4ping__local.register_functions(root_module) |
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
695 |
|
545ddf9398ed
apply patch for bug 294 (GetMulticastAddr) + emu device update + rescan
vincent@clarinet.u-strasbg.fr
parents:
3816
diff
changeset
|
696 |
root_module.end_section('ns3_module_v4ping') |
3408 | 697 |
root_module.begin_section('ns3_module_global_routing') |
698 |
ns3_module_global_routing.register_functions(root_module) |
|
699 |
||
700 |
try: |
|
701 |
import ns3_module_global_routing__local |
|
702 |
except ImportError: |
|
703 |
pass |
|
704 |
else: |
|
705 |
ns3_module_global_routing__local.register_functions(root_module) |
|
706 |
||
707 |
root_module.end_section('ns3_module_global_routing') |
|
708 |
root_module.begin_section('ns3_module_onoff') |
|
709 |
ns3_module_onoff.register_functions(root_module) |
|
710 |
||
711 |
try: |
|
712 |
import ns3_module_onoff__local |
|
713 |
except ImportError: |
|
714 |
pass |
|
715 |
else: |
|
716 |
ns3_module_onoff__local.register_functions(root_module) |
|
717 |
||
718 |
root_module.end_section('ns3_module_onoff') |
|
719 |
root_module.begin_section('ns3_module_olsr') |
|
720 |
ns3_module_olsr.register_functions(root_module) |
|
721 |
||
722 |
try: |
|
723 |
import ns3_module_olsr__local |
|
724 |
except ImportError: |
|
725 |
pass |
|
726 |
else: |
|
727 |
ns3_module_olsr__local.register_functions(root_module) |
|
728 |
||
729 |
root_module.end_section('ns3_module_olsr') |
|
730 |
root_module.begin_section('ns3_module_udp_echo') |
|
731 |
ns3_module_udp_echo.register_functions(root_module) |
|
732 |
||
733 |
try: |
|
734 |
import ns3_module_udp_echo__local |
|
735 |
except ImportError: |
|
736 |
pass |
|
737 |
else: |
|
738 |
ns3_module_udp_echo__local.register_functions(root_module) |
|
739 |
||
740 |
root_module.end_section('ns3_module_udp_echo') |
|
741 |
root_module.begin_section('ns3_module_helper') |
|
742 |
ns3_module_helper.register_functions(root_module) |
|
743 |
||
744 |
try: |
|
745 |
import ns3_module_helper__local |
|
746 |
except ImportError: |
|
747 |
pass |
|
748 |
else: |
|
749 |
ns3_module_helper__local.register_functions(root_module) |
|
750 |
||
751 |
root_module.end_section('ns3_module_helper') |
|
752 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module) |
|
753 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) |
|
754 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module) |
|
755 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) |
|
756 |
return |
|
757 |
||
758 |
def register_functions_ns3_internal(module, root_module): |
|
759 |
return |
|
760 |
||
761 |
def register_functions_ns3_TimeStepPrecision(module, root_module): |
|
762 |
return |
|
763 |
||
764 |
def register_functions_ns3_Config(module, root_module): |
|
765 |
return |
|
766 |
||
767 |
def register_functions_ns3_olsr(module, root_module): |
|
768 |
return |
|
769 |
||
770 |
def main(): |
|
771 |
out = FileCodeSink(sys.stdout) |
|
772 |
root_module = module_init() |
|
773 |
register_types(root_module) |
|
774 |
register_methods(root_module) |
|
775 |
register_functions(root_module) |
|
776 |
root_module.generate(out) |
|
777 |
||
778 |
if __name__ == '__main__': |
|
779 |
main() |
|
780 |