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