gjc@3468: from pybindgen import Module, FileCodeSink, param, retval, cppclass gjc@3408: gjc@3408: gjc@3408: import pybindgen.settings gjc@3408: import warnings gjc@3408: gjc@3408: class ErrorHandler(pybindgen.settings.ErrorHandler): gjc@3408: def handle_error(self, wrapper, exception, traceback_): gjc@3408: warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) gjc@3408: return True gjc@3408: pybindgen.settings.error_handler = ErrorHandler() gjc@3408: gjc@3408: gjc@3408: import sys gjc@3408: import ns3_module_core gjc@3408: import ns3_module_simulator gjc@3408: import ns3_module_mobility gjc@3408: import ns3_module_common gjc@3408: import ns3_module_contrib gjc@3408: import ns3_module_node gjc@3408: import ns3_module_point_to_point gjc@3574: import ns3_module_stats gjc@3408: import ns3_module_internet_stack gjc@3408: import ns3_module_wifi gjc@3408: import ns3_module_csma gjc@3457: import ns3_module_bridge gjc@3408: import ns3_module_packet_sink gjc@3408: import ns3_module_global_routing gjc@3408: import ns3_module_onoff gjc@3408: import ns3_module_olsr gjc@3408: import ns3_module_udp_echo gjc@3408: import ns3_module_helper gjc@3408: gjc@3408: def module_init(): gjc@3408: root_module = Module('ns3', cpp_namespace='::ns3') gjc@3408: return root_module gjc@3408: gjc@3408: def register_types(module): gjc@3408: root_module = module.get_root() gjc@3408: gjc@3408: root_module.begin_section('ns3_module_core') gjc@3408: ns3_module_core.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_core__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_core__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_core') gjc@3408: root_module.begin_section('ns3_module_simulator') gjc@3408: ns3_module_simulator.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_simulator__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_simulator__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_simulator') gjc@3408: root_module.begin_section('ns3_module_mobility') gjc@3408: ns3_module_mobility.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_mobility__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_mobility__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_mobility') gjc@3408: root_module.begin_section('ns3_module_common') gjc@3408: ns3_module_common.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_common__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_common__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_common') gjc@3408: root_module.begin_section('ns3_module_contrib') gjc@3408: ns3_module_contrib.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_contrib__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_contrib__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_contrib') gjc@3408: root_module.begin_section('ns3_module_node') gjc@3408: ns3_module_node.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_node__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_node__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_node') gjc@3408: root_module.begin_section('ns3_module_point_to_point') gjc@3408: ns3_module_point_to_point.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_point_to_point__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_point_to_point__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_point_to_point') gjc@3574: root_module.begin_section('ns3_module_stats') gjc@3574: ns3_module_stats.register_types(module) gjc@3574: gjc@3574: try: gjc@3574: import ns3_module_stats__local gjc@3574: except ImportError: gjc@3574: pass gjc@3574: else: gjc@3574: ns3_module_stats__local.register_types(module) gjc@3574: gjc@3574: root_module.end_section('ns3_module_stats') gjc@3408: root_module.begin_section('ns3_module_internet_stack') gjc@3408: ns3_module_internet_stack.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_internet_stack__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_internet_stack__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_internet_stack') gjc@3408: root_module.begin_section('ns3_module_wifi') gjc@3408: ns3_module_wifi.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_wifi__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_wifi__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_wifi') gjc@3408: root_module.begin_section('ns3_module_csma') gjc@3408: ns3_module_csma.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_csma__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_csma__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_csma') gjc@3457: root_module.begin_section('ns3_module_bridge') gjc@3457: ns3_module_bridge.register_types(module) gjc@3457: gjc@3457: try: gjc@3457: import ns3_module_bridge__local gjc@3457: except ImportError: gjc@3457: pass gjc@3457: else: gjc@3457: ns3_module_bridge__local.register_types(module) gjc@3457: gjc@3457: root_module.end_section('ns3_module_bridge') gjc@3408: root_module.begin_section('ns3_module_packet_sink') gjc@3408: ns3_module_packet_sink.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_packet_sink__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_packet_sink__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_packet_sink') gjc@3408: root_module.begin_section('ns3_module_global_routing') gjc@3408: ns3_module_global_routing.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_global_routing__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_global_routing__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_global_routing') gjc@3408: root_module.begin_section('ns3_module_onoff') gjc@3408: ns3_module_onoff.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_onoff__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_onoff__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_onoff') gjc@3408: root_module.begin_section('ns3_module_olsr') gjc@3408: ns3_module_olsr.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_olsr__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_olsr__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_olsr') gjc@3408: root_module.begin_section('ns3_module_udp_echo') gjc@3408: ns3_module_udp_echo.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_udp_echo__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_udp_echo__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_udp_echo') gjc@3408: root_module.begin_section('ns3_module_helper') gjc@3408: ns3_module_helper.register_types(module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_helper__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_helper__local.register_types(module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_helper') gjc@3731: module.add_container('std::vector< unsigned int >', 'unsigned int', container_type='vector') gjc@3731: module.add_container('std::list< unsigned int >', 'unsigned int', container_type='list') gjc@3408: gjc@3408: ## Register a nested module for the namespace internal gjc@3408: gjc@3408: nested_module = module.add_cpp_namespace('internal') gjc@3408: register_types_ns3_internal(nested_module) gjc@3408: gjc@3408: gjc@3408: ## Register a nested module for the namespace TimeStepPrecision gjc@3408: gjc@3408: nested_module = module.add_cpp_namespace('TimeStepPrecision') gjc@3408: register_types_ns3_TimeStepPrecision(nested_module) gjc@3408: gjc@3408: gjc@3408: ## Register a nested module for the namespace Config gjc@3408: gjc@3408: nested_module = module.add_cpp_namespace('Config') gjc@3408: register_types_ns3_Config(nested_module) gjc@3408: gjc@3408: gjc@3408: ## Register a nested module for the namespace olsr gjc@3408: gjc@3408: nested_module = module.add_cpp_namespace('olsr') gjc@3408: register_types_ns3_olsr(nested_module) gjc@3408: gjc@3408: gjc@3408: def register_types_ns3_internal(module): gjc@3408: root_module = module.get_root() gjc@3408: gjc@3408: gjc@3408: def register_types_ns3_TimeStepPrecision(module): gjc@3408: root_module = module.get_root() gjc@3408: gjc@3408: gjc@3408: def register_types_ns3_Config(module): gjc@3408: root_module = module.get_root() gjc@3408: mathieu@3816: module.add_container('std::vector< std::string >', 'std::string', container_type='vector') gjc@3408: gjc@3408: def register_types_ns3_olsr(module): gjc@3408: root_module = module.get_root() gjc@3408: gjc@3408: gjc@3408: def register_methods(root_module): gjc@3408: root_module.begin_section('ns3_module_core') gjc@3408: ns3_module_core.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_core__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_core__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_core') gjc@3408: root_module.begin_section('ns3_module_simulator') gjc@3408: ns3_module_simulator.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_simulator__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_simulator__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_simulator') gjc@3408: root_module.begin_section('ns3_module_mobility') gjc@3408: ns3_module_mobility.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_mobility__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_mobility__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_mobility') gjc@3408: root_module.begin_section('ns3_module_common') gjc@3408: ns3_module_common.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_common__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_common__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_common') gjc@3408: root_module.begin_section('ns3_module_contrib') gjc@3408: ns3_module_contrib.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_contrib__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_contrib__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_contrib') gjc@3408: root_module.begin_section('ns3_module_node') gjc@3408: ns3_module_node.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_node__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_node__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_node') gjc@3408: root_module.begin_section('ns3_module_point_to_point') gjc@3408: ns3_module_point_to_point.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_point_to_point__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_point_to_point__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_point_to_point') gjc@3574: root_module.begin_section('ns3_module_stats') gjc@3574: ns3_module_stats.register_methods(root_module) gjc@3574: gjc@3574: try: gjc@3574: import ns3_module_stats__local gjc@3574: except ImportError: gjc@3574: pass gjc@3574: else: gjc@3574: ns3_module_stats__local.register_methods(root_module) gjc@3574: gjc@3574: root_module.end_section('ns3_module_stats') gjc@3408: root_module.begin_section('ns3_module_internet_stack') gjc@3408: ns3_module_internet_stack.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_internet_stack__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_internet_stack__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_internet_stack') gjc@3408: root_module.begin_section('ns3_module_wifi') gjc@3408: ns3_module_wifi.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_wifi__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_wifi__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_wifi') gjc@3408: root_module.begin_section('ns3_module_csma') gjc@3408: ns3_module_csma.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_csma__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_csma__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_csma') gjc@3457: root_module.begin_section('ns3_module_bridge') gjc@3457: ns3_module_bridge.register_methods(root_module) gjc@3457: gjc@3457: try: gjc@3457: import ns3_module_bridge__local gjc@3457: except ImportError: gjc@3457: pass gjc@3457: else: gjc@3457: ns3_module_bridge__local.register_methods(root_module) gjc@3457: gjc@3457: root_module.end_section('ns3_module_bridge') gjc@3408: root_module.begin_section('ns3_module_packet_sink') gjc@3408: ns3_module_packet_sink.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_packet_sink__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_packet_sink__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_packet_sink') gjc@3408: root_module.begin_section('ns3_module_global_routing') gjc@3408: ns3_module_global_routing.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_global_routing__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_global_routing__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_global_routing') gjc@3408: root_module.begin_section('ns3_module_onoff') gjc@3408: ns3_module_onoff.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_onoff__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_onoff__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_onoff') gjc@3408: root_module.begin_section('ns3_module_olsr') gjc@3408: ns3_module_olsr.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_olsr__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_olsr__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_olsr') gjc@3408: root_module.begin_section('ns3_module_udp_echo') gjc@3408: ns3_module_udp_echo.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_udp_echo__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_udp_echo__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_udp_echo') gjc@3408: root_module.begin_section('ns3_module_helper') gjc@3408: ns3_module_helper.register_methods(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_helper__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_helper__local.register_methods(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_helper') gjc@3408: return gjc@3408: gjc@3408: def register_functions(root_module): gjc@3408: module = root_module gjc@3408: root_module.begin_section('ns3_module_core') gjc@3408: ns3_module_core.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_core__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_core__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_core') gjc@3408: root_module.begin_section('ns3_module_simulator') gjc@3408: ns3_module_simulator.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_simulator__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_simulator__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_simulator') gjc@3408: root_module.begin_section('ns3_module_mobility') gjc@3408: ns3_module_mobility.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_mobility__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_mobility__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_mobility') gjc@3408: root_module.begin_section('ns3_module_common') gjc@3408: ns3_module_common.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_common__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_common__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_common') gjc@3408: root_module.begin_section('ns3_module_contrib') gjc@3408: ns3_module_contrib.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_contrib__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_contrib__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_contrib') gjc@3408: root_module.begin_section('ns3_module_node') gjc@3408: ns3_module_node.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_node__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_node__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_node') gjc@3408: root_module.begin_section('ns3_module_point_to_point') gjc@3408: ns3_module_point_to_point.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_point_to_point__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_point_to_point__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_point_to_point') gjc@3574: root_module.begin_section('ns3_module_stats') gjc@3574: ns3_module_stats.register_functions(root_module) gjc@3574: gjc@3574: try: gjc@3574: import ns3_module_stats__local gjc@3574: except ImportError: gjc@3574: pass gjc@3574: else: gjc@3574: ns3_module_stats__local.register_functions(root_module) gjc@3574: gjc@3574: root_module.end_section('ns3_module_stats') gjc@3408: root_module.begin_section('ns3_module_internet_stack') gjc@3408: ns3_module_internet_stack.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_internet_stack__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_internet_stack__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_internet_stack') gjc@3408: root_module.begin_section('ns3_module_wifi') gjc@3408: ns3_module_wifi.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_wifi__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_wifi__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_wifi') gjc@3408: root_module.begin_section('ns3_module_csma') gjc@3408: ns3_module_csma.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_csma__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_csma__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_csma') gjc@3457: root_module.begin_section('ns3_module_bridge') gjc@3457: ns3_module_bridge.register_functions(root_module) gjc@3457: gjc@3457: try: gjc@3457: import ns3_module_bridge__local gjc@3457: except ImportError: gjc@3457: pass gjc@3457: else: gjc@3457: ns3_module_bridge__local.register_functions(root_module) gjc@3457: gjc@3457: root_module.end_section('ns3_module_bridge') gjc@3408: root_module.begin_section('ns3_module_packet_sink') gjc@3408: ns3_module_packet_sink.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_packet_sink__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_packet_sink__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_packet_sink') gjc@3408: root_module.begin_section('ns3_module_global_routing') gjc@3408: ns3_module_global_routing.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_global_routing__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_global_routing__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_global_routing') gjc@3408: root_module.begin_section('ns3_module_onoff') gjc@3408: ns3_module_onoff.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_onoff__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_onoff__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_onoff') gjc@3408: root_module.begin_section('ns3_module_olsr') gjc@3408: ns3_module_olsr.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_olsr__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_olsr__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_olsr') gjc@3408: root_module.begin_section('ns3_module_udp_echo') gjc@3408: ns3_module_udp_echo.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_udp_echo__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_udp_echo__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_udp_echo') gjc@3408: root_module.begin_section('ns3_module_helper') gjc@3408: ns3_module_helper.register_functions(root_module) gjc@3408: gjc@3408: try: gjc@3408: import ns3_module_helper__local gjc@3408: except ImportError: gjc@3408: pass gjc@3408: else: gjc@3408: ns3_module_helper__local.register_functions(root_module) gjc@3408: gjc@3408: root_module.end_section('ns3_module_helper') gjc@3408: register_functions_ns3_internal(module.get_submodule('internal'), root_module) gjc@3408: register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) gjc@3408: register_functions_ns3_Config(module.get_submodule('Config'), root_module) gjc@3408: register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) gjc@3408: return gjc@3408: gjc@3408: def register_functions_ns3_internal(module, root_module): gjc@3408: return gjc@3408: gjc@3408: def register_functions_ns3_TimeStepPrecision(module, root_module): gjc@3408: return gjc@3408: gjc@3408: def register_functions_ns3_Config(module, root_module): gjc@3408: return gjc@3408: gjc@3408: def register_functions_ns3_olsr(module, root_module): gjc@3408: return gjc@3408: gjc@3408: def main(): gjc@3408: out = FileCodeSink(sys.stdout) gjc@3408: root_module = module_init() gjc@3408: register_types(root_module) gjc@3408: register_methods(root_module) gjc@3408: register_functions(root_module) gjc@3408: root_module.generate(out) gjc@3408: gjc@3408: if __name__ == '__main__': gjc@3408: main() gjc@3408: