Alexander Afanasyev | 381dea0 | 2011-11-03 08:33:26 -0700 | [diff] [blame] | 1 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers |
| 2 | |
Alexander Afanasyev | 381dea0 | 2011-11-03 08:33:26 -0700 | [diff] [blame] | 3 | import pybindgen.settings |
| 4 | import warnings |
| 5 | |
Alexander Afanasyev | 381dea0 | 2011-11-03 08:33:26 -0700 | [diff] [blame] | 6 | |
| 7 | import sys |
| 8 | |
| 9 | def module_init(): |
Alexander Afanasyev | 6d98ac3 | 2012-06-06 13:01:48 -0700 | [diff] [blame] | 10 | root_module = Module('ns.ndnSIM', cpp_namespace='::ns3') |
Alexander Afanasyev | 381dea0 | 2011-11-03 08:33:26 -0700 | [diff] [blame] | 11 | return root_module |
| 12 | |
| 13 | def register_types(module): |
Alexander Afanasyev | eb7d530 | 2014-12-20 14:35:29 -0800 | [diff] [blame^] | 14 | return |
Alexander Afanasyev | a6cc910 | 2013-07-15 18:44:24 -0700 | [diff] [blame] | 15 | |
Alexander Afanasyev | 381dea0 | 2011-11-03 08:33:26 -0700 | [diff] [blame] | 16 | def register_methods(root_module): |
Alexander Afanasyev | cf6dc92 | 2012-08-10 16:55:27 -0700 | [diff] [blame] | 17 | return |
| 18 | |
Alexander Afanasyev | 381dea0 | 2011-11-03 08:33:26 -0700 | [diff] [blame] | 19 | def register_functions(root_module): |
Alexander Afanasyev | a6cc910 | 2013-07-15 18:44:24 -0700 | [diff] [blame] | 20 | return |
| 21 | |
Alexander Afanasyev | 381dea0 | 2011-11-03 08:33:26 -0700 | [diff] [blame] | 22 | def main(): |
| 23 | out = FileCodeSink(sys.stdout) |
| 24 | root_module = module_init() |
| 25 | register_types(root_module) |
| 26 | register_methods(root_module) |
| 27 | register_functions(root_module) |
| 28 | root_module.generate(out) |
| 29 | |
| 30 | if __name__ == '__main__': |
| 31 | main() |
| 32 | |