2009-05-28 21:38:49 -07:00
|
|
|
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
|
2008-07-08 10:43:58 -07:00
|
|
|
|
|
|
|
|
def register_types(module):
|
|
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
## onoff-application.h: ns3::OnOffApplication [class]
|
2008-07-14 11:42:49 +01:00
|
|
|
module.add_class('OnOffApplication', parent=root_module['ns3::Application'])
|
2008-07-08 10:43:58 -07:00
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
## Register a nested module for the namespace Config
|
2008-07-08 10:43:58 -07:00
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
nested_module = module.add_cpp_namespace('Config')
|
|
|
|
|
register_types_ns3_Config(nested_module)
|
2008-07-08 10:43:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
## Register a nested module for the namespace TimeStepPrecision
|
|
|
|
|
|
|
|
|
|
nested_module = module.add_cpp_namespace('TimeStepPrecision')
|
|
|
|
|
register_types_ns3_TimeStepPrecision(nested_module)
|
|
|
|
|
|
|
|
|
|
|
2009-05-28 21:38:49 -07:00
|
|
|
## Register a nested module for the namespace addressUtils
|
|
|
|
|
|
|
|
|
|
nested_module = module.add_cpp_namespace('addressUtils')
|
|
|
|
|
register_types_ns3_addressUtils(nested_module)
|
|
|
|
|
|
|
|
|
|
|
2009-09-16 15:03:25 +01:00
|
|
|
## Register a nested module for the namespace dot11s
|
|
|
|
|
|
|
|
|
|
nested_module = module.add_cpp_namespace('dot11s')
|
|
|
|
|
register_types_ns3_dot11s(nested_module)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Register a nested module for the namespace flame
|
|
|
|
|
|
|
|
|
|
nested_module = module.add_cpp_namespace('flame')
|
|
|
|
|
register_types_ns3_flame(nested_module)
|
|
|
|
|
|
|
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
## Register a nested module for the namespace internal
|
2008-07-08 10:43:58 -07:00
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
nested_module = module.add_cpp_namespace('internal')
|
|
|
|
|
register_types_ns3_internal(nested_module)
|
2008-07-08 10:43:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
## Register a nested module for the namespace olsr
|
|
|
|
|
|
|
|
|
|
nested_module = module.add_cpp_namespace('olsr')
|
|
|
|
|
register_types_ns3_olsr(nested_module)
|
|
|
|
|
|
|
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
def register_types_ns3_Config(module):
|
2008-07-08 10:43:58 -07:00
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register_types_ns3_TimeStepPrecision(module):
|
|
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
|
2009-05-28 21:38:49 -07:00
|
|
|
def register_types_ns3_addressUtils(module):
|
|
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
|
2009-09-16 15:03:25 +01:00
|
|
|
def register_types_ns3_dot11s(module):
|
|
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register_types_ns3_flame(module):
|
|
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
def register_types_ns3_internal(module):
|
2008-07-08 10:43:58 -07:00
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register_types_ns3_olsr(module):
|
|
|
|
|
root_module = module.get_root()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register_methods(root_module):
|
|
|
|
|
register_Ns3OnOffApplication_methods(root_module, root_module['ns3::OnOffApplication'])
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
def register_Ns3OnOffApplication_methods(root_module, cls):
|
2009-02-25 11:00:50 +01:00
|
|
|
## onoff-application.h: ns3::OnOffApplication::OnOffApplication(ns3::OnOffApplication const & arg0) [copy constructor]
|
|
|
|
|
cls.add_constructor([param('ns3::OnOffApplication const &', 'arg0')])
|
2009-08-31 11:31:32 +01:00
|
|
|
## onoff-application.h: ns3::OnOffApplication::OnOffApplication() [constructor]
|
|
|
|
|
cls.add_constructor([])
|
2008-07-08 10:43:58 -07:00
|
|
|
## onoff-application.h: static ns3::TypeId ns3::OnOffApplication::GetTypeId() [member function]
|
2008-07-21 15:30:15 +01:00
|
|
|
cls.add_method('GetTypeId',
|
|
|
|
|
'ns3::TypeId',
|
|
|
|
|
[],
|
|
|
|
|
is_static=True)
|
2008-07-08 10:43:58 -07:00
|
|
|
## onoff-application.h: void ns3::OnOffApplication::SetMaxBytes(uint32_t maxBytes) [member function]
|
2008-07-21 15:30:15 +01:00
|
|
|
cls.add_method('SetMaxBytes',
|
|
|
|
|
'void',
|
|
|
|
|
[param('uint32_t', 'maxBytes')])
|
2008-07-08 10:43:58 -07:00
|
|
|
## onoff-application.h: void ns3::OnOffApplication::DoDispose() [member function]
|
2008-07-21 15:30:15 +01:00
|
|
|
cls.add_method('DoDispose',
|
|
|
|
|
'void',
|
|
|
|
|
[],
|
|
|
|
|
visibility='protected', is_virtual=True)
|
2008-07-08 10:43:58 -07:00
|
|
|
## onoff-application.h: void ns3::OnOffApplication::StartApplication() [member function]
|
2008-07-21 15:30:15 +01:00
|
|
|
cls.add_method('StartApplication',
|
|
|
|
|
'void',
|
|
|
|
|
[],
|
|
|
|
|
visibility='private', is_virtual=True)
|
2008-07-08 10:43:58 -07:00
|
|
|
## onoff-application.h: void ns3::OnOffApplication::StopApplication() [member function]
|
2008-07-21 15:30:15 +01:00
|
|
|
cls.add_method('StopApplication',
|
|
|
|
|
'void',
|
|
|
|
|
[],
|
|
|
|
|
visibility='private', is_virtual=True)
|
2008-07-08 10:43:58 -07:00
|
|
|
return
|
|
|
|
|
|
|
|
|
|
def register_functions(root_module):
|
|
|
|
|
module = root_module
|
|
|
|
|
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
2008-11-08 15:00:28 +00:00
|
|
|
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
2009-05-28 21:38:49 -07:00
|
|
|
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
|
2009-09-16 15:03:25 +01:00
|
|
|
register_functions_ns3_dot11s(module.get_submodule('dot11s'), root_module)
|
|
|
|
|
register_functions_ns3_flame(module.get_submodule('flame'), root_module)
|
2008-11-08 15:00:28 +00:00
|
|
|
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
2008-07-08 10:43:58 -07:00
|
|
|
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
|
|
|
|
|
return
|
|
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
def register_functions_ns3_Config(module, root_module):
|
2008-07-08 10:43:58 -07:00
|
|
|
return
|
|
|
|
|
|
|
|
|
|
def register_functions_ns3_TimeStepPrecision(module, root_module):
|
|
|
|
|
return
|
|
|
|
|
|
2009-05-28 21:38:49 -07:00
|
|
|
def register_functions_ns3_addressUtils(module, root_module):
|
|
|
|
|
return
|
|
|
|
|
|
2009-09-16 15:03:25 +01:00
|
|
|
def register_functions_ns3_dot11s(module, root_module):
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
def register_functions_ns3_flame(module, root_module):
|
|
|
|
|
return
|
|
|
|
|
|
2008-11-08 15:00:28 +00:00
|
|
|
def register_functions_ns3_internal(module, root_module):
|
2008-07-08 10:43:58 -07:00
|
|
|
return
|
|
|
|
|
|
|
|
|
|
def register_functions_ns3_olsr(module, root_module):
|
|
|
|
|
return
|
|
|
|
|
|