1 """generates Py++ code from the user data"""
2
3 CODE_TEMPLATE = \
4 """
5 import os
6 from pyplusplus import module_builder
7
8 #Creating an instance of class that will help you to expose your declarations
9 mb = module_builder.module_builder_t( [r"%(file_path)s"]
10 , gccxml_path=r"%(gccxml_path)s"
11 , working_directory=r"%(working_dir)s"
12 , include_paths=%(include_paths)s
13 , define_symbols=%(define_symbols)s )
14
15
16 #Well, don't you want to see what is going on?
17 mb.print_declarations()
18
19 #Creating code creator. After this step you should not modify/customize declarations.
20 mb.build_code_creator( module_name='pyplusplus' )
21
22 #Writing code to file.
23 mb.write_module( './bindings.cpp' )
24 """
25
27 """code generator that creates Py++ code"""
28 - def __init__( self
29 , parser_configuration
30 , source_file ):
34
44