Alexander Afanasyev | 76b1157 | 2013-07-16 21:49:50 -0700 | [diff] [blame] | 1 | import re |
| 2 | import os |
| 3 | import sys |
| 4 | |
| 5 | from pybindgen.typehandlers import base as typehandlers |
| 6 | from pybindgen import ReturnValue, Parameter |
| 7 | from pybindgen.cppmethod import CustomCppMethodWrapper, CustomCppConstructorWrapper |
| 8 | from pybindgen.typehandlers.codesink import MemoryCodeSink |
| 9 | from pybindgen.typehandlers import ctypeparser |
| 10 | from pybindgen import cppclass, param, retval |
| 11 | import warnings |
| 12 | |
| 13 | from pybindgen.typehandlers.base import CodeGenerationError |
| 14 | |
| 15 | def add_vector_defs (module): |
| 16 | # mod = module.get_submodule('ndn') |
| 17 | # nested_module = mod.add_cpp_namespace('error') |
| 18 | # nested_module.add_class ('Name') |
| 19 | |
| 20 | |
| 21 | # # module.add_class ('Name', |
| 22 | # # module.add_exception ('Error', foreign_cpp_namespace='ns3::ndn::error', message_rvalue='ns3::ndn::error::get_msg (%(EXC)s)') |
| 23 | # # module.add_exception ('Uri', foreign_cpp_namespace='ns3::ndn::error', message_rvalue='ns3::ndn::error::get_msg (%(EXC)s)') |
| 24 | # # module.add_exception ('StringTransform', foreign_cpp_namespace='ns3::ndn::error', message_rvalue='ns3::ndn::error::get_msg (%(EXC)s)') |
| 25 | # nested_module.add_exception ('Name', message_rvalue='fuck you') |
| 26 | # # message_rvalue='ns3::ndn::error::get_msg (%(EXC)s)') |
| 27 | # # module.add_exception ('Component', foreign_cpp_namespace='ns3::ndn::error::name', message_rvalue='ns3::ndn::error::get_msg (%(EXC)s)') |
| 28 | # # module.add_exception ('Exclude', foreign_cpp_namespace='ns3::ndn::error', message_rvalue='ns3::ndn::error::get_msg (%(EXC)s)') |
| 29 | # # module.add_exception ('KeyLocator', foreign_cpp_namespace='ns3::ndn::error', message_rvalue='ns3::ndn::error::get_msg (%(EXC)s)') |
| 30 | # # print dir(module) |
| 31 | # # module.add_container ('ns3::ndn::Blob', 'char', container_type='vector') |
| 32 | # # module.add_stl_container('ns3::ndn::Blob', 'char', 'vector', custom_name="Blob2") |
| 33 | pass |
| 34 | |
| 35 | |
| 36 | def post_register_types (root_module): |
| 37 | add_vector_defs (root_module) |