tomh@4474
|
1 |
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
|
gjc@3408
|
2 |
|
gjc@3408
|
3 |
def register_types(module):
|
gjc@3408
|
4 |
root_module = module.get_root()
|
gjc@3408
|
5 |
|
gjc@3408
|
6 |
## onoff-application.h: ns3::OnOffApplication [class]
|
gjc@3457
|
7 |
module.add_class('OnOffApplication', parent=root_module['ns3::Application'])
|
gjc@3408
|
8 |
|
gjc@3855
|
9 |
## Register a nested module for the namespace Config
|
gjc@3408
|
10 |
|
gjc@3855
|
11 |
nested_module = module.add_cpp_namespace('Config')
|
gjc@3855
|
12 |
register_types_ns3_Config(nested_module)
|
gjc@3408
|
13 |
|
gjc@3408
|
14 |
|
gjc@3408
|
15 |
## Register a nested module for the namespace TimeStepPrecision
|
gjc@3408
|
16 |
|
gjc@3408
|
17 |
nested_module = module.add_cpp_namespace('TimeStepPrecision')
|
gjc@3408
|
18 |
register_types_ns3_TimeStepPrecision(nested_module)
|
gjc@3408
|
19 |
|
gjc@3408
|
20 |
|
tomh@4474
|
21 |
## Register a nested module for the namespace addressUtils
|
tomh@4474
|
22 |
|
tomh@4474
|
23 |
nested_module = module.add_cpp_namespace('addressUtils')
|
tomh@4474
|
24 |
register_types_ns3_addressUtils(nested_module)
|
tomh@4474
|
25 |
|
tomh@4474
|
26 |
|
gjc@3855
|
27 |
## Register a nested module for the namespace internal
|
gjc@3408
|
28 |
|
gjc@3855
|
29 |
nested_module = module.add_cpp_namespace('internal')
|
gjc@3855
|
30 |
register_types_ns3_internal(nested_module)
|
gjc@3408
|
31 |
|
gjc@3408
|
32 |
|
gjc@3408
|
33 |
## Register a nested module for the namespace olsr
|
gjc@3408
|
34 |
|
gjc@3408
|
35 |
nested_module = module.add_cpp_namespace('olsr')
|
gjc@3408
|
36 |
register_types_ns3_olsr(nested_module)
|
gjc@3408
|
37 |
|
gjc@3408
|
38 |
|
gjc@3855
|
39 |
def register_types_ns3_Config(module):
|
gjc@3408
|
40 |
root_module = module.get_root()
|
gjc@3408
|
41 |
|
gjc@3408
|
42 |
|
gjc@3408
|
43 |
def register_types_ns3_TimeStepPrecision(module):
|
gjc@3408
|
44 |
root_module = module.get_root()
|
gjc@3408
|
45 |
|
gjc@3408
|
46 |
|
tomh@4474
|
47 |
def register_types_ns3_addressUtils(module):
|
tomh@4474
|
48 |
root_module = module.get_root()
|
tomh@4474
|
49 |
|
tomh@4474
|
50 |
|
gjc@3855
|
51 |
def register_types_ns3_internal(module):
|
gjc@3408
|
52 |
root_module = module.get_root()
|
gjc@3408
|
53 |
|
gjc@3408
|
54 |
|
gjc@3408
|
55 |
def register_types_ns3_olsr(module):
|
gjc@3408
|
56 |
root_module = module.get_root()
|
gjc@3408
|
57 |
|
gjc@3408
|
58 |
|
gjc@3408
|
59 |
def register_methods(root_module):
|
gjc@3408
|
60 |
register_Ns3OnOffApplication_methods(root_module, root_module['ns3::OnOffApplication'])
|
gjc@3408
|
61 |
return
|
gjc@3408
|
62 |
|
gjc@3408
|
63 |
def register_Ns3OnOffApplication_methods(root_module, cls):
|
mathieu@4241
|
64 |
## onoff-application.h: ns3::OnOffApplication::OnOffApplication(ns3::OnOffApplication const & arg0) [copy constructor]
|
mathieu@4241
|
65 |
cls.add_constructor([param('ns3::OnOffApplication const &', 'arg0')])
|
gjc@3408
|
66 |
## onoff-application.h: static ns3::TypeId ns3::OnOffApplication::GetTypeId() [member function]
|
gjc@3468
|
67 |
cls.add_method('GetTypeId',
|
gjc@3468
|
68 |
'ns3::TypeId',
|
gjc@3468
|
69 |
[],
|
gjc@3468
|
70 |
is_static=True)
|
gjc@3408
|
71 |
## onoff-application.h: ns3::OnOffApplication::OnOffApplication() [constructor]
|
gjc@3468
|
72 |
cls.add_constructor([])
|
gjc@3408
|
73 |
## onoff-application.h: void ns3::OnOffApplication::SetMaxBytes(uint32_t maxBytes) [member function]
|
gjc@3468
|
74 |
cls.add_method('SetMaxBytes',
|
gjc@3468
|
75 |
'void',
|
gjc@3468
|
76 |
[param('uint32_t', 'maxBytes')])
|
gjc@3408
|
77 |
## onoff-application.h: void ns3::OnOffApplication::DoDispose() [member function]
|
gjc@3468
|
78 |
cls.add_method('DoDispose',
|
gjc@3468
|
79 |
'void',
|
gjc@3468
|
80 |
[],
|
gjc@3468
|
81 |
visibility='protected', is_virtual=True)
|
gjc@3408
|
82 |
## onoff-application.h: void ns3::OnOffApplication::StartApplication() [member function]
|
gjc@3468
|
83 |
cls.add_method('StartApplication',
|
gjc@3468
|
84 |
'void',
|
gjc@3468
|
85 |
[],
|
gjc@3468
|
86 |
visibility='private', is_virtual=True)
|
gjc@3408
|
87 |
## onoff-application.h: void ns3::OnOffApplication::StopApplication() [member function]
|
gjc@3468
|
88 |
cls.add_method('StopApplication',
|
gjc@3468
|
89 |
'void',
|
gjc@3468
|
90 |
[],
|
gjc@3468
|
91 |
visibility='private', is_virtual=True)
|
gjc@3408
|
92 |
return
|
gjc@3408
|
93 |
|
gjc@3408
|
94 |
def register_functions(root_module):
|
gjc@3408
|
95 |
module = root_module
|
gjc@3855
|
96 |
register_functions_ns3_Config(module.get_submodule('Config'), root_module)
|
gjc@3855
|
97 |
register_functions_ns3_TimeStepPrecision(module.get_submodule('TimeStepPrecision'), root_module)
|
tomh@4474
|
98 |
register_functions_ns3_addressUtils(module.get_submodule('addressUtils'), root_module)
|
gjc@3408
|
99 |
register_functions_ns3_internal(module.get_submodule('internal'), root_module)
|
gjc@3408
|
100 |
register_functions_ns3_olsr(module.get_submodule('olsr'), root_module)
|
gjc@3408
|
101 |
return
|
gjc@3408
|
102 |
|
gjc@3855
|
103 |
def register_functions_ns3_Config(module, root_module):
|
gjc@3855
|
104 |
return
|
gjc@3855
|
105 |
|
gjc@3855
|
106 |
def register_functions_ns3_TimeStepPrecision(module, root_module):
|
gjc@3855
|
107 |
return
|
gjc@3855
|
108 |
|
tomh@4474
|
109 |
def register_functions_ns3_addressUtils(module, root_module):
|
tomh@4474
|
110 |
return
|
tomh@4474
|
111 |
|
gjc@3408
|
112 |
def register_functions_ns3_internal(module, root_module):
|
gjc@3408
|
113 |
return
|
gjc@3408
|
114 |
|
gjc@3408
|
115 |
def register_functions_ns3_olsr(module, root_module):
|
gjc@3408
|
116 |
return
|
gjc@3408
|
117 |
|