blob: d81a727cbd727e245dd9deacc3d0286dbe554149 [file] [log] [blame]
Alexander Afanasyev76b11572013-07-16 21:49:50 -07001import re
2import os
3import sys
4
5from pybindgen.typehandlers import base as typehandlers
6from pybindgen import ReturnValue, Parameter
7from pybindgen.cppmethod import CustomCppMethodWrapper, CustomCppConstructorWrapper
8from pybindgen.typehandlers.codesink import MemoryCodeSink
9from pybindgen.typehandlers import ctypeparser
10from pybindgen import cppclass, param, retval
11import warnings
12
13from pybindgen.typehandlers.base import CodeGenerationError
14
15def 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
36def post_register_types (root_module):
37 add_vector_defs (root_module)