tomh@4474: from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers gjc@3408: gjc@3408: def register_types(module): gjc@3408: root_module = module.get_root() gjc@3408: gjc@3408: ## udp-echo-client.h: ns3::UdpEchoClient [class] gjc@3457: module.add_class('UdpEchoClient', parent=root_module['ns3::Application']) gjc@3408: ## udp-echo-server.h: ns3::UdpEchoServer [class] gjc@3457: module.add_class('UdpEchoServer', parent=root_module['ns3::Application']) gjc@3408: gjc@3855: ## Register a nested module for the namespace Config gjc@3408: gjc@3855: nested_module = module.add_cpp_namespace('Config') gjc@3855: register_types_ns3_Config(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: tomh@4474: ## Register a nested module for the namespace addressUtils tomh@4474: tomh@4474: nested_module = module.add_cpp_namespace('addressUtils') tomh@4474: register_types_ns3_addressUtils(nested_module) tomh@4474: tomh@4474: gjc@3855: ## Register a nested module for the namespace internal gjc@3408: gjc@3855: nested_module = module.add_cpp_namespace('internal') gjc@3855: register_types_ns3_internal(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@3855: def register_types_ns3_Config(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: tomh@4474: def register_types_ns3_addressUtils(module): tomh@4474: root_module = module.get_root() tomh@4474: tomh@4474: gjc@3855: def register_types_ns3_internal(module): gjc@3408: root_module = module.get_root() gjc@3408: 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: register_Ns3UdpEchoClient_methods(root_module, root_module['ns3::UdpEchoClient']) gjc@3408: register_Ns3UdpEchoServer_methods(root_module, root_module['ns3::UdpEchoServer']) gjc@3408: return gjc@3408: gjc@3408: def register_Ns3UdpEchoClient_methods(root_module, cls): mathieu@4241: ## udp-echo-client.h: ns3::UdpEchoClient::UdpEchoClient(ns3::UdpEchoClient const & arg0) [copy constructor] mathieu@4241: cls.add_constructor([param('ns3::UdpEchoClient const &', 'arg0')]) gjc@3408: ## udp-echo-client.h: static ns3::TypeId ns3::UdpEchoClient::GetTypeId() [member function] gjc@3468: cls.add_method('GetTypeId', gjc@3468: 'ns3::TypeId', gjc@3468: [], gjc@3468: is_static=True) gjc@3408: ## udp-echo-client.h: ns3::UdpEchoClient::UdpEchoClient() [constructor] gjc@3468: cls.add_constructor([]) gjc@3408: ## udp-echo-client.h: void ns3::UdpEchoClient::SetRemote(ns3::Ipv4Address ip, uint16_t port) [member function] gjc@3468: cls.add_method('SetRemote', gjc@3468: 'void', gjc@3468: [param('ns3::Ipv4Address', 'ip'), param('uint16_t', 'port')]) tomh@4589: ## udp-echo-client.h: void ns3::UdpEchoClient::SetDataSize(uint32_t dataSize) [member function] tomh@4589: cls.add_method('SetDataSize', tomh@4589: 'void', tomh@4589: [param('uint32_t', 'dataSize')]) tomh@4589: ## udp-echo-client.h: uint32_t ns3::UdpEchoClient::GetDataSize() const [member function] tomh@4589: cls.add_method('GetDataSize', tomh@4589: 'uint32_t', tomh@4589: [], tomh@4589: is_const=True) tomh@4589: ## udp-echo-client.h: void ns3::UdpEchoClient::SetFill(std::string fill) [member function] tomh@4589: cls.add_method('SetFill', tomh@4589: 'void', tomh@4589: [param('std::string', 'fill')]) tomh@4589: ## udp-echo-client.h: void ns3::UdpEchoClient::SetFill(uint8_t fill, uint32_t dataSize) [member function] tomh@4589: cls.add_method('SetFill', tomh@4589: 'void', tomh@4589: [param('uint8_t', 'fill'), param('uint32_t', 'dataSize')]) tomh@4589: ## udp-echo-client.h: void ns3::UdpEchoClient::SetFill(uint8_t * fill, uint32_t fillSize, uint32_t dataSize) [member function] tomh@4589: cls.add_method('SetFill', tomh@4589: 'void', tomh@4589: [param('uint8_t *', 'fill'), param('uint32_t', 'fillSize'), param('uint32_t', 'dataSize')]) gjc@3408: ## udp-echo-client.h: void ns3::UdpEchoClient::DoDispose() [member function] gjc@3468: cls.add_method('DoDispose', gjc@3468: 'void', gjc@3468: [], gjc@3468: visibility='protected', is_virtual=True) gjc@3408: ## udp-echo-client.h: void ns3::UdpEchoClient::StartApplication() [member function] gjc@3468: cls.add_method('StartApplication', gjc@3468: 'void', gjc@3468: [], gjc@3468: visibility='private', is_virtual=True) gjc@3408: ## udp-echo-client.h: void ns3::UdpEchoClient::StopApplication() [member function] gjc@3468: cls.add_method('StopApplication', gjc@3468: 'void', gjc@3468: [], gjc@3468: visibility='private', is_virtual=True) gjc@3408: return gjc@3408: gjc@3408: def register_Ns3UdpEchoServer_methods(root_module, cls): mathieu@4241: ## udp-echo-server.h: ns3::UdpEchoServer::UdpEchoServer(ns3::UdpEchoServer const & arg0) [copy constructor] mathieu@4241: cls.add_constructor([param('ns3::UdpEchoServer const &', 'arg0')]) gjc@3408: ## udp-echo-server.h: static ns3::TypeId ns3::UdpEchoServer::GetTypeId() [member function] gjc@3468: cls.add_method('GetTypeId', gjc@3468: 'ns3::TypeId', gjc@3468: [], gjc@3468: is_static=True) gjc@3408: ## udp-echo-server.h: ns3::UdpEchoServer::UdpEchoServer() [constructor] gjc@3468: cls.add_constructor([]) gjc@3408: ## udp-echo-server.h: void ns3::UdpEchoServer::DoDispose() [member function] gjc@3468: cls.add_method('DoDispose', gjc@3468: 'void', gjc@3468: [], gjc@3468: visibility='protected', is_virtual=True) gjc@3408: ## udp-echo-server.h: void ns3::UdpEchoServer::StartApplication() [member function] gjc@3468: cls.add_method('StartApplication', gjc@3468: 'void', gjc@3468: [], gjc@3468: visibility='private', is_virtual=True) gjc@3408: ## udp-echo-server.h: void ns3::UdpEchoServer::StopApplication() [member function] gjc@3468: cls.add_method('StopApplication', gjc@3468: 'void', gjc@3468: [], gjc@3468: visibility='private', is_virtual=True) gjc@3408: return gjc@3408: gjc@3408: def register_functions(root_module): gjc@3408: module = root_module gjc@3855: register_functions_ns3_Config(module.get_submodule('Config'), root_module) gjc@3408: register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module) tomh@4474: register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module) gjc@3855: register_functions_ns3_internal(module.get_submodule('internal'), root_module) gjc@3408: register_functions_ns3_olsr(module.get_submodule('olsr'), root_module) gjc@3408: return gjc@3408: gjc@3855: def register_functions_ns3_Config(module, root_module): gjc@3855: return gjc@3855: gjc@3855: def register_functions_ns3_TimeStepPrecision(module, root_module): gjc@3855: return gjc@3855: tomh@4474: def register_functions_ns3_addressUtils(module, root_module): tomh@4474: return tomh@4474: gjc@3408: def register_functions_ns3_internal(module, root_module): gjc@3408: return gjc@3408: gjc@3408: def register_functions_ns3_olsr(module, root_module): gjc@3408: return gjc@3408: