pygccxml-commit Mailing List for C++ Python language bindings (Page 82)
Brought to you by:
mbaas,
roman_yakovenko
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(190) |
Apr
(166) |
May
(170) |
Jun
(75) |
Jul
(105) |
Aug
(131) |
Sep
(99) |
Oct
(84) |
Nov
(67) |
Dec
(54) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(66) |
Feb
(49) |
Mar
(25) |
Apr
(62) |
May
(21) |
Jun
(34) |
Jul
(9) |
Aug
(21) |
Sep
(5) |
Oct
|
Nov
(63) |
Dec
(34) |
2008 |
Jan
(10) |
Feb
(42) |
Mar
(26) |
Apr
(25) |
May
(6) |
Jun
(40) |
Jul
(18) |
Aug
(29) |
Sep
(6) |
Oct
(32) |
Nov
(14) |
Dec
(56) |
2009 |
Jan
(127) |
Feb
(52) |
Mar
(2) |
Apr
(10) |
May
(29) |
Jun
(3) |
Jul
|
Aug
(16) |
Sep
(4) |
Oct
(11) |
Nov
(8) |
Dec
(14) |
2010 |
Jan
(31) |
Feb
(1) |
Mar
(7) |
Apr
(9) |
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(8) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Matthias B. <mb...@us...> - 2006-03-22 10:42:40
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2937 Modified Files: calldef.py Log Message: 1) Refined some doc strings. 2) Added specialized __str__() methods to member calldefs and free calldefs Index: calldef.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/calldef.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** calldef.py 18 Dec 2005 06:36:58 -0000 1.18 --- calldef.py 22 Mar 2006 10:42:37 -0000 1.19 *************** *** 44,47 **** --- 44,53 ---- self._type = type + def __str__(self): + if self.default_value==None: + return "%s %s"%(self.type, self.name) + else: + return "%s %s=%s"%(self.type, self.name, self.default_value) + def __eq__(self, other): if not isinstance( other, self.__class__ ): *************** *** 66,70 **** self._name = name name = property( _get_name, _set_name ! , doc="name of argument" ) def _get_default_value(self): --- 72,77 ---- self._name = name name = property( _get_name, _set_name ! , doc="""Argument name. ! @type: str""" ) def _get_default_value(self): *************** *** 73,77 **** self._default_value = default_value default_value = property( _get_default_value, _set_default_value ! , doc="argument default value, could be None") def _get_type(self): --- 80,85 ---- self._default_value = default_value default_value = property( _get_default_value, _set_default_value ! , doc="""Argument's default value or None. ! @type: str""") def _get_type(self): *************** *** 80,84 **** self._type = type type = property( _get_type, _set_type ! , doc="argument L{type<type_t>}") class calldef_t( declaration.declaration_t ): --- 88,93 ---- self._type = type type = property( _get_type, _set_type ! , doc="""The type of the argument. ! @type: L{type_t}""") class calldef_t( declaration.declaration_t ): *************** *** 126,130 **** self._arguments = arguments arguments = property( _get_arguments, _set_arguments ! , doc="list of L{arguments<argument_t>}") def _get_exceptions(self): --- 135,140 ---- self._arguments = arguments arguments = property( _get_arguments, _set_arguments ! , doc="""The argument list. ! @type: list of L{argument_t}""") def _get_exceptions(self): *************** *** 133,137 **** self._exceptions = exceptions exceptions = property( _get_exceptions, _set_exceptions ! , doc="list of L{exceptions<declaration_t>}") def _get_return_type(self): --- 143,148 ---- self._exceptions = exceptions exceptions = property( _get_exceptions, _set_exceptions ! , doc="""The list of exceptions. ! @type: list of L{declaration_t}""") def _get_return_type(self): *************** *** 140,144 **** self._return_type = return_type return_type = property( _get_return_type, _set_return_type ! , doc='"callable" return L{type<type_t>}') def _get_overloads(self): --- 151,157 ---- self._return_type = return_type return_type = property( _get_return_type, _set_return_type ! , doc='''The type of the return value of the "callable" or None (constructors). ! @type: L{type_t} ! ''') def _get_overloads(self): *************** *** 157,161 **** return overloaded_funcs[:index] + overloaded_funcs[index+1:] overloads = property( _get_overloads ! , doc="""returns list of all L{"callable"'s<calldef_t>} with the same name within same scope""" ) def _get_has_extern(self): --- 170,175 ---- return overloaded_funcs[:index] + overloaded_funcs[index+1:] overloads = property( _get_overloads ! , doc="""A list of overloaded "callables" (i.e. other callables with the same name within the same scope. ! @type: list of L{calldef_t}""" ) def _get_has_extern(self): *************** *** 163,167 **** def _set_has_extern(self, has_extern): self._has_extern = has_extern ! has_extern = property( _get_has_extern, _set_has_extern ) #Second level in hierarchy of calldef --- 177,184 ---- def _set_has_extern(self, has_extern): self._has_extern = has_extern ! has_extern = property( _get_has_extern, _set_has_extern, ! doc="""Was this callable declared as "extern"? ! @type: bool ! """) #Second level in hierarchy of calldef *************** *** 174,177 **** --- 191,217 ---- self._has_static = has_static + def __str__(self): + # Get the full name of the calldef... + name = algorithm.full_name(self) + if name[:2]=="::": + name = name[2:] + # Add the arguments... + args = map(lambda a: str(a), self.arguments) + res = "%s(%s)"%(name, ", ".join(args)) + # Add the return type... + if self.return_type!=None: + res = "%s %s"%(self.return_type, res) + # const? + if self.has_const: + res += " const" + # static? + if self.has_static: + res = "static "+res + # Append the declaration class + cls = self.__class__.__name__ + if cls[-2:]=="_t": + cls = cls[:-2] + return "%s [%s]"%(res, cls) + def _get__cmp__call_items(self): return [ self.virtuality, self.has_static, self.has_const ] *************** *** 190,199 **** self._virtuality = virtuality virtuality = property( _get_virtuality, _set_virtuality ! , doc="""describes "callable" L{virtuality type<VIRTUALITY_TYPES>}""") def _get_access_type(self): return self.parent.find_out_member_access_type( self ) access_type = property( _get_access_type ! , doc="""returns callable L{access type<ACCESS_TYPES>}""") def _get_has_const(self): --- 230,241 ---- self._virtuality = virtuality virtuality = property( _get_virtuality, _set_virtuality ! , doc="""Describes the "virtuality" of the member (as defined by the string constants in the class L{VIRTUALITY_TYPES}). ! @type: str""") def _get_access_type(self): return self.parent.find_out_member_access_type( self ) access_type = property( _get_access_type ! , doc="""Return the access type of the member (as defined by the string constants in the class L{ACCESS_TYPES}. ! @type: str""") def _get_has_const(self): *************** *** 202,206 **** self._has_const = has_const has_const = property( _get_has_const, _set_has_const ! , doc="""describes, whether "callable has const modifier or not""") def _get_has_static(self): --- 244,248 ---- self._has_const = has_const has_const = property( _get_has_const, _set_has_const ! , doc="""describes, whether "callable" has const modifier or not""") def _get_has_static(self): *************** *** 209,213 **** self._has_static = has_static has_static = property( _get_has_static, _set_has_static ! , doc="""describes, whether "callable has static modifier or not""") def function_type(self): --- 251,255 ---- self._has_static = has_static has_static = property( _get_has_static, _set_has_static ! , doc="""describes, whether "callable" has static modifier or not""") def function_type(self): *************** *** 231,234 **** --- 273,296 ---- calldef_t.__init__( self, *args, **keywords ) + def __str__(self): + # Get the full name of the calldef... + name = algorithm.full_name(self) + if name[:2]=="::": + name = name[2:] + # Add the arguments... + args = map(lambda a: str(a), self.arguments) + res = "%s(%s)"%(name, ", ".join(args)) + # Add the return type... + if self.return_type!=None: + res = "%s %s"%(self.return_type, res) + # extern? + if self.has_extern: + res = "extern "+res + # Append the declaration class + cls = self.__class__.__name__ + if cls[-2:]=="_t": + cls = cls[:-2] + return "%s [%s]"%(res, cls) + def _get__cmp__call_items(self): return [] *************** *** 259,262 **** --- 321,325 ---- member_calldef_t.__init__( self, *args, **keywords ) + class constructor_t( member_calldef_t ): """describes constructor declaration""" |
From: Matthias B. <mb...@us...> - 2006-03-22 10:40:15
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1371 Modified Files: cpptypes.py Log Message: Added a __str__ method to types_t Index: cpptypes.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/cpptypes.py,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** cpptypes.py 8 Mar 2006 08:46:10 -0000 1.24 --- cpptypes.py 22 Mar 2006 10:40:13 -0000 1.25 *************** *** 13,16 **** --- 13,22 ---- object.__init__( self ) + def __str__(self): + res = self.decl_string + if res[:2]=="::": + res = res[2:] + return res + def __eq__(self, other): if not isinstance( other, type_t ): |
From: Matthias B. <mb...@us...> - 2006-03-22 10:39:15
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1081 Modified Files: class_declaration.py Log Message: Added a specialized __str__ method Index: class_declaration.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/class_declaration.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** class_declaration.py 8 Mar 2006 08:46:09 -0000 1.19 --- class_declaration.py 22 Mar 2006 10:39:12 -0000 1.20 *************** *** 98,101 **** --- 98,107 ---- self._protected_members = [] + def __str__(self): + name = algorithm.full_name(self) + if name[:2]=="::": + name = name[2:] + return "%s [%s]"%(name, self.class_type) + def _get__cmp__scope_items(self): return [ self.class_type |
From: Matthias B. <mb...@us...> - 2006-03-22 10:38:31
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv612 Modified Files: namespace.py Log Message: Added a specialized __str__ method Index: namespace.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/namespace.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** namespace.py 2 Mar 2006 05:55:39 -0000 1.9 --- namespace.py 22 Mar 2006 10:38:29 -0000 1.10 *************** *** 9,12 **** --- 9,13 ---- import declaration import scopedef + import algorithm class namespace_t( scopedef.scopedef_t ): *************** *** 21,24 **** --- 22,31 ---- self._declarations = declarations # list of all declarations belongs to this namespace + def __str__(self): + name = algorithm.full_name(self) + if name!="::" and name[:2]=="::": + name = name[2:] + return "%s [namespace]"%name + def _get__cmp__scope_items(self): return [ self._sorted_list( self.declarations ) ] *************** *** 49,51 **** #add more comment about this. #if not keep_parent: ! # decl.parent=None \ No newline at end of file --- 56,58 ---- #add more comment about this. #if not keep_parent: ! # decl.parent=None |
From: Matthias B. <mb...@us...> - 2006-03-22 10:37:50
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32651 Modified Files: declaration.py Log Message: Added a default __str__() method for all declarations which is used in case there is no more specific version in a derived class Index: declaration.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/declaration.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** declaration.py 8 Mar 2006 08:46:10 -0000 1.19 --- declaration.py 22 Mar 2006 10:37:47 -0000 1.20 *************** *** 79,82 **** --- 79,102 ---- self._mangled = mangled + def __str__(self): + """Default __str__ method. + + This version just returns the decl_string and the class. + Derived classes may override this method to provide more detailed + information. + + A __str__ method for a declaration should always provide enough + information so that it uniquely identifies the declaration and + the user is able to find the declaration in his source code. + """ + name = self.decl_string + if name[:2]=="::": + name = name[2:] + # Append the declaration class + cls = self.__class__.__name__ + if cls[-2:]=="_t": + cls = cls[:-2] + return "%s [%s]"%(name, cls) + def _sorted_list( some_list ): some_list.sort() |
From: Roman <rom...@us...> - 2006-03-22 08:06:11
|
Update of /cvsroot/pygccxml/source/pyplusplus/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15169/pyplusplus/gui Modified Files: ui.py wizard.py Log Message: fixing UI & wizard adding __str__ to call policies Index: ui.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/gui/ui.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** ui.py 22 Mar 2006 06:35:41 -0000 1.20 --- ui.py 22 Mar 2006 08:05:35 -0000 1.21 *************** *** 292,297 **** config.include_paths.append( os.path.split( header_file )[0] ) config.working_directory = os.path.split( header_file )[0] ! w = wizard.wizard_t( config, header_file, wizard.FILTER_TYPE.FROM_FILE_AND_DIR ) ! self._generated_code.set_generated_code( w.code_advanced() ) def _create_xml( self ): --- 292,297 ---- config.include_paths.append( os.path.split( header_file )[0] ) config.working_directory = os.path.split( header_file )[0] ! w = wizard.wizard_t( config, header_file ) ! self._generated_code.set_generated_code( w.create_code() ) def _create_xml( self ): Index: wizard.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/gui/wizard.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wizard.py 24 Jan 2006 05:46:29 -0000 1.2 --- wizard.py 22 Mar 2006 08:05:35 -0000 1.3 *************** *** 1,12 **** ! _ADVANCED_TEMPLATE_ = \ """ import os from pygccxml import parser ! from pygccxml import declarations ! from pyplusplus import code_creators ! from pyplusplus import module_creator ! from pyplusplus import file_writers ! #Step 1. Configurate GCC-XML parser parser_configuration = parser.config_t( #path to GCC-XML binary --- 1,10 ---- ! CODE_TEMPLATE = \ """ import os from pygccxml import parser ! from pyplusplus import module_builder ! #Configurating GCC-XML parser ! #Basically you should copy here your makefile configuration parser_configuration = parser.config_t( #path to GCC-XML binary *************** *** 14,150 **** , working_directory=r"%(working_dir)s" , include_paths=%(include_paths)s ! , define_symbols=%(define_symbols)s ! , undefine_symbols=%(undefine_symbols)s ) ! ! #Step 2. Create project_reader_t or source_reader_t class instance ! #Later, these instance will be used to read all declarations from source files. ! #more information about project_reader_t or source_reader_t you can find in ! #pygccxml project documentation. ! project_reader = parser.project_reader_t( parser_configuration ) ! ! #project_reader_t is able to read declarations from different sources: ! # regular source files ! # GCC-XML created files, if you generate them once you will not pay for ! # compilation process ! # string or text, that contains valid C++ code. ! #You do not have to create file_configuration_t instance for regular source ! #files, you can pass them as is ( path(string) to file ). ! file_configuration = parser.file_configuration_t( ! r"%(file_path)s" ! , content_type=parser.CONTENT_TYPE.STANDARD_SOURCE_FILE ) ! ! #Step 3. Read all declarations from source files. As input read_files takes a list ! #that contains file_configuration_t instances and\or strings( paths to files ). ! declarations_all = project_reader.read_files( [ file_configuration ] ) ! ! #Step 4. Decide what declarations you want to export. This step is very ! #important, because GCC-XML reads all declarations found in your file and files ! #included from it. You can filter declarations by phisical(files or directories) ! #or logical (namespaces ) locations. Also you can create custom filter. ! to_be_exported = declarations.filtering.by_location( declarations_all, [file_configuration.data] ) ! ! #Step 5. Now, after you work so hard, it is the time to give pyplusplus to work. ! #This is the step, where pyplusplus creates "code creators tree". During this ! #step for every declaration will be created one or more code creators. ! extmodule = module_creator.create( decls=to_be_exported, module_name="pyplusplus", recursive=False ) ! ! #Step 6. Customization time. Nobody is perfect, pyplusplus too. No it is the time ! #to customize yet generated code. During this step you can change almost every ! #piece of code, that is going to be generated. In my case I add user defined ! #directories, thus allowing pyplusplus to generate nice( shorter ) include ! #directives. ! extmodule.user_defined_directories.extend( parser_configuration.include_paths ) ! extmodule.license = "//Boost Software License - Version 1.0 - August 17th, 2003" ! ! #Just printing the code ! print extmodule.create() ! #Step 6. To write all code into files. ! file_writers.write_file( extmodule, 'bindings.cpp' ) ! #It is also possible to split extention module source code into multiple files. ! #You can uncomment next line and to see what will happen ! #file_writers.write_multiple_files( extmodule, '.' ) ! print 'done' ! """ ! _SIMPLE_TEMPLATE_ = \ ! """ ! import os ! from pygccxml import parser ! from pygccxml import declarations ! from pyplusplus import code_creators ! from pyplusplus import module_creator ! from pyplusplus import file_writers ! #configurating parser ! parser_configuration = parser.config_t( ! #path to GCC-XML binary ! gccxml_path=r"%(gccxml_path)s" ! , working_directory=r"%(working_dir)s" ! , include_paths=%(include_paths)s ! , define_symbols=%(define_symbols)s ! , undefine_symbols=%(undefine_symbols)s ) - #reading all declarations - decls_all = parser.parse( [r"%(file_path)s"], parser_configuration ) - #filtering declarations - decls = declarations.filtering.by_location( decls_all, [parser_configuration.working_directory] ) - #creating code creators tree - extmodule = module_creator.create( decls=decls, module_name="pyplusplus",recursive=False ) - #customazing extmodule - extmodule.license = "//Boost Software License - Version 1.0 - August 17th, 2003" - extmodule.user_defined_directories.append( parser_configuration.working_directory ) - print extmodule.create() - #writing extmodule to single file - file_writers.write_file( extmodule, 'bindings.cpp' ) - print 'done' """ - - class FILTER_TYPE: - FROM_FILE_ONLY = "all declarations from header" - FROM_FILE_AND_DIR = "all declarations from header and it's directory" - FROM_NAMESPACE = "all declarations from namespace" - class wizard_t( object ): def __init__( self , parser_configuration ! , source_file ! , filter_type ! , namespace_name=None): ! global _ADVANCED_TEMPLATE_ ! global _SIMPLE_TEMPLATE_ object.__init__( self ) - self._advanced_template = _ADVANCED_TEMPLATE_ - self._simple_template = _SIMPLE_TEMPLATE_ self._parser_configuration = parser_configuration self._source_file = source_file - self._filter_type = filter_type - self._namespace_name = namespace_name - if not self._namespace_name: - self._namespace_name = "" ! def code_advanced( self ): ! return self._advanced_template % { ! 'gccxml_path' : self._parser_configuration.gccxml_path ! , 'working_dir' : self._parser_configuration.working_directory ! , 'include_paths' : `self._parser_configuration.include_paths` ! , 'define_symbols' : `self._parser_configuration.define_symbols` ! , 'undefine_symbols' : `self._parser_configuration.undefine_symbols` ! , "file_path" : self._source_file ! , "filter_type" : self._filter_type ! , "namespace_name" : self._namespace_name ! } ! ! def code_simple( self ): ! return self._simple_template % { 'gccxml_path' : self._parser_configuration.gccxml_path , 'working_dir' : self._parser_configuration.working_directory , 'include_paths' : `self._parser_configuration.include_paths` , 'define_symbols' : `self._parser_configuration.define_symbols` - , 'undefine_symbols' : `self._parser_configuration.undefine_symbols` , "file_path" : self._source_file - , "namespace_name" : self._namespace_name } --- 12,47 ---- , working_directory=r"%(working_dir)s" , include_paths=%(include_paths)s ! , define_symbols=%(define_symbols)s ) ! #Creating an instance of class that will help you to expose your declarations ! mb = module_builder.module_builder_t( [r"%(file_path)s"], parser_configuration ) ! #Well, don't you want to see what is going on? ! mb.print_declarations() ! #Creating code creator. After this step you should not modify/customize declarations. ! mb.build_code_creator( module_name='pyplusplus' ) ! #Writing code to file. ! mb.write_module( './bindings.cpp' ) """ class wizard_t( object ): def __init__( self , parser_configuration ! , source_file ): object.__init__( self ) self._parser_configuration = parser_configuration self._source_file = source_file ! def create_code( self ): ! global CODE_TEMPLATE ! return CODE_TEMPLATE % { 'gccxml_path' : self._parser_configuration.gccxml_path , 'working_dir' : self._parser_configuration.working_directory , 'include_paths' : `self._parser_configuration.include_paths` , 'define_symbols' : `self._parser_configuration.define_symbols` , "file_path" : self._source_file } |
From: Roman <rom...@us...> - 2006-03-22 08:06:10
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15169/pygccxml/declarations Modified Files: decl_printer.py Log Message: fixing UI & wizard adding __str__ to call policies Index: decl_printer.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/decl_printer.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** decl_printer.py 6 Mar 2006 05:00:32 -0000 1.1 --- decl_printer.py 22 Mar 2006 08:05:35 -0000 1.2 *************** *** 154,160 **** self.print_decl_header() curr_level = self.level + 1 ! self.writer( ' ' * curr_level * self.INDENT_SIZE + 'values: ['.ljust( self.JUSTIFY ) ) for name, value in self.__inst.values.items(): ! self.writer( "%s:%s, "% (name, value) + os.linesep ) def visit_namespace(self ): --- 154,162 ---- self.print_decl_header() curr_level = self.level + 1 ! self.writer( ' ' * curr_level * self.INDENT_SIZE + 'values:'.ljust( self.JUSTIFY ) ) ! value_level = ' ' * ( curr_level + 1 )* self.INDENT_SIZE ! self.writer( os.linesep ) for name, value in self.__inst.values.items(): ! self.writer( value_level + "%s : %s"% (name, value) + os.linesep ) def visit_namespace(self ): |
From: Roman <rom...@us...> - 2006-03-22 08:06:10
|
Update of /cvsroot/pygccxml/source/pyplusplus/module_builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15169/pyplusplus/module_builder Modified Files: builder.py Log Message: fixing UI & wizard adding __str__ to call policies Index: builder.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/module_builder/builder.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** builder.py 21 Mar 2006 08:07:29 -0000 1.4 --- builder.py 22 Mar 2006 08:05:35 -0000 1.5 *************** *** 54,57 **** --- 54,60 ---- decl.alias = '__call__' + def print_declarations(self): + decl_wrappers.print_declarations( self.global_ns ) + def build_code_creator( self , module_name |
From: Roman <rom...@us...> - 2006-03-22 08:06:09
|
Update of /cvsroot/pygccxml/source/pyplusplus/decl_wrappers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15169/pyplusplus/decl_wrappers Modified Files: call_policies.py Log Message: fixing UI & wizard adding __str__ to call policies Index: call_policies.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/call_policies.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** call_policies.py 28 Feb 2006 07:31:33 -0000 1.1 --- call_policies.py 22 Mar 2006 08:05:35 -0000 1.2 *************** *** 30,34 **** def _create_impl(self, function_creator ): return algorithm.create_identifier( function_creator, '::boost::python::default_call_policies' ) ! def default_call_policies(): return default_t() --- 30,37 ---- def _create_impl(self, function_creator ): return algorithm.create_identifier( function_creator, '::boost::python::default_call_policies' ) ! ! def __str__(self): ! return 'default_call_policies' ! def default_call_policies(): return default_t() *************** *** 59,62 **** --- 62,71 ---- return declarations.templates.join( name, args ) + def __str__(self): + name = self._get_name(None).replace('::boost::python::', '' ) + args = map( lambda text: text.replace( '::boost::python::', '' ) + , self._get_args( None ) ) + return declarations.templates.join( name, args ) + class return_argument_t( compound_policy_t ): def __init__( self, position=1, base=None): *************** *** 161,166 **** def _get_args(self, function_creator): ! rcg = algorithm.create_identifier( function_creator, self.result_converter_generator ) ! return [ rcg ] copy_const_reference = '::boost::python::copy_const_reference' --- 170,178 ---- def _get_args(self, function_creator): ! if function_creator: ! rcg = algorithm.create_identifier( function_creator, self.result_converter_generator ) ! return [ rcg ] ! else: ! return [self.result_converter_generator] copy_const_reference = '::boost::python::copy_const_reference' |
From: Roman <rom...@us...> - 2006-03-22 08:05:44
|
Update of /cvsroot/pygccxml/source/pyplusplus/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15169/pyplusplus/unittests Modified Files: fundamental_tester_base.py Log Message: fixing UI & wizard adding __str__ to call policies Index: fundamental_tester_base.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/fundamental_tester_base.py,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** fundamental_tester_base.py 21 Mar 2006 08:07:30 -0000 1.31 --- fundamental_tester_base.py 22 Mar 2006 08:05:35 -0000 1.32 *************** *** 5,18 **** import os - import re import sys - import commands import unittest import autoconfig from pygccxml import parser - from pygccxml import utils - #from pygccxml import declarations - #from pyplusplus import module_creator - from pyplusplus import file_writers from pyplusplus import module_builder --- 5,12 ---- |
From: Roman <rom...@us...> - 2006-03-22 06:35:44
|
Update of /cvsroot/pygccxml/source/pyplusplus/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5023/pyplusplus/gui Modified Files: ui.py Log Message: fixing GUI code generation Index: ui.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/gui/ui.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** ui.py 13 Feb 2006 07:25:20 -0000 1.19 --- ui.py 22 Mar 2006 06:35:41 -0000 1.20 *************** *** 21,26 **** from pygccxml import parser ! from pygccxml import declarations ! from pyplusplus import module_creator import wizard --- 21,25 ---- from pygccxml import parser ! from pyplusplus import module_builder import wizard *************** *** 169,176 **** def __init__(self , parent ! , on_generate_code_header ! , on_generate_code_header_dir ! , on_generate_advanced_pyplusplus ! , on_generate_simple_pyplusplus , on_create_gccxml): custom_frame_t.__init__( self, parent, sticky=Tkinter.NW ) --- 168,173 ---- def __init__(self , parent ! , on_generate_code ! , on_generate_pyplusplus , on_create_gccxml): custom_frame_t.__init__( self, parent, sticky=Tkinter.NW ) *************** *** 178,210 **** temp = Tkinter.Button( self , width=37 ! , text="generate code for declarations" ! + '\n' ! + "found in the header file" ! , command=on_generate_code_header ) temp.grid( row=0, columnspan=3, sticky=Tkinter.NW + Tkinter.E ) temp = Tkinter.Button( self ! , text="generate code for declarations" ! + '\n' ! + "found in the header file and it's directory" ! , command=on_generate_code_header_dir ) temp.grid( row=1, sticky=Tkinter.NW + Tkinter.E) temp = Tkinter.Button( self - , text="generate simple pyplusplus code" - , command=on_generate_simple_pyplusplus ) - temp.grid( row=2, sticky=Tkinter.NW + Tkinter.E) - - temp = Tkinter.Button( self - , text="generate advanced pyplusplus code" - , command=on_generate_advanced_pyplusplus ) - temp.grid( row=3, sticky=Tkinter.NW + Tkinter.E) - - temp = Tkinter.Button( self , text="create XML" , command=on_create_gccxml ) ! temp.grid( row=4, sticky=Tkinter.NW + Tkinter.E) ! map( lambda i: self.rowconfigure( i, weight=1 ), range(4) ) #self.columnconfigure( 0, weight=1 ) --- 175,193 ---- temp = Tkinter.Button( self , width=37 ! , text="generate code" ! , command=on_generate_code ) temp.grid( row=0, columnspan=3, sticky=Tkinter.NW + Tkinter.E ) temp = Tkinter.Button( self ! , text="generate pyplusplus code" ! , command=on_generate_pyplusplus ) temp.grid( row=1, sticky=Tkinter.NW + Tkinter.E) temp = Tkinter.Button( self , text="create XML" , command=on_create_gccxml ) ! temp.grid( row=2, sticky=Tkinter.NW + Tkinter.E) ! map( lambda i: self.rowconfigure( i, weight=1 ), range(3) ) #self.columnconfigure( 0, weight=1 ) *************** *** 265,272 **** class main_widget_ui_t(custom_frame_t): - class FILTERING: - ALL_FROM_HEADER = "all from header" - ALL_FROM_HEADER_DIR = "all from header dir" - def __init__(self, parent=None ): custom_frame_t.__init__( self, parent ) --- 248,251 ---- *************** *** 285,292 **** self._actions_ui = actions_ui_t( self ! , on_generate_code_header=lambda:self._generate_code( self.FILTERING.ALL_FROM_HEADER ) ! , on_generate_code_header_dir=lambda:self._generate_code( self.FILTERING.ALL_FROM_HEADER_DIR ) ! , on_generate_advanced_pyplusplus=lambda: self._generate_advanced_pyplusplus() ! , on_generate_simple_pyplusplus=lambda: self._generate_simple_pyplusplus() , on_create_gccxml=lambda:self._create_xml()) --- 264,269 ---- self._actions_ui = actions_ui_t( self ! , on_generate_code=lambda:self._generate_code() ! , on_generate_pyplusplus=lambda: self._generate_pyplusplus() , on_create_gccxml=lambda:self._create_xml()) *************** *** 310,314 **** self.columnconfigure( 1, weight=1 ) ! def _generate_advanced_pyplusplus(self): config = self._parser_configurator.parser_configuration() header_file = self._header_file_configurator.header_file() --- 287,291 ---- self.columnconfigure( 1, weight=1 ) ! def _generate_pyplusplus(self): config = self._parser_configurator.parser_configuration() header_file = self._header_file_configurator.header_file() *************** *** 318,329 **** self._generated_code.set_generated_code( w.code_advanced() ) - def _generate_simple_pyplusplus(self): - config = self._parser_configurator.parser_configuration() - header_file = self._header_file_configurator.header_file() - config.include_paths.append( os.path.split( header_file )[0] ) - config.working_directory = os.path.split( header_file )[0] - w = wizard.wizard_t( config, header_file, wizard.FILTER_TYPE.FROM_FILE_AND_DIR ) - self._generated_code.set_generated_code( w.code_simple() ) - def _create_xml( self ): try: --- 295,298 ---- *************** *** 348,354 **** self._generated_code.set_generated_code( '\n'.join( user_msg ) ) ! def _generate_code(self, filter): try: - start_time = time.clock() config = self._parser_configurator.parser_configuration() header_file = self._header_file_configurator.header_file() --- 317,322 ---- self._generated_code.set_generated_code( '\n'.join( user_msg ) ) ! def _generate_code(self): try: config = self._parser_configurator.parser_configuration() header_file = self._header_file_configurator.header_file() *************** *** 357,370 **** config.include_paths.append( os.path.split( header_file )[0] ) config.working_directory = os.path.split( header_file )[0] ! decls_all = parser.parse( [ header_file ], config=config ) parsed_time = time.clock() - start_time - if filter == self.FILTERING.ALL_FROM_HEADER: - decls = declarations.filtering.by_location( decls_all, [header_file] ) - else: - decls = declarations.filtering.by_location( decls_all, [os.path.split(header_file)[0]] ) ! extmodule = module_creator.create( decls, "pyplusplus", False ) ! extmodule.user_defined_directories.extend( config.include_paths ) ! code = extmodule.create() code = code.replace( '\n\r', '\n' ) code = code.replace( '\r\n', '\n' ) --- 325,336 ---- config.include_paths.append( os.path.split( header_file )[0] ) config.working_directory = os.path.split( header_file )[0] ! ! start_time = time.clock() ! mb = module_builder.module_builder_t( [ header_file ], config ) parsed_time = time.clock() - start_time ! mb.build_code_creator( "pyplusplus" ) ! mb.code_creator.user_defined_directories.extend( config.include_paths ) ! code = mb.code_creator.create() code = code.replace( '\n\r', '\n' ) code = code.replace( '\r\n', '\n' ) |
From: Roman <rom...@us...> - 2006-03-21 08:08:06
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32522/pyplusplus/examples/py_date_time Modified Files: _date_time_.suo _date_time_.vcproj create_date_time.py environment.py Added Files: profile_pypp.py Log Message: module_builder_t class interface has been changed: as we agrees with Matthias: every step should be done explicitly: declaration parsing in __init__( I decided about this ) build_code_creator() <- creates code creators tree, user has full control on module_creator.creator_t class initialization write_module <- writes module to file split_module <- splits module code to mutliple files I will post about those changes on mailing list later. Index: environment.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/environment.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** environment.py 28 Nov 2005 10:47:02 -0000 1.7 --- environment.py 21 Mar 2006 08:07:25 -0000 1.8 *************** *** 22,26 **** date_time_pypp_include = '' ! defined_symbols = []#[ 'BOOST_DATE_TIME_INCLUDE_LIMITED_HEADERS' # , 'DATE_TIME_INLINE' ] if sys.platform == 'win32': --- 22,26 ---- date_time_pypp_include = '' ! defined_symbols = ['BOOST_DATE_TIME_NO_MEMBER_INIT']#[ 'BOOST_DATE_TIME_INCLUDE_LIMITED_HEADERS' # , 'DATE_TIME_INLINE' ] if sys.platform == 'win32': --- NEW FILE: profile_pypp.py --- # Copyright 2004 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import os import hotshot import hotshot.stats from environment import settings import create_date_time if __name__ == "__main__": statistics_file = os.path.join( settings.generated_files_dir, 'profile.stat' ) profile = hotshot.Profile(statistics_file) profile.runcall( create_date_time.export ) profile.close() statistics = hotshot.stats.load( statistics_file ) statistics.strip_dirs() statistics.sort_stats( 'time', 'calls' ) statistics.print_stats( 20 ) Index: create_date_time.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/create_date_time.py,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** create_date_time.py 20 Mar 2006 05:47:56 -0000 1.32 --- create_date_time.py 21 Mar 2006 08:07:25 -0000 1.33 *************** *** 14,19 **** from pygccxml import declarations from pyplusplus import code_creators - from pyplusplus import module_creator - from pyplusplus import file_writers import customization_data from pyplusplus import module_builder --- 14,17 ---- *************** *** 45,50 **** def create_module_builder(self): date_time_xml_file = self._create_xml_file() ! mb = module_builder.module_builder_t( settings.module_name ! , [ parser.create_gccxml_fc( date_time_xml_file ) ] , self.__parser_config ) if sys.platform == 'win32': --- 43,47 ---- def create_module_builder(self): date_time_xml_file = self._create_xml_file() ! mb = module_builder.module_builder_t( [ parser.create_gccxml_fc( date_time_xml_file ) ] , self.__parser_config ) if sys.platform == 'win32': *************** *** 65,80 **** def filter_declarations(self, mb ): mb.global_ns.exclude() ! mb.namespace( '::pyplusplus' ).include() ! mb.namespace( '::boost::posix_time' ).include() ! mb.namespace( '::boost::date_time' ).include() ! mb.namespace( '::boost::gregorian' ).include() ! mb.namespace( '::boost::local_time' ).include() ! mb.classes( lambda decl: decl.name.startswith( 'constrained_value' ) ).include() to_be_removed = [ 'month_str_to_ushort', 'from_stream_type', 'parse_date' ] ! mb.calldefs( lambda decl: decl.name in to_be_removed ).exclude() ! to_be_removed = [ 'c_time', 'duration_traits_long', 'duration_traits_adapted' ] ! mb.classes( lambda decl: decl.name in to_be_removed ).exclude() starts_with = [ 'time_resolution_traits<' --- 62,82 ---- def filter_declarations(self, mb ): mb.global_ns.exclude() ! mb.global_ns.namespace( 'pyplusplus', recursive=False ).include() ! boost_ns = mb.global_ns.namespace( 'boost', recursive=False ) ! boost_ns.namespace( 'posix_time', recursive=False ).include() ! boost_ns.namespace( 'date_time', recursive=False ).include() ! boost_ns.namespace( 'gregorian', recursive=False ).include() ! boost_ns.namespace( 'local_time', recursive=False ).include() ! boost_ns.classes( lambda decl: decl.name.startswith( 'constrained_value<' ) ).include() to_be_removed = [ 'month_str_to_ushort', 'from_stream_type', 'parse_date' ] ! boost_ns.calldefs( lambda decl: decl.name in to_be_removed ).exclude() ! to_be_removed = [ 'c_time' ! , 'duration_traits_long' ! , 'duration_traits_adapted' ! , 'posix_time_system_config' #TODO find out link bug ! , 'millisec_posix_time_system_config' ] ! boost_ns.classes( lambda decl: decl.name in to_be_removed ).exclude() starts_with = [ 'time_resolution_traits<' *************** *** 86,103 **** , 'special_values_formatter<' ] for name in starts_with: ! mb.classes( lambda decl: decl.name.startswith( name ) ).exclude() ends_with = [ '_impl', '_traits', '_config', '_formatter'] for name in starts_with: ! mb.classes( lambda decl: decl.name.endswith( name ) ).exclude() #boost.date_time has problem to create local_[micro]sec_clock #variable, it has nothing to do with pyplusplus ! empty_classes = ['local_microsec_clock', 'local_sec_clock', 'microsec_clock', 'second_clock' ] ! classes = mb.classes( lambda decl: decl.alias in empty_classes ) classes.exclude() classes.ignore = False - #todo: fix me tdi = mb.class_( lambda decl: decl.alias == 'time_duration_impl' ) tdi_init = tdi.constructor( arg_types=[None, None, None, None], recursive=False) --- 88,104 ---- , 'special_values_formatter<' ] for name in starts_with: ! boost_ns.classes( lambda decl: decl.name.startswith( name ) ).exclude() ends_with = [ '_impl', '_traits', '_config', '_formatter'] for name in starts_with: ! boost_ns.classes( lambda decl: decl.name.endswith( name ) ).exclude() #boost.date_time has problem to create local_[micro]sec_clock #variable, it has nothing to do with pyplusplus ! empty_classes = ['local_microsec_clock', 'local_sec_clock' ] ! classes = boost_ns.classes( lambda decl: decl.alias in empty_classes ) classes.exclude() classes.ignore = False tdi = mb.class_( lambda decl: decl.alias == 'time_duration_impl' ) tdi_init = tdi.constructor( arg_types=[None, None, None, None], recursive=False) *************** *** 106,110 **** def fix_free_template_functions(self, mb): ! mb.free_functions().create_with_signature = True #This function fixes some boost.date_time function signatures --- 107,112 ---- def fix_free_template_functions(self, mb): ! boost_ns = mb.global_ns.namespace( 'boost', recursive=False ) ! boost_ns.free_functions().create_with_signature = True #This function fixes some boost.date_time function signatures *************** *** 115,119 **** , 'parse_undelimited_date' , 'str_from_delimited_time_duration'] ! functions = mb.free_functions( lambda decl: decl.name in tmpl_on_return_type ) for function in functions: function.alias = function.name --- 117,121 ---- , 'parse_undelimited_date' , 'str_from_delimited_time_duration'] ! functions = boost_ns.free_functions( lambda decl: decl.name in tmpl_on_return_type ) for function in functions: function.alias = function.name *************** *** 122,126 **** #template on second argument ! functions = mb.free_functions( 'from_simple_string_type' ) functions.create_with_signature = False for function in functions: --- 124,128 ---- #template on second argument ! functions = boost_ns.free_functions( 'from_simple_string_type' ) functions.create_with_signature = False for function in functions: *************** *** 139,143 **** , 'to_sql_string_type' ] ! functions = mb.free_functions( lambda decl: decl.name in tmpl_on_char_type ) for function in functions: function.alias = function.name --- 141,145 ---- , 'to_sql_string_type' ] ! functions = boost_ns.free_functions( lambda decl: decl.name in tmpl_on_char_type ) for function in functions: function.alias = function.name *************** *** 151,155 **** def replace_include_directives( self, mb ): ! extmodule = mb.module_creator includes = filter( lambda creator: isinstance( creator, code_creators.include_t ) , extmodule.creators ) --- 153,157 ---- def replace_include_directives( self, mb ): ! extmodule = mb.code_creator includes = filter( lambda creator: isinstance( creator, code_creators.include_t ) , extmodule.creators ) *************** *** 160,167 **** def add_code( self, mb ): - #boost.date_time has a lot of templates, not all functions - #are instantiated during GCCXML scan. - min_template = 'def( "min", &%s::min, bp::default_call_policies() )' - max_template = 'def( "max", &%s::max, bp::default_call_policies() )' as_number_template = 'def( "as_number", &%(class_def)s::operator %(class_def)s::value_type, bp::default_call_policies() )' --- 162,165 ---- *************** *** 185,189 **** def beautify_code( self, mb ): ! extmodule = mb.module_creator position = extmodule.last_include_index() + 1 extmodule.adopt_creator( code_creators.namespace_using_t( 'boost' ) --- 183,187 ---- def beautify_code( self, mb ): ! extmodule = mb.code_creator position = extmodule.last_include_index() + 1 extmodule.adopt_creator( code_creators.namespace_using_t( 'boost' ) *************** *** 201,205 **** def customize_extmodule( self, mb ): ! extmodule = mb.module_creator #beautifying include code generation extmodule.license = customization_data.license --- 199,203 ---- def customize_extmodule( self, mb ): ! extmodule = mb.code_creator #beautifying include code generation extmodule.license = customization_data.license *************** *** 213,217 **** def write_files( self, mb ): ! mb.write_multiple_files( settings.generated_files_dir ) shutil.copyfile( os.path.join( settings.date_time_pypp_include, 'date_time_wrapper.hpp' ) , os.path.join( settings.generated_files_dir, 'date_time_wrapper.hpp' ) ) --- 211,215 ---- def write_files( self, mb ): ! mb.split_module( settings.generated_files_dir ) shutil.copyfile( os.path.join( settings.date_time_pypp_include, 'date_time_wrapper.hpp' ) , os.path.join( settings.generated_files_dir, 'date_time_wrapper.hpp' ) ) *************** *** 223,226 **** --- 221,227 ---- self.fix_free_template_functions( mb ) self.add_code( mb ) + + mb.build_code_creator( settings.module_name ) + self.customize_extmodule( mb ) self.write_files( mb ) Index: _date_time_.vcproj =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/_date_time_.vcproj,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** _date_time_.vcproj 20 Mar 2006 05:47:56 -0000 1.5 --- _date_time_.vcproj 21 Mar 2006 08:07:25 -0000 1.6 *************** *** 127,226 **** UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"> <File - RelativePath=".\generated\__impl_details_1.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_10.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_11.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_12.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_13.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_14.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_15.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_16.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_17.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_18.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_19.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_2.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_20.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_21.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_22.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_23.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_24.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_25.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_26.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_27.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_28.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_29.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_3.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_30.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_31.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_32.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_4.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_5.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_6.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_7.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_8.pypp.cpp"> - </File> - <File - RelativePath=".\generated\__impl_details_9.pypp.cpp"> - </File> - <File RelativePath=".\generated\_date_time_.main.cpp"> </File> --- 127,130 ---- *************** *** 501,600 **** </File> <File - RelativePath=".\generated\__impl_details_1.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_10.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_11.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_12.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_13.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_14.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_15.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_16.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_17.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_18.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_19.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_2.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_20.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_21.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_22.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_23.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_24.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_25.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_26.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_27.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_28.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_29.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_3.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_30.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_31.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_32.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_4.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_5.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_6.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_7.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_8.pypp.hpp"> - </File> - <File - RelativePath=".\generated\__impl_details_9.pypp.hpp"> - </File> - <File RelativePath=".\generated\_date_time__enumerations.pypp.hpp"> </File> --- 405,408 ---- *************** *** 768,774 **** </File> <File - RelativePath=".\generated\millisec_posix_time_system_config.pypp.hpp"> - </File> - <File RelativePath=".\generated\milliseconds.pypp.hpp"> </File> --- 576,579 ---- Index: _date_time_.suo =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/_date_time_.suo,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsaOI8aC and /tmp/cvs1vBap9 differ |
From: Roman <rom...@us...> - 2006-03-21 08:08:05
|
Update of /cvsroot/pygccxml/source/pygccxml/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32522/pygccxml/parser Modified Files: project_reader.py Log Message: module_builder_t class interface has been changed: as we agrees with Matthias: every step should be done explicitly: declaration parsing in __init__( I decided about this ) build_code_creator() <- creates code creators tree, user has full control on module_creator.creator_t class initialization write_module <- writes module to file split_module <- splits module code to mutliple files I will post about those changes on mailing list later. Index: project_reader.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/parser/project_reader.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** project_reader.py 20 Mar 2006 14:18:48 -0000 1.27 --- project_reader.py 21 Mar 2006 08:07:25 -0000 1.28 *************** *** 108,123 **** self.__decl_factory = pygccxml.declarations.decl_factory_t() def read_files( self, files, compilation_mode=COMPILATION_MODE.FILE_BY_FILE): """Parse header files. ! @param files: The header files that should be parsed ! @type files: list of str @param compilation_mode: Determines whether the files are parsed individually or as one single chunk @type compilation_mode: L{COMPILATION_MODE} @returns: Declarations """ ! if compilation_mode == COMPILATION_MODE.ALL_AT_ONCE: return self.__parse_all_at_once(files) else: return self.__parse_file_by_file(files) --- 108,150 ---- self.__decl_factory = pygccxml.declarations.decl_factory_t() + def get_os_file_names( self, files ): + """Returns a list of OS file names + + @param files: list of strings or L{file_configuration_t} instances. + files could contain a mix of them + @type files: list + """ + fnames = [] + for f in files: + if isinstance( f, types.StringTypes ): + fnames.append( f ) + elif isinstance( f, file_configuration_t ): + if f.content_type in ( file_configuration_t.CONTENT_TYPE.STANDARD_SOURCE_FILE + , file_configuration_t.CONTENT_TYPE.CACHED_SOURCE_FILE ): + fnames.append( f.data ) + else: + pass + return fnames + def read_files( self, files, compilation_mode=COMPILATION_MODE.FILE_BY_FILE): """Parse header files. ! @param files: list of strings or L{file_configuration_t} instances. ! files could contain a mix of them ! @type files: list @param compilation_mode: Determines whether the files are parsed individually or as one single chunk @type compilation_mode: L{COMPILATION_MODE} @returns: Declarations """ ! if compilation_mode == COMPILATION_MODE.ALL_AT_ONCE \ ! and len( files ) == len( self.get_os_file_names(files) ): return self.__parse_all_at_once(files) else: + if compilation_mode == COMPILATION_MODE.ALL_AT_ONCE: + msg = ''.join([ + "Unable to parse files using ALL_AT_ONCE mode. " + , "There is some file configuration that is not file. " + , "pygccxml.parser.project_reader_t switches to FILE_BY_FILE mode." ]) + logger.info( msg ) return self.__parse_file_by_file(files) *************** *** 147,150 **** --- 174,178 ---- decls = reader.read_xml_file( header ) elif content_type == file_configuration_t.CONTENT_TYPE.CACHED_SOURCE_FILE: + #TODO: raise error when header file does not exist if not os.path.exists( prj_file.cached_source_file ): dir_ = os.path.split( prj_file.cached_source_file )[0] |
From: Roman <rom...@us...> - 2006-03-21 08:08:04
|
Update of /cvsroot/pygccxml/source/pygccxml/unittests/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32522/pygccxml/unittests/data Modified Files: core_cache.hpp Log Message: module_builder_t class interface has been changed: as we agrees with Matthias: every step should be done explicitly: declaration parsing in __init__( I decided about this ) build_code_creator() <- creates code creators tree, user has full control on module_creator.creator_t class initialization write_module <- writes module to file split_module <- splits module code to mutliple files I will post about those changes on mailing list later. Index: core_cache.hpp =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/unittests/data/core_cache.hpp,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** core_cache.hpp 20 Mar 2006 05:47:56 -0000 1.48 --- core_cache.hpp 21 Mar 2006 08:07:25 -0000 1.49 *************** *** 24,26 **** ! //touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch \ No newline at end of file --- 24,26 ---- ! //touch \ No newline at end of file |
From: Roman <rom...@us...> - 2006-03-21 08:07:36
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32522/pyplusplus/examples/py_date_time/include Modified Files: date_time.pypp.xml Log Message: module_builder_t class interface has been changed: as we agrees with Matthias: every step should be done explicitly: declaration parsing in __init__( I decided about this ) build_code_creator() <- creates code creators tree, user has full control on module_creator.creator_t class initialization write_module <- writes module to file split_module <- splits module code to mutliple files I will post about those changes on mailing list later. Index: date_time.pypp.xml =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/include/date_time.pypp.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** date_time.pypp.xml 20 Mar 2006 05:47:56 -0000 1.6 --- date_time.pypp.xml 21 Mar 2006 08:07:25 -0000 1.7 *************** *** 3,8 **** <Namespace id="_1" name="::" members="_3 _4 _5 _6 _7 _8 _9 _10 _11 _12 _13 _14 _15 _16 _17 _18 _19 _20 _21 _22 _23 _24 _25 _26 _27 _28 _29 _30 _31 _32 _33 _34 _35 _36 _37 _38 _39 _40 _41 _42 _43 _44 _45 _46 _47 _48 _49 _50 _51 _52 _53 _54 _55 _56 _57 _58 _59 _60 _61 _62 _63 _64 _65 _66 _67 _68 _70 _71 _72 _73 _74 _75 _77 _78 _79 _80 _81 _82 _83 _84 _85 _86 _87 _88 _89 _90 _91 _92 _93 _94 _95 _96 _97 _98 _99 _100 _101 _102 _103 _104 _105 _106 _107 _108 _109 _110 _111 _112 _113 _114 _115 _116 _117 _118 _119 _120 _121 _122 _123 _124 _125 _126 _127 _128 _129 _130 _131 _132 _133 _134 _135 _136 _137 _138 _139 _140 _141 _142 _143 _144 _145 _146 _147 _148 _149 _150 _151 _152 _153 _154 _155 _156 _157 _158 _159 _160 _161 _162 _163 _164 _165 _166 _167 _168 _169 _170 _171 _172 _173 _174 _175 _176 _177 _178 _179 _180 _181 _182 _183 _184 _185 _186 _187 _188 _189 _190 _191 _192 _193 _194 _195 _196 _197 _198 _199 _200 _201 _202 _203 _204 _205 _206 _207 _208 _209 _210 _211 _212 _213 _214 _215 _216 _217 _218 _219 _220 _221 _222 _223 _224 _225 _226 _227 _228 _229 _230 _231 _232 _233 _234 _235 _236 _237 _238 _239 _240 _241 _242 _243 _244 _245 _246 _247 _248 _249 _250 _251 _252 _253 _254 _255 _256 _257 _258 _259 _260 _261 _262 _263 _264 _265 _266 _267 _268 _269 _270 _271 _272 _273 _274 _275 _276 _277 _278 _279 _280 _281 _282 _283 _284 _285 _286 _287 _288 _289 _290 _291 _292 _293 _294 _295 _296 _297 _298 _299 _300 _301 _302 _303 _304 _305 _306 _307 _308 _309 _310 _311 _312 _313 _314 _315 _316 _317 _318 _319 _320 _321 _322 _323 _324 _325 _326 _327 _328 _329 _330 _331 _332 _333 _334 _335 _336 _337 _338 _339 _340 _341 _342 _343 _344 _345 _346 _347 _348 _349 _350 _351 _352 _353 _354 _355 _356 _357 _358 _359 _360 _361 _362 _363 _364 _365 _366 _367 _368 _369 _370 _371 _372 _373 _374 _375 _376 _377 _378 _379 _380 _381 _382 _383 _384 _385 _386 _387 _388 _389 _390 _391 _392 _393 _394 _395 _396 _397 _398 _399 _400 _401 _402 _403 _404 _405 _406 _407 _408 _409 _410 _411 _412 _413 _414 _415 _416 _417 _418 _419 _420 _421 _422 _423 _424 _425 _426 _427 _428 _429 _430 _431 _432 _433 _434 _435 _436 _437 _438 _439 _440 _441 _442 _443 _444 _445 _446 _447 _448 _449 _450 _451 _452 _453 _454 _455 _456 _457 _458 _459 _460 _461 _462 _463 _464 _465 _466 _467 _468 _469 _470 _471 _472 _473 _474 _475 _476 _477 _478 _479 _480 _481 _482 _483 _484 _485 _486 _487 _488 _489 _490 _491 _492 _493 _494 _495 _496 _497 _498 _499 _500 _501 _502 _503 _504 _505 _506 _507 _508 _509 _510 _511 _512 _513 _514 _515 _516 _517 _518 _519 _520 _521 _522 _523 _524 _525 _526 _527 _528 _529 _530 _531 _532 _533 _534 _535 _536 _537 _538 _539 _540 _541 _542 _543 _544 _545 _546 _547 _548 _549 _550 _551 _552 _553 _554 _555 _556 _557 _558 _559 _560 _561 _562 _563 _564 _565 _566 _567 _568 _569 _571 _572 _573 _574 _575 _576 _577 _578 _579 _580 _581 _582 _583 _584 _585 _586 _587 _588 _589 _590 _591 _592 _593 _594 _595 _596 _597 _598 _599 _600 _601 _602 _603 _604 _605 _606 _607 _608 _609 _610 _611 _612 _613 _614 _615 _616 _617 _618 _619 _620 _621 _622 _623 _625 _626 _627 _628 _629 _630 _631 _632 _633 _634 _635 _636 _637 _638 _639 _640 _642 _643 _644 _645 _646 _647 _648 _649 _650 _651 _652 _653 _654 _655 _656 _657 _658 _659 _660 _661 _662 _663 _664 _665 _666 _667 _668 _669 _670 _671 _672 _673 _674 _675 _676 _677 _678 _679 _680 _681 _682 _683 _684 _685 _686 _687 _688 _689 _690 _691 _692 _693 _694 _695 _696 _697 _698 _699 _700 _701 _702 _703 _704 _705 _706 _707 _708 _709 _710 _711 _712 _713 _714 _715 _716 _717 _718 _719 _720 _721 _722 _723 _724 _725 _726 _727 _728 _729 _730 _731 _732 _733 _734 _735 _736 _737 _738 _739 _740 _741 _742 _743 _744 _745 _746 _747 _748 _749 _750 _751 _752 _753 _754 _755 _756 _757 _758 _759 _760 _761 _762 _763 _764 _765 _766 _767 _768 _769 _770 _771 _772 _773 _774 _775 _776 _777 _778 _779 _780 _781 _782 _783 _784 _785 _786 _787 _788 _789 _790 _791 _792 _793 _794 _795 _796 _797 _798 _799 _800 _801 _802 _803 _804 _805 _806 _808 _809 _810 _811 _812 _813 _814 _815 _816 _817 _818 _820 _821 _823 _824 _825 _826 _827 _828 _829 _830 _831 _832 _833 _834 _835 _836 _837 _838 _839 _840 _841 _842 _843 _844 _845 _846 _847 _848 _849 _850 _851 _852 _853 _854 _855 _856 _857 _858 _859 _860 _861 _862 _863 _864 _865 _866 _867 _868 _869 _870 _871 _872 _873 _874 _875 _876 _877 _878 _879 _880 _881 _882 _883 _884 _885 _886 _887 _888 _889 _890 _891 _892 _893 _894 _895 _896 _897 _898 _899 _900 _901 _902 _903 _904 _905 _906 _907 _908 _909 _910 _911 _912 _913 _914 _915 _916 _917 _918 _919 _920 _921 _922 _923 _924 _925 _926 _927 _928 _929 _930 _931 _932 _933 _934 _935 _936 _937 _938 _939 _940 _941 _942 _943 _944 _945 _946 _947 _948 _949 _950 _951 _952 _953 _954 _955 _956 _957 _958 _959 _960 _961 _962 _963 _964 _965 _966 _967 _968 _969 _970 _971 _972 _973 _974 _975 _976 _977 _978 _979 _980 _981 _982 _983 _984 _985 _986 _987 _988 _989 _990 _991 _992 _993 _994 _995 _996 _997 _998 _999 _1000 _1001 _1002 _1003 _1004 _1005 _1006 _1007 _1008 _1009 _1010 _1011 _1012 _1013 _1014 _1015 _1016 _1017 _1018 _1019 _1020 _1021 _1022 _1023 _1024 _1025 _1026 _1027 _1028 _1029 _1030 _1031 _1032 _1033 _1034 _1035 _1036 _1037 _1038 _1039 _1040 _1041 _1042 _1043 _1044 _1045 _1046 _1047 _1048 _1049 _1050 _1051 _1052 _1053 _1054 _1055 _1056 _1057 _1058 _1059 _1060 _1061 _1062 _1063 _1064 _1065 _1066 _1067 _1068 _1069 _1070 _1071 _1072 _1073 _1074 _1075 _1076 _1077 _1078 _1079 _1080 _1082 _1084 _1086 _1087 _1088 _1089 _1090 _1091 _1092 _1093 _1094 _1095 _1096 _1097 _1098 _1099 _1100 _1101 _1102 _1103 _1104 _1105 _1106 _1107 _1108 _1109 _1110 _1111 _1112 _1113 _1114 _1115 _1116 _1118 _1117 _1120 _1122 _1124 _1126 _1127 _1128 _1129 _1130 _1131 _1132 _1133 _1134 _1135 _1136 _1137 _1138 _1140 _1141 _1142 _1143 _1145 _1146 _1148 _1149 _1151 _1152 _1154 _1156 _1158 _1160 _1162 _1164 _1166 _1168 _1170 _1171 _1172 _1173 _1174 _1175 _1176 _1081 _1083 _807 _1177 _1179 _1180 _1178 _1181 _1182 _1183 _1184 _1185 _1186 _1187 _1188 _1189 _1190 _1191 _1192 _1193 _1194 _1195 _1196 _1197 _1198 _1199 _1200 _1201 _1202 _1203 _1204 _1205 _1206 _1207 _1208 _1209 _1210 _1211 _1212 _1213 _1214 _1215 _1216 _1217 _1218 _1219 _1220 _1221 _1222 _1223 _1224 _1225 _1226 _1227 _1228 _1229 _1230 _1231 _1232 _1233 _1235 _1236 _1237 _1238 _1239 _1240 _1241 _1242 _1243 _1244 _1245 _1246 _1247 _1249 _1250 _1251 _1252 _1253 _1255 _1257 _1258 _1259 _1260 _1261 _1263 _1264 _1265 _1266 _1268 _1269 _1270 _1271 _1272 _1273 _1274 _1275 _1276 _1277 _1278 _1279 _1280 _1281 _1282 _1283 _1284 _1285 _1286 _1287 _1288 _1289 _1290 _1291 _1292 _1293 _1294 _1295 _1296 _1297 _1298 _1299 _1300 _1301 _1302 _1303 _1304 _1305 _1306 _1307 _1308 _1309 _1310 _1311 _1312 _1313 _1314 _1315 _1316 _1317 _1318 _1319 _1320 _1321 _1322 _1323 _1324 _1325 _1326 _1327 _1328 _1329 _1330 _1331 _1332 _1333 _1334 _1335 _1336 _1337 _1338 _1339 _1340 _1341 _1342 _1343 _1344 _1345 _1346 _1347 _1348 _1349 _1350 _1351 _1352 _1353 _1354 _1355 _1356 _1357 _1358 _1359 _1360 _1361 _1362 _1363 _1364 _1365 _1366 _1367 _1368 _1369 _1370 _1371 _1372 _1373 _1374 _1375 _1376 _1377 _1378 _1379 _1380 _1381 _1382 _1383 _1384 _1385 _1386 _1387 _1388 _1389 _1390 _1391 _1392 _1393 _1394 _1395 _1396 _1397 _1398 _1399 _1400 _1401 _1402 _1403 _1404 _1405 _1406 _1407 _1408 _1409 _1410 _1411 _1412 _1413 _1414 _1415 _1416 _1417 _1418 _1419 _1420 _1421 _1422 _1423 _1424 _1425 _1426 _1427 _1428 _1429 _1430 _1431 _1432 _1433 _1434 _1435 _1436 _1438 _1439 _1440 _1441 _1442 _1443 _1444 _1445 _1446 _1447 _1448 _1449 _1450 _1451 _1452 _1453 _1454 _1455 _1456 _1457 _1458 _1459 _1460 _1461 _1462 _1463 _1464 _1465 _1466 _1467 _1468 _1469 _1470 _1471 _1472 _1473 _1474 _1475 _1476 _1477 _1478 _1479 _1480 _1481 _1482 _1483 _1484 _1485 _1486 _1487 _1488 _1489 _1490 _1491 _1492 _1493 _1494 _1495 _1496 _1497 _1499 _1498 _1500 _1501 _819 _1502 _1503 _1504 _1505 _1507 _1506 _1509 _1510 _1511 _1512 _1513 _1514 _1515 _1516 _1517 _1518 _1520 _1521 _1522 _1523 _1524 _1525 _1526 _1527 _1528 _1530 _1529 _1531 _1532 _1533 _1534 _1535 _1536 _1537 _1538 _1539 _1540 _1541 _1542 _1543 _1544 _1545 _1546 _1547 _1548 _1549 _1550 _1551 _1552 _1553 _1554 _1555 _1556 _1557 _1558 _1559 _1560 _1561 _1562 _1563 _1564 _1565 _1567 _1568 _1569 _1570 _1571 _1572 _1573 _1574 _1575 _1576 _1578 _1579 _1580 _1581 _1582 _1583 _1584 _1585 _1586 _1587 _1588 _1589 _1590 _1591 _1592 _1593 _1594 _1595 _1596 _1597 _1598 _1599 _1566 _1600 _1601 _1602 _1603 _1604 _1605 _1606 _1607 _1608 _1609 _1610 _1611 _1612 _1613 _1614 _1615 _1616 _1617 _1618 _1619 _1620 _1621 _1622 _1623 _1624 _1625 _1626 _1627 _1628 _1629 _1630 _1631 _1632 _1633 _1634 _1635 _1636 _1637 _1638 _1639 _1640 _1641 _1642 _1643 _1644 _1645 _1646 _1647 _1648 _1649 _1650 _1651 _1652 _1653 _1654 _1655 _1656 _1657 _1658 _1659 _1660 _1661 _1662 _1663 _1664 _1665 _1666 _1667 _1668 _1669 _1670 _1671 _1672 _1673 _1674 _1675 _1676 _1677 _1678 _1679 _1680 _1681 _1682 _1683 _1684 _1685 _1686 _1687 _1688 _1689 _1690 _1691 _1692 _1693 _1694 _1695 _1696 _1697 _1698 _1699 _1700 _1701 _1702 _1703 _1704 _1705 _1706 _1707 _1708 _1709 _1710 _1711 _1712 _1713 _1714 _1715 _1716 _1717 _1718 _1719 _1720 _1721 _1722 _1723 _1724 _1725 _1726 _1727 _1728 _1729 _1730 _1731 _1732 _1733 _1734 _1735 _1736 _1737 _1738 _1739 _1740 _1741 _1742 _1743 _1744 _1745 _1746 _1747 " mangled="_Z2::"/> <Namespace id="_2" name="std" context="_1" members="_1752 _1753 _1758 _1759 _1770 _1771 _1776 _1777 _1782 _1783 _1785 _1786 _1787 _1788 _1789 _1790 _1791 _1792 _1793 _1794 _1800 _1801 _1802 _1803 _1804 _1805 _1806 _1807 _1808 _1809 _1810 _1811 _1812 _1813 _1814 _1817 _1818 _1819 _1820 _1821 _1822 _1823 _1824 _1825 _1826 _1827 _1828 _1839 _1840 _1841 _1842 _1843 _1844 _1845 _1846 _1847 _1848 _1849 _1850 _1851 _1852 _1853 _1854 _1855 _1856 _1857 _1858 _1862 _1863 _1864 _1865 _1866 _1867 _1868 _1869 _1870 _1871 _1872 _1873 _1874 _1875 _1876 _1877 _1878 _1879 _1880 _1881 _1882 _1883 _1884 _1885 _1886 _1887 _1888 _1889 _1890 _1891 _1892 _1893 _1894 _1895 _1896 _1920 _1930 _1931 _1932 _1933 _1934 _1935 _1936 _1937 _1938 _1939 _1940 _1941 _1942 _1943 _1944 _1945 _1946 _1947 _1948 _1949 _1950 _1951 _1952 _1953 _1954 _1955 _1956 _1957 _1958 _1959 _1960 _1961 _1962 _1963 _1964 _1965 _1966 _1967 _1968 _1969 _1970 _1971 _1972 _1973 _1974 _1975 _1976 _1977 _1978 _1979 _2001 _2002 _2037 _2039 _2041 _2040 _2042 _2043 _2044 _2045 _2046 _2047 _2052 _2053 _2054 _2154 _2156 _2157 _2158 _2215 _2216 _2217 _2218 _2219 _2220 _2222 _2223 _2224 _2225 _2226 _2227 _2228 _2229 _2230 _2231 _2232 _2233 _2234 _2235 _2236 _2238 _2240 _2242 _2244 _2246 _2248 _2250 _2252 _2254 _2256 _2258 _2260 _2262 _2264 _2266 _2268 _2270 _2272 _2274 _2276 _2278 _2280 _2282 _2284 _2286 _2288 _2289 _2290 _2291 _2292 _2293 _2294 _2295 _2296 _2297 _2298 _2299 _2300 _2301 _2302 _2303 _2305 _2306 _2307 _2308 _2309 _2310 _2311 _2312 _2313 _2314 _2315 _2316 _2317 _2318 _2320 _2322 _2323 _2356 _2357 _2358 _2359 _2360 _2361 _2362 _2363 _2364 _2365 " mangled="_Z3std"/> ! <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppONA2xa" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> ! <Function id="_4" name="_GLOBAL__I__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppONA2xa" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> <Variable id="_5" name="_ZGVN5boost9date_time10date_facetINS_9gregorian4dateEcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE" type="_1256" context="_1" location="f1:372" file="f1" line="372" artificial="1"/> <Function id="_6" name="__static_initialization_and_destruction_0" returns="_1139" context="_1" mangled="_Z41__static_initialization_and_destruction_0ii" location="f0:131" file="f0" line="131" endline="77"> --- 3,8 ---- <Namespace id="_1" name="::" members="_3 _4 _5 _6 _7 _8 _9 _10 _11 _12 _13 _14 _15 _16 _17 _18 _19 _20 _21 _22 _23 _24 _25 _26 _27 _28 _29 _30 _31 _32 _33 _34 _35 _36 _37 _38 _39 _40 _41 _42 _43 _44 _45 _46 _47 _48 _49 _50 _51 _52 _53 _54 _55 _56 _57 _58 _59 _60 _61 _62 _63 _64 _65 _66 _67 _68 _70 _71 _72 _73 _74 _75 _77 _78 _79 _80 _81 _82 _83 _84 _85 _86 _87 _88 _89 _90 _91 _92 _93 _94 _95 _96 _97 _98 _99 _100 _101 _102 _103 _104 _105 _106 _107 _108 _109 _110 _111 _112 _113 _114 _115 _116 _117 _118 _119 _120 _121 _122 _123 _124 _125 _126 _127 _128 _129 _130 _131 _132 _133 _134 _135 _136 _137 _138 _139 _140 _141 _142 _143 _144 _145 _146 _147 _148 _149 _150 _151 _152 _153 _154 _155 _156 _157 _158 _159 _160 _161 _162 _163 _164 _165 _166 _167 _168 _169 _170 _171 _172 _173 _174 _175 _176 _177 _178 _179 _180 _181 _182 _183 _184 _185 _186 _187 _188 _189 _190 _191 _192 _193 _194 _195 _196 _197 _198 _199 _200 _201 _202 _203 _204 _205 _206 _207 _208 _209 _210 _211 _212 _213 _214 _215 _216 _217 _218 _219 _220 _221 _222 _223 _224 _225 _226 _227 _228 _229 _230 _231 _232 _233 _234 _235 _236 _237 _238 _239 _240 _241 _242 _243 _244 _245 _246 _247 _248 _249 _250 _251 _252 _253 _254 _255 _256 _257 _258 _259 _260 _261 _262 _263 _264 _265 _266 _267 _268 _269 _270 _271 _272 _273 _274 _275 _276 _277 _278 _279 _280 _281 _282 _283 _284 _285 _286 _287 _288 _289 _290 _291 _292 _293 _294 _295 _296 _297 _298 _299 _300 _301 _302 _303 _304 _305 _306 _307 _308 _309 _310 _311 _312 _313 _314 _315 _316 _317 _318 _319 _320 _321 _322 _323 _324 _325 _326 _327 _328 _329 _330 _331 _332 _333 _334 _335 _336 _337 _338 _339 _340 _341 _342 _343 _344 _345 _346 _347 _348 _349 _350 _351 _352 _353 _354 _355 _356 _357 _358 _359 _360 _361 _362 _363 _364 _365 _366 _367 _368 _369 _370 _371 _372 _373 _374 _375 _376 _377 _378 _379 _380 _381 _382 _383 _384 _385 _386 _387 _388 _389 _390 _391 _392 _393 _394 _395 _396 _397 _398 _399 _400 _401 _402 _403 _404 _405 _406 _407 _408 _409 _410 _411 _412 _413 _414 _415 _416 _417 _418 _419 _420 _421 _422 _423 _424 _425 _426 _427 _428 _429 _430 _431 _432 _433 _434 _435 _436 _437 _438 _439 _440 _441 _442 _443 _444 _445 _446 _447 _448 _449 _450 _451 _452 _453 _454 _455 _456 _457 _458 _459 _460 _461 _462 _463 _464 _465 _466 _467 _468 _469 _470 _471 _472 _473 _474 _475 _476 _477 _478 _479 _480 _481 _482 _483 _484 _485 _486 _487 _488 _489 _490 _491 _492 _493 _494 _495 _496 _497 _498 _499 _500 _501 _502 _503 _504 _505 _506 _507 _508 _509 _510 _511 _512 _513 _514 _515 _516 _517 _518 _519 _520 _521 _522 _523 _524 _525 _526 _527 _528 _529 _530 _531 _532 _533 _534 _535 _536 _537 _538 _539 _540 _541 _542 _543 _544 _545 _546 _547 _548 _549 _550 _551 _552 _553 _554 _555 _556 _557 _558 _559 _560 _561 _562 _563 _564 _565 _566 _567 _568 _569 _571 _572 _573 _574 _575 _576 _577 _578 _579 _580 _581 _582 _583 _584 _585 _586 _587 _588 _589 _590 _591 _592 _593 _594 _595 _596 _597 _598 _599 _600 _601 _602 _603 _604 _605 _606 _607 _608 _609 _610 _611 _612 _613 _614 _615 _616 _617 _618 _619 _620 _621 _622 _623 _625 _626 _627 _628 _629 _630 _631 _632 _633 _634 _635 _636 _637 _638 _639 _640 _642 _643 _644 _645 _646 _647 _648 _649 _650 _651 _652 _653 _654 _655 _656 _657 _658 _659 _660 _661 _662 _663 _664 _665 _666 _667 _668 _669 _670 _671 _672 _673 _674 _675 _676 _677 _678 _679 _680 _681 _682 _683 _684 _685 _686 _687 _688 _689 _690 _691 _692 _693 _694 _695 _696 _697 _698 _699 _700 _701 _702 _703 _704 _705 _706 _707 _708 _709 _710 _711 _712 _713 _714 _715 _716 _717 _718 _719 _720 _721 _722 _723 _724 _725 _726 _727 _728 _729 _730 _731 _732 _733 _734 _735 _736 _737 _738 _739 _740 _741 _742 _743 _744 _745 _746 _747 _748 _749 _750 _751 _752 _753 _754 _755 _756 _757 _758 _759 _760 _761 _762 _763 _764 _765 _766 _767 _768 _769 _770 _771 _772 _773 _774 _775 _776 _777 _778 _779 _780 _781 _782 _783 _784 _785 _786 _787 _788 _789 _790 _791 _792 _793 _794 _795 _796 _797 _798 _799 _800 _801 _802 _803 _804 _805 _806 _808 _809 _810 _811 _812 _813 _814 _815 _816 _817 _818 _820 _821 _823 _824 _825 _826 _827 _828 _829 _830 _831 _832 _833 _834 _835 _836 _837 _838 _839 _840 _841 _842 _843 _844 _845 _846 _847 _848 _849 _850 _851 _852 _853 _854 _855 _856 _857 _858 _859 _860 _861 _862 _863 _864 _865 _866 _867 _868 _869 _870 _871 _872 _873 _874 _875 _876 _877 _878 _879 _880 _881 _882 _883 _884 _885 _886 _887 _888 _889 _890 _891 _892 _893 _894 _895 _896 _897 _898 _899 _900 _901 _902 _903 _904 _905 _906 _907 _908 _909 _910 _911 _912 _913 _914 _915 _916 _917 _918 _919 _920 _921 _922 _923 _924 _925 _926 _927 _928 _929 _930 _931 _932 _933 _934 _935 _936 _937 _938 _939 _940 _941 _942 _943 _944 _945 _946 _947 _948 _949 _950 _951 _952 _953 _954 _955 _956 _957 _958 _959 _960 _961 _962 _963 _964 _965 _966 _967 _968 _969 _970 _971 _972 _973 _974 _975 _976 _977 _978 _979 _980 _981 _982 _983 _984 _985 _986 _987 _988 _989 _990 _991 _992 _993 _994 _995 _996 _997 _998 _999 _1000 _1001 _1002 _1003 _1004 _1005 _1006 _1007 _1008 _1009 _1010 _1011 _1012 _1013 _1014 _1015 _1016 _1017 _1018 _1019 _1020 _1021 _1022 _1023 _1024 _1025 _1026 _1027 _1028 _1029 _1030 _1031 _1032 _1033 _1034 _1035 _1036 _1037 _1038 _1039 _1040 _1041 _1042 _1043 _1044 _1045 _1046 _1047 _1048 _1049 _1050 _1051 _1052 _1053 _1054 _1055 _1056 _1057 _1058 _1059 _1060 _1061 _1062 _1063 _1064 _1065 _1066 _1067 _1068 _1069 _1070 _1071 _1072 _1073 _1074 _1075 _1076 _1077 _1078 _1079 _1080 _1082 _1084 _1086 _1087 _1088 _1089 _1090 _1091 _1092 _1093 _1094 _1095 _1096 _1097 _1098 _1099 _1100 _1101 _1102 _1103 _1104 _1105 _1106 _1107 _1108 _1109 _1110 _1111 _1112 _1113 _1114 _1115 _1116 _1118 _1117 _1120 _1122 _1124 _1126 _1127 _1128 _1129 _1130 _1131 _1132 _1133 _1134 _1135 _1136 _1137 _1138 _1140 _1141 _1142 _1143 _1145 _1146 _1148 _1149 _1151 _1152 _1154 _1156 _1158 _1160 _1162 _1164 _1166 _1168 _1170 _1171 _1172 _1173 _1174 _1175 _1176 _1081 _1083 _807 _1177 _1179 _1180 _1178 _1181 _1182 _1183 _1184 _1185 _1186 _1187 _1188 _1189 _1190 _1191 _1192 _1193 _1194 _1195 _1196 _1197 _1198 _1199 _1200 _1201 _1202 _1203 _1204 _1205 _1206 _1207 _1208 _1209 _1210 _1211 _1212 _1213 _1214 _1215 _1216 _1217 _1218 _1219 _1220 _1221 _1222 _1223 _1224 _1225 _1226 _1227 _1228 _1229 _1230 _1231 _1232 _1233 _1235 _1236 _1237 _1238 _1239 _1240 _1241 _1242 _1243 _1244 _1245 _1246 _1247 _1249 _1250 _1251 _1252 _1253 _1255 _1257 _1258 _1259 _1260 _1261 _1263 _1264 _1265 _1266 _1268 _1269 _1270 _1271 _1272 _1273 _1274 _1275 _1276 _1277 _1278 _1279 _1280 _1281 _1282 _1283 _1284 _1285 _1286 _1287 _1288 _1289 _1290 _1291 _1292 _1293 _1294 _1295 _1296 _1297 _1298 _1299 _1300 _1301 _1302 _1303 _1304 _1305 _1306 _1307 _1308 _1309 _1310 _1311 _1312 _1313 _1314 _1315 _1316 _1317 _1318 _1319 _1320 _1321 _1322 _1323 _1324 _1325 _1326 _1327 _1328 _1329 _1330 _1331 _1332 _1333 _1334 _1335 _1336 _1337 _1338 _1339 _1340 _1341 _1342 _1343 _1344 _1345 _1346 _1347 _1348 _1349 _1350 _1351 _1352 _1353 _1354 _1355 _1356 _1357 _1358 _1359 _1360 _1361 _1362 _1363 _1364 _1365 _1366 _1367 _1368 _1369 _1370 _1371 _1372 _1373 _1374 _1375 _1376 _1377 _1378 _1379 _1380 _1381 _1382 _1383 _1384 _1385 _1386 _1387 _1388 _1389 _1390 _1391 _1392 _1393 _1394 _1395 _1396 _1397 _1398 _1399 _1400 _1401 _1402 _1403 _1404 _1405 _1406 _1407 _1408 _1409 _1410 _1411 _1412 _1413 _1414 _1415 _1416 _1417 _1418 _1419 _1420 _1421 _1422 _1423 _1424 _1425 _1426 _1427 _1428 _1429 _1430 _1431 _1432 _1433 _1434 _1435 _1436 _1438 _1439 _1440 _1441 _1442 _1443 _1444 _1445 _1446 _1447 _1448 _1449 _1450 _1451 _1452 _1453 _1454 _1455 _1456 _1457 _1458 _1459 _1460 _1461 _1462 _1463 _1464 _1465 _1466 _1467 _1468 _1469 _1470 _1471 _1472 _1473 _1474 _1475 _1476 _1477 _1478 _1479 _1480 _1481 _1482 _1483 _1484 _1485 _1486 _1487 _1488 _1489 _1490 _1491 _1492 _1493 _1494 _1495 _1496 _1497 _1499 _1498 _1500 _1501 _819 _1502 _1503 _1504 _1505 _1507 _1506 _1509 _1510 _1511 _1512 _1513 _1514 _1515 _1516 _1517 _1518 _1520 _1521 _1522 _1523 _1524 _1525 _1526 _1527 _1528 _1530 _1529 _1531 _1532 _1533 _1534 _1535 _1536 _1537 _1538 _1539 _1540 _1541 _1542 _1543 _1544 _1545 _1546 _1547 _1548 _1549 _1550 _1551 _1552 _1553 _1554 _1555 _1556 _1557 _1558 _1559 _1560 _1561 _1562 _1563 _1564 _1565 _1567 _1568 _1569 _1570 _1571 _1572 _1573 _1574 _1575 _1576 _1578 _1579 _1580 _1581 _1582 _1583 _1584 _1585 _1586 _1587 _1588 _1589 _1590 _1591 _1592 _1593 _1594 _1595 _1596 _1597 _1598 _1599 _1566 _1600 _1601 _1602 _1603 _1604 _1605 _1606 _1607 _1608 _1609 _1610 _1611 _1612 _1613 _1614 _1615 _1616 _1617 _1618 _1619 _1620 _1621 _1622 _1623 _1624 _1625 _1626 _1627 _1628 _1629 _1630 _1631 _1632 _1633 _1634 _1635 _1636 _1637 _1638 _1639 _1640 _1641 _1642 _1643 _1644 _1645 _1646 _1647 _1648 _1649 _1650 _1651 _1652 _1653 _1654 _1655 _1656 _1657 _1658 _1659 _1660 _1661 _1662 _1663 _1664 _1665 _1666 _1667 _1668 _1669 _1670 _1671 _1672 _1673 _1674 _1675 _1676 _1677 _1678 _1679 _1680 _1681 _1682 _1683 _1684 _1685 _1686 _1687 _1688 _1689 _1690 _1691 _1692 _1693 _1694 _1695 _1696 _1697 _1698 _1699 _1700 _1701 _1702 _1703 _1704 _1705 _1706 _1707 _1708 _1709 _1710 _1711 _1712 _1713 _1714 _1715 _1716 _1717 _1718 _1719 _1720 _1721 _1722 _1723 _1724 _1725 _1726 _1727 _1728 _1729 _1730 _1731 _1732 _1733 _1734 _1735 _1736 _1737 _1738 _1739 _1740 _1741 _1742 _1743 _1744 _1745 _1746 _1747 " mangled="_Z2::"/> <Namespace id="_2" name="std" context="_1" members="_1752 _1753 _1758 _1759 _1770 _1771 _1776 _1777 _1782 _1783 _1785 _1786 _1787 _1788 _1789 _1790 _1791 _1792 _1793 _1794 _1800 _1801 _1802 _1803 _1804 _1805 _1806 _1807 _1808 _1809 _1810 _1811 _1812 _1813 _1814 _1817 _1818 _1819 _1820 _1821 _1822 _1823 _1824 _1825 _1826 _1827 _1828 _1839 _1840 _1841 _1842 _1843 _1844 _1845 _1846 _1847 _1848 _1849 _1850 _1851 _1852 _1853 _1854 _1855 _1856 _1857 _1858 _1862 _1863 _1864 _1865 _1866 _1867 _1868 _1869 _1870 _1871 _1872 _1873 _1874 _1875 _1876 _1877 _1878 _1879 _1880 _1881 _1882 _1883 _1884 _1885 _1886 _1887 _1888 _1889 _1890 _1891 _1892 _1893 _1894 _1895 _1896 _1920 _1930 _1931 _1932 _1933 _1934 _1935 _1936 _1937 _1938 _1939 _1940 _1941 _1942 _1943 _1944 _1945 _1946 _1947 _1948 _1949 _1950 _1951 _1952 _1953 _1954 _1955 _1956 _1957 _1958 _1959 _1960 _1961 _1962 _1963 _1964 _1965 _1966 _1967 _1968 _1969 _1970 _1971 _1972 _1973 _1974 _1975 _1976 _1977 _1978 _1979 _2001 _2002 _2037 _2039 _2041 _2040 _2042 _2043 _2044 _2045 _2046 _2047 _2052 _2053 _2054 _2154 _2156 _2157 _2158 _2215 _2216 _2217 _2218 _2219 _2220 _2222 _2223 _2224 _2225 _2226 _2227 _2228 _2229 _2230 _2231 _2232 _2233 _2234 _2235 _2236 _2238 _2240 _2242 _2244 _2246 _2248 _2250 _2252 _2254 _2256 _2258 _2260 _2262 _2264 _2266 _2268 _2270 _2272 _2274 _2276 _2278 _2280 _2282 _2284 _2286 _2288 _2289 _2290 _2291 _2292 _2293 _2294 _2295 _2296 _2297 _2298 _2299 _2300 _2301 _2302 _2303 _2305 _2306 _2307 _2308 _2309 _2310 _2311 _2312 _2313 _2314 _2315 _2316 _2317 _2318 _2320 _2322 _2323 _2356 _2357 _2358 _2359 _2360 _2361 _2362 _2363 _2364 _2365 " mangled="_Z3std"/> ! <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppfOBf0b" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> [...13548 lines suppressed...] <CvQualifiedType id="_3201c" type="_3201" const="1"/> <CvQualifiedType id="_3254c" type="_3254" const="1"/> ! <CvQualifiedType id="_9367c" type="_9367" const="1"/> ! <Class id="_9391" name="deque<char,std::allocator<char> >" context="_2" mangled="St5dequeIcSaIcEE" location="f81:638" file="f81" line="638"/> <CvQualifiedType id="_3198c" type="_3198" const="1"/> ! <PointerType id="_9949" type="_1173"/> ! <PointerType id="_9950" type="_3165"/> ! <PointerType id="_9951" type="_3130"/> ! <PointerType id="_9952" type="_2438"/> ! <Namespace id="_9953" name="__cxxabiv1" context="_1" mangled="_Z10__cxxabiv1"/> ! <ReferenceType id="_9954" type="_6393"/> ! <Unimplemented id="_9955" tree_code="188" tree_code_name="template_type_parm" node="0xcb56f50"/> ! <MethodType id="_9956" basetype="_9958" returns="_1139"> </MethodType> ! <MethodType id="_9957" basetype="_9959" returns="_1139"> </MethodType> ! <Struct id="_9958" name="FinderConcept<boost::algorithm::detail::first_finderF<const char*, boost::algorithm::is_equal>,__gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >" context="_2981" mangled="N5boost9algorithm13FinderConceptINS0_6detail13first_finderFIPKcNS0_8is_equalEEEN9__gnu_cxx17__normal_iteratorIS5_SsEEEE" location="f244:35" file="f244" line="35"/> ! <Struct id="_9959" name="FormatterConcept<boost::algorithm::detail::const_formatF<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,boost::algorithm::detail::first_finderF<const char*, boost::algorithm::is_equal>,__gnu_cxx::__normal_iterator<const char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >" context="_2981" mangled="N5boost9algorithm16FormatterConceptINS0_6detail13const_formatFISsEENS2_13first_finderFIPKcNS0_8is_equalEEEN9__gnu_cxx17__normal_iteratorIS7_SsEEEE" location="f244:62" file="f244" line="62"/> <File id="f0" name="/home/roman/boost_cvs/boost/algorithm/string/sequence_traits.hpp"/> <File id="f1" name="/home/roman/boost_cvs/boost/date_time/date_facet.hpp"/> |
Update of /cvsroot/pygccxml/source/pyplusplus/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32522/pyplusplus/unittests Modified Files: algorithms_tester.py call_policies_tester.py class_order_tester.py dwrapper_printer_tester.py enums_tester.py free_function_ignore_bug_tester.py fundamental_tester_base.py mdecl_wrapper_tester.py operators_tester.py recursive_tester.py user_text_tester.py Removed Files: boost_filesystem.py boost_regex.py filesystem_tester.py Log Message: module_builder_t class interface has been changed: as we agrees with Matthias: every step should be done explicitly: declaration parsing in __init__( I decided about this ) build_code_creator() <- creates code creators tree, user has full control on module_creator.creator_t class initialization write_module <- writes module to file split_module <- splits module code to mutliple files I will post about those changes on mailing list later. --- filesystem_tester.py DELETED --- Index: class_order_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/class_order_tester.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class_order_tester.py 15 Mar 2006 09:27:07 -0000 1.5 --- class_order_tester.py 21 Mar 2006 08:07:30 -0000 1.6 *************** *** 21,25 **** def customize(self, mb ): ! extmodule = mb.module_creator matcher = declarations.match_declaration_t( name='item', type=declarations.class_t ) item_creator = code_creators.creator_finder.find_by_declaration( matcher, extmodule.body.creators )[0] --- 21,26 ---- def customize(self, mb ): ! mb.build_code_creator( self.EXTENSION_NAME ) ! extmodule = mb.code_creator matcher = declarations.match_declaration_t( name='item', type=declarations.class_t ) item_creator = code_creators.creator_finder.find_by_declaration( matcher, extmodule.body.creators )[0] Index: call_policies_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/call_policies_tester.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** call_policies_tester.py 15 Mar 2006 09:27:07 -0000 1.9 --- call_policies_tester.py 21 Mar 2006 08:07:30 -0000 1.10 *************** *** 22,30 **** def customize(self, mb ): ! rsa = mb.calldef( 'return_second_arg' ) ! self.failUnless( rsa ) ! rsa.call_policies = decl_wrappers.return_arg( 2 ) ! rs = mb.calldef( 'return_self' ) ! rs.call_policies = decl_wrappers.return_self() def run_tests(self, module): --- 22,27 ---- def customize(self, mb ): ! mb.calldef( 'return_second_arg' ).call_policies = decl_wrappers.return_arg( 2 ) ! mb.calldef( 'return_self' ).call_policies = decl_wrappers.return_self() def run_tests(self, module): Index: recursive_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/recursive_tester.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** recursive_tester.py 16 Mar 2006 06:34:09 -0000 1.4 --- recursive_tester.py 21 Mar 2006 08:07:30 -0000 1.5 *************** *** 26,38 **** decls = mb.decls( matcher ) decls.ignore = True matcher = declarations.match_declaration_t( name='skip_a' ) found = code_creators.creator_finder.find_by_declaration( matcher ! , mb.module_creator.creators ) self.failUnless( not found, "'skip_a' declaration should not be exported" ) matcher = declarations.match_declaration_t( name='skip_b' ) found = code_creators.creator_finder.find_by_declaration( matcher ! , mb.module_creator.creators ) self.failUnless( not found, "'skip_b' declaration should not be exported" ) --- 26,40 ---- decls = mb.decls( matcher ) decls.ignore = True + + mb.build_code_creator( self.EXTENSION_NAME ) matcher = declarations.match_declaration_t( name='skip_a' ) found = code_creators.creator_finder.find_by_declaration( matcher ! , mb.code_creator.creators ) self.failUnless( not found, "'skip_a' declaration should not be exported" ) matcher = declarations.match_declaration_t( name='skip_b' ) found = code_creators.creator_finder.find_by_declaration( matcher ! , mb.code_creator.creators ) self.failUnless( not found, "'skip_b' declaration should not be exported" ) Index: mdecl_wrapper_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/mdecl_wrapper_tester.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mdecl_wrapper_tester.py 6 Mar 2006 05:02:41 -0000 1.1 --- mdecl_wrapper_tester.py 21 Mar 2006 08:07:30 -0000 1.2 *************** *** 31,40 **** , undefine_symbols=['__MINGW32__']) ! mb = module_builder.module_builder_t( ! 'dummy' ! , self._get_files() ! , config ) classes = filter( lambda d: isinstance( d, decl_wrappers.class_t ) ! , declarations.make_flatten( mb.declarations ) ) mdw = decl_wrappers.mdecl_wrapper_t( classes ) --- 31,37 ---- , undefine_symbols=['__MINGW32__']) ! mb = module_builder.module_builder_t( self._get_files(), config ) classes = filter( lambda d: isinstance( d, decl_wrappers.class_t ) ! , declarations.make_flatten( mb.global_ns ) ) mdw = decl_wrappers.mdecl_wrapper_t( classes ) Index: enums_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/enums_tester.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** enums_tester.py 15 Mar 2006 09:27:07 -0000 1.9 --- enums_tester.py 21 Mar 2006 08:07:30 -0000 1.10 *************** *** 22,26 **** def customize(self, mb ): color = mb.enumeration( 'color' ) - self.failUnless(color) color.alias = 'Color' color.value_aliases['red'] = 'RED' --- 22,25 ---- Index: free_function_ignore_bug_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/free_function_ignore_bug_tester.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** free_function_ignore_bug_tester.py 19 Mar 2006 13:35:39 -0000 1.1 --- free_function_ignore_bug_tester.py 21 Mar 2006 08:07:30 -0000 1.2 *************** *** 22,28 **** def customize(self, mb ): do_nothing = mb.free_functions( 'do_nothing' ) ! do_nothing.exclude() ! code = mb.module_creator.create() ! print code self.failUnless( 'do_nothing' not in code ) --- 22,28 ---- def customize(self, mb ): do_nothing = mb.free_functions( 'do_nothing' ) ! do_nothing.exclude() ! mb.build_code_creator(self.EXTENSION_NAME) ! code = mb.code_creator.create() self.failUnless( 'do_nothing' not in code ) Index: dwrapper_printer_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/dwrapper_printer_tester.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** dwrapper_printer_tester.py 6 Mar 2006 05:00:34 -0000 1.1 --- dwrapper_printer_tester.py 21 Mar 2006 08:07:30 -0000 1.2 *************** *** 13,17 **** class tester_t(unittest.TestCase): - def _get_files( self ): files = [ --- 13,16 ---- *************** *** 31,40 **** , undefine_symbols=['__MINGW32__']) ! mb = module_builder.module_builder_t( ! 'dummy' ! , self._get_files() ! , config ) writer = lambda decl: None ! decl_wrappers.print_declarations( mb.declarations, writer=writer ) def create_suite(): --- 30,36 ---- , undefine_symbols=['__MINGW32__']) ! mb = module_builder.module_builder_t( self._get_files(), config ) writer = lambda decl: None ! decl_wrappers.print_declarations( mb.global_ns, writer=writer ) def create_suite(): Index: operators_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/operators_tester.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** operators_tester.py 15 Mar 2006 09:27:07 -0000 1.9 --- operators_tester.py 21 Mar 2006 08:07:30 -0000 1.10 *************** *** 24,39 **** mb.global_ns.exclude() - #I don't want to export base classes of 'rational<long int>' - rational = mb.class_('rational<long int>') rational.include() rational.alias = "pyrational" - foperators = mb.free_operators( lambda decl: 'rational<long int>' in decl.decl_string ) - foperators.include() - r_assign = rational.calldef( 'assign', recursive=False ) r_assign.call_policies = decl_wrappers.return_self() ! bad_rational = mb.class_('bad_rational' ) bad_rational.include() --- 24,37 ---- mb.global_ns.exclude() rational = mb.class_('rational<long int>') rational.include() rational.alias = "pyrational" r_assign = rational.calldef( 'assign', recursive=False ) r_assign.call_policies = decl_wrappers.return_self() ! ! foperators = mb.free_operators( lambda decl: 'rational<long int>' in decl.decl_string ) ! foperators.include() ! bad_rational = mb.class_('bad_rational' ) bad_rational.include() --- boost_regex.py DELETED --- Index: user_text_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/user_text_tester.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** user_text_tester.py 19 Mar 2006 05:45:14 -0000 1.1 --- user_text_tester.py 21 Mar 2006 08:07:30 -0000 1.2 *************** *** 26,31 **** wrapper_code = "/*wrapper code*/" data.add_wrapper_code( wrapper_code ) ! code = mb.module_creator.create() ! self.failUnless( ( class_code in code ) and ( wrapper_code in code ) ) --- 26,31 ---- wrapper_code = "/*wrapper code*/" data.add_wrapper_code( wrapper_code ) ! mb.build_code_creator( self.EXTENSION_NAME ) ! code = mb.code_creator.create() self.failUnless( ( class_code in code ) and ( wrapper_code in code ) ) Index: fundamental_tester_base.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/fundamental_tester_base.py,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** fundamental_tester_base.py 15 Mar 2006 09:27:07 -0000 1.30 --- fundamental_tester_base.py 21 Mar 2006 08:07:30 -0000 1.31 *************** *** 61,73 **** , include_paths=[autoconfig.boost_path] , undefine_symbols=['__MINGW32__']) ! mb = module_builder.module_builder_t( self.__module_name ! , [self.__to_be_exported_header] ! , config ) self.customize( mb ) ! mb.module_creator.std_directories.extend( autoconfig.scons_config.cpppath ) ! mb.module_creator.user_defined_directories.append( autoconfig.package_location ) ! mb.module_creator.precompiled_header = "boost/python.hpp" ! mb.module_creator.license = LICENSE ! mb.write_file( self.__generated_source_file_name ) def _create_sconstruct(self, sources ): --- 61,73 ---- , include_paths=[autoconfig.boost_path] , undefine_symbols=['__MINGW32__']) ! mb = module_builder.module_builder_t( [self.__to_be_exported_header], config ) self.customize( mb ) ! if not mb.has_code_creator(): ! mb.build_code_creator( self.__module_name ) ! mb.code_creator.std_directories.extend( autoconfig.scons_config.cpppath ) ! mb.code_creator.user_defined_directories.append( autoconfig.package_location ) ! mb.code_creator.precompiled_header = "boost/python.hpp" ! mb.code_creator.license = LICENSE ! mb.write_module( self.__generated_source_file_name ) def _create_sconstruct(self, sources ): Index: algorithms_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/algorithms_tester.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** algorithms_tester.py 2 Mar 2006 07:07:13 -0000 1.9 --- algorithms_tester.py 21 Mar 2006 08:07:30 -0000 1.10 *************** *** 24,32 **** config = parser.config_t( gccxml_path=autoconfig.gccxml_path ) mb = module_builder.module_builder_t( ! 'dummy' ! , [ parser.create_text_fc( 'namespace enums{ enum { OK=1 }; }' )] , config ) mb.namespace( name='::enums' ).include() ! flatten = code_creators.make_flatten(mb.module_creator.creators) self.failUnless( filter( lambda inst: isinstance( inst, code_creators.unnamed_enum_t ), flatten ) ) --- 24,32 ---- config = parser.config_t( gccxml_path=autoconfig.gccxml_path ) mb = module_builder.module_builder_t( ! [ parser.create_text_fc( 'namespace enums{ enum { OK=1 }; }' ) ] , config ) mb.namespace( name='::enums' ).include() ! mb.build_code_creator('dummy') ! flatten = code_creators.make_flatten(mb.code_creator.creators) self.failUnless( filter( lambda inst: isinstance( inst, code_creators.unnamed_enum_t ), flatten ) ) *************** *** 35,46 **** config = parser.config_t( gccxml_path=autoconfig.gccxml_path ) mb = module_builder.module_builder_t( ! 'dummy' ! , [ parser.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )] , config ) mb.namespace( name='::enums' ).include() enum_matcher = declarations.match_declaration_t( name='color' ) enum_found = code_creators.creator_finder.find_by_declaration( enum_matcher ! , mb.module_creator.creators ) self.failUnless( enum_found ) --- 35,46 ---- config = parser.config_t( gccxml_path=autoconfig.gccxml_path ) mb = module_builder.module_builder_t( ! [ parser.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )] , config ) mb.namespace( name='::enums' ).include() enum_matcher = declarations.match_declaration_t( name='color' ) + mb.build_code_creator( 'dummy' ) enum_found = code_creators.creator_finder.find_by_declaration( enum_matcher ! , mb.code_creator.creators ) self.failUnless( enum_found ) *************** *** 48,58 **** config = parser.config_t( gccxml_path=autoconfig.gccxml_path ) mb = module_builder.module_builder_t( ! 'dummy' ! , [ parser.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )] , config ) mb.namespace( name='::enums' ).include() enum_found = code_creators.creator_finder.find_by_class_instance( code_creators.enum_t ! , mb.module_creator.creators , recursive=True) self.failUnless( enum_found ) --- 48,58 ---- config = parser.config_t( gccxml_path=autoconfig.gccxml_path ) mb = module_builder.module_builder_t( ! [ parser.create_text_fc( 'namespace enums{ enum color{ red = 1}; }' )] , config ) mb.namespace( name='::enums' ).include() + mb.build_code_creator('dummy') enum_found = code_creators.creator_finder.find_by_class_instance( code_creators.enum_t ! , mb.code_creator.creators , recursive=True) self.failUnless( enum_found ) --- boost_filesystem.py DELETED --- |
From: Roman <rom...@us...> - 2006-03-21 08:07:34
|
Update of /cvsroot/pygccxml/source/pyplusplus/module_builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32522/pyplusplus/module_builder Modified Files: builder.py Log Message: module_builder_t class interface has been changed: as we agrees with Matthias: every step should be done explicitly: declaration parsing in __init__( I decided about this ) build_code_creator() <- creates code creators tree, user has full control on module_creator.creator_t class initialization write_module <- writes module to file split_module <- splits module code to mutliple files I will post about those changes on mailing list later. Index: builder.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/module_builder/builder.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** builder.py 19 Mar 2006 13:35:39 -0000 1.3 --- builder.py 21 Mar 2006 08:07:29 -0000 1.4 *************** *** 13,62 **** from pyplusplus import file_writers class module_builder_t(object): ! def __init__( self, module_name, files, gccxml_config ): object.__init__( self ) ! self.__module_name = module_name ! self.__decls = None ! self.__global_ns = None ! self.__module_creator = None ! self.__files = files ! self.__gccxml_config = gccxml_config ! self.__call_policies_resolver = mcreator_package.built_in_resolver_t() ! ! def _get_declarations( self ): ! if not self.__decls: ! reader = parser.project_reader_t( self.__gccxml_config, None, decl_wrappers.dwfactory_t() ) ! self.__decls = reader.read_files( self.__files ) ! self.__apply_decls_defaults() ! return self.__decls ! declarations = property( _get_declarations ) ! ! def __get_call_policies_resolver( self ): ! return self.__call_policies_resolver ! def __set_call_policies_resolver( self, call_policies_resolver ): ! self.__call_policies_resolver = call_policies_resolver ! call_policies_resolver = property( __get_call_policies_resolver, __set_call_policies_resolver ) ! def __get_file_names(self): ! fnames = [] ! for f in self.__files: ! if isinstance( f, types.StringTypes ): ! fnames.append( f ) ! elif isinstance( f, parser.file_configuration_t ): ! if f.content_type in ( parser.CONTENT_TYPE.STANDARD_SOURCE_FILE ! , parser.CONTENT_TYPE.CACHED_SOURCE_FILE ): ! fnames.append( f.data ) ! else: ! raise RuntimeError( "Unknow content type of file: %s" % f ) ! return fnames ! ! def __apply_decls_defaults(self): ! fnames = self.__get_file_names() ! dnames = map( lambda fname: os.path.split( fname )[0], fnames ) ! locations = fnames + dnames ! relevant_decls = decls_package.filtering.by_location( self.__decls, locations ) relevant_decls_ids = map( id, relevant_decls ) call_policies_resolver = mcreator_package.built_in_resolver_t() ! for decl in decls_package.make_flatten( self.__decls ): if id( decl ) not in relevant_decls_ids: decl.ignore = True --- 13,49 ---- from pyplusplus import file_writers + class module_builder_t(object): ! def __init__( self, files, gccxml_config=None, compilation_mode=None, cache=None ): object.__init__( self ) ! self.__global_ns = self.__parse_declarations( files ! , gccxml_config ! , compilation_mode ! , cache ) ! self.__code_creator = None ! ! def _get_global_ns( self ): ! return self.__global_ns ! global_ns = property( _get_global_ns, doc="reference to global namespace" ) ! def __parse_declarations( self, files, gccxml_config, compilation_mode, cache ): ! if None is gccxml_config: ! gccxml_config = parser.config_t() ! if None is compilation_mode: ! compilation_mode = parser.COMPILATION_MODE.FILE_BY_FILE ! reader = parser.project_reader_t( gccxml_config, cache, decl_wrappers.dwfactory_t() ) ! decls = reader.read_files( files, compilation_mode ) ! self.__apply_decls_defaults(decls, reader.get_os_file_names(files) ) ! return decls_package.matcher.get_single( ! decls_package.namespace_matcher_t( name='::' ) ! , decls ) ! ! def __apply_decls_defaults(self, decls, parsed_files): ! dnames = map( lambda fname: os.path.split( fname )[0], parsed_files ) ! locations = parsed_files + dnames ! relevant_decls = decls_package.filtering.by_location( decls, locations ) relevant_decls_ids = map( id, relevant_decls ) call_policies_resolver = mcreator_package.built_in_resolver_t() ! for decl in decls_package.make_flatten( decls ): if id( decl ) not in relevant_decls_ids: decl.ignore = True *************** *** 67,94 **** decl.alias = '__call__' ! def _get_module_creator( self ): ! if not self.__module_creator: ! creator = mcreator_package.creator_t( self.declarations ! , self.__module_name ! , call_policies_resolver_=self.call_policies_resolver ! , create_castinig_constructor=True ) ! self.__module_creator = creator.create() ! return self.__module_creator ! module_creator = property( _get_module_creator ) ! def write_file( self, file_name ): ! file_writers.write_file( self.module_creator, file_name ) ! def write_multiple_files(self, dir_name): ! file_writers.write_multiple_files( self.module_creator, dir_name ) ! ! def _get_global_ns( self ): ! if not self.__global_ns: ! self.__global_ns = decls_package.matcher.get_single( ! decls_package.namespace_matcher_t( name='::' ) ! , self.declarations ) ! return self.__global_ns ! global_ns = property( _get_global_ns ) def decl( self, *args, **keywds ): return self.global_ns.decl( *args, **keywds ) --- 54,92 ---- decl.alias = '__call__' ! def build_code_creator( self ! , module_name ! , boost_python_ns_name='bp' ! , create_castinig_constructor=True ! , call_policies_resolver_=None ! , types_db=None ! , target_configuration=None ): ! creator = mcreator_package.creator_t( self.global_ns ! , module_name ! , boost_python_ns_name ! , create_castinig_constructor ! , call_policies_resolver_ ! , types_db ! , target_configuration ) ! self.__code_creator = creator.create() ! return self.__code_creator ! def _get_module( self ): ! if not self.__code_creator: ! raise RuntimeError( "self.module is equal to None. Did you forget to call create_module function?" ) ! return self.__code_creator ! code_creator = property( _get_module, doc="reference to L{code_creators.module_t} instance" ) ! ! def has_code_creator( self ): ! return not ( None is self.__code_creator ) ! ! def write_module( self, file_name ): ! """ Writes module to single file""" ! file_writers.write_file( self.code_creator, file_name ) ! def split_module(self, dir_name): ! """Writes module to multiple files""" ! file_writers.write_multiple_files( self.code_creator, dir_name ) + #select decl(s) interfaces def decl( self, *args, **keywds ): return self.global_ns.decl( *args, **keywds ) |
From: Roman <rom...@us...> - 2006-03-21 08:07:33
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/py_easybmp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32522/pyplusplus/examples/py_easybmp Modified Files: create_easybmp.py Log Message: module_builder_t class interface has been changed: as we agrees with Matthias: every step should be done explicitly: declaration parsing in __init__( I decided about this ) build_code_creator() <- creates code creators tree, user has full control on module_creator.creator_t class initialization write_module <- writes module to file split_module <- splits module code to mutliple files I will post about those changes on mailing list later. Index: create_easybmp.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_easybmp/create_easybmp.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** create_easybmp.py 16 Mar 2006 06:35:41 -0000 1.12 --- create_easybmp.py 21 Mar 2006 08:07:29 -0000 1.13 *************** *** 28,34 **** , working_directory=settings.easybmp_path ) #initialize module builder ! mb = module_builder.module_builder_t( settings.module_name ! , [ header_file ] ! , parser_config ) bmp_class = mb.class_( 'BMP' ) --- 28,32 ---- , working_directory=settings.easybmp_path ) #initialize module builder ! mb = module_builder.module_builder_t( [ header_file ], parser_config ) bmp_class = mb.class_( 'BMP' ) *************** *** 37,46 **** call_operator.call_policies = decl_wrappers.return_internal_reference() #customizing code, before generation ! mb.module_creator.license = license ! mb.module_creator.user_defined_directories.append( settings.easybmp_path ) ! mb.module_creator.precompiled_header = 'boost/python.hpp' ! mb.module_creator.adopt_creator( code_creators.include_t( header=header_file ), 2 ) ! mb.write_file( os.path.join( settings.generated_files_dir, settings.module_name + '.cpp') ) if __name__ == '__main__': --- 35,45 ---- call_operator.call_policies = decl_wrappers.return_internal_reference() #customizing code, before generation ! mb.build_code_creator( settings.module_name ) ! mb.code_creator.license = license ! mb.code_creator.user_defined_directories.append( settings.easybmp_path ) ! mb.code_creator.precompiled_header = 'boost/python.hpp' ! mb.code_creator.adopt_creator( code_creators.include_t( header=header_file ), 2 ) ! mb.write_module( os.path.join( settings.generated_files_dir, settings.module_name + '.cpp') ) if __name__ == '__main__': |
From: Matthias B. <mb...@us...> - 2006-03-20 14:21:36
|
Update of /cvsroot/pygccxml/source/pyplusplus/experimental In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13359 Modified Files: pypp_api.py Log Message: Added some more info messages (including timings) and added the arguments for buildCreators() and writeModule() also to the constructor. The args can now either be set in the constructor or, as before, when calling the methods. Index: pypp_api.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/experimental/pypp_api.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pypp_api.py 20 Mar 2006 09:32:24 -0000 1.9 --- pypp_api.py 20 Mar 2006 14:21:32 -0000 1.10 *************** *** 28,32 **** """ ! import os, os.path, re # Bring in everything I need from pyplusplus and pygccxml --- 28,32 ---- """ ! import os, os.path, re, time # Bring in everything I need from pyplusplus and pygccxml *************** *** 65,87 **** class ModuleBuilder: ! """ Wrapper for a module (or part of a module). ! Captures handling of parsing and writing out bindings. ! Note: The public namespace '::' is the root decl for the Module. ! By default all declarations are ignored. ! """ ! def __init__(self, headerFiles, workingDir=None, ! includePaths=[], gccxmlPath = '', ! defines=[], undefines=[], ! cacheFile = None, verbose=True): """Initialize module. ! @param workingDir: directory to start processing. (default: current working dir) @param includePaths: List of paths to tell gccxml to search for header files. @param gccxmlPath: path to gccxml. If not set then attempt to find it in system path. @param defines: set of symbols to add as defined when compiling. @param undefines: set of symbols to add as undefined when compiling. ! @param cacheFile: name of file to use for caching parse data for this module. @param verbose: if true output status and command information as building the module. """ if not isinstance(headerFiles, list): --- 65,118 ---- class ModuleBuilder: ! """Wrapper for a module (or part of a module). ! ! Captures handling of parsing and writing out bindings. ! Note: The public namespace '::' is the root decl for the Module. ! By default all declarations are ignored. ! ! @group Control methods: parse, buildCreators, writeModule """ ! def __init__(self, ! headerFiles = [], ! workingDir = None, ! includePaths = [], ! gccxmlPath = '', ! defines = [], ! undefines = [], ! cacheFile = None, ! cacheDir = None, ! moduleName = None, ! output = "bindings", ! multiFile = False, ! useScope = False, ! verbose = True): """Initialize module. ! ! @param headerFiles: The header files to parse ! @type headerFiles: str or list of str @param workingDir: directory to start processing. (default: current working dir) + @type workingDir: str @param includePaths: List of paths to tell gccxml to search for header files. + @type includePaths: list of str @param gccxmlPath: path to gccxml. If not set then attempt to find it in system path. + @type gccxmlPath: str @param defines: set of symbols to add as defined when compiling. + @type defines: list of str @param undefines: set of symbols to add as undefined when compiling. ! @type undefines: list of str ! @param cacheFile: name of file to use for caching parse data for this module using the file cache. ! @type cacheFile: str ! @param cacheDir: The name of the directory to use for caching parse data using the directory cache. ! @type cacheDir: str ! @param moduleName: The name of the Python module to generate ! @type moduleName: str ! @param output: The output file name or directory ! @type output: str ! @param multiFile: Determines whether the output will be written in one single file or in several files ! @type multiFile: bool ! @param useScope: If true the creators all use scope in their code. ! @type useScope: bool @param verbose: if true output status and command information as building the module. + @type verbose: bool """ if not isinstance(headerFiles, list): *************** *** 96,99 **** --- 127,135 ---- self.mUndefines = undefines self.mCacheFile = cacheFile # File to use for caching gccxml output + self.mCacheDir = cacheDir # Directory to use for caching + self.mModuleName = moduleName # Name of the Python extension module + self.mOutput = output # Output file or directory name + self.mMultiFile = multiFile # Multi file flag + self.mUseScope = useScope # Use scope self.mVerbose = verbose # Should there be verbose output during processing self.mDeclRoot = None # Root of the parsed decls (as declaration_t object) *************** *** 108,111 **** --- 144,149 ---- self.mLicense = None # License to use self.mExtModule = None # Extension model being built (code creator tree) + self.mStartTime = None # Begin of the parsing step + self.mParseEndTime = None # The time when parsing was finished print "Initialized module." *************** *** 119,126 **** @returns: Returns the root of the declaration tree @postcondition: This class can act as a wrapper for namespace("::") and all declarations are set to be ignored. ! """ if self.mVerbose: print "Parsing headers: ", self.mHeaderFiles # Create and initialize the config object parser_cfg = parser.config_t(self.mGccXmlPath, --- 157,170 ---- @returns: Returns the root of the declaration tree @postcondition: This class can act as a wrapper for namespace("::") and all declarations are set to be ignored. ! """ ! if self.mHeaderFiles==[]: ! raise ValueError, "No header files specified" ! if self.mVerbose: print "Parsing headers: ", self.mHeaderFiles + # Record the time when parsing started... + self.mStartTime = time.time() + # Create and initialize the config object parser_cfg = parser.config_t(self.mGccXmlPath, *************** *** 146,152 **** full_header_list.append(temp_filename) # Create the parser object... the_parser = parser.project_reader_t(config=parser_cfg, ! cache=self.mCacheFile, decl_factory=decl_wrappers.dwfactory_t()) # ...and parse the headers --- 190,210 ---- full_header_list.append(temp_filename) + # Create the cache object... + if self.mCacheDir!=None: + if self.mVerbose: + print "Using directory cache in '%s'"%self.mCacheDir + cache = parser.directory_cache_t(self.mCacheDir) + elif self.mCacheFile!=None: + if self.mVerbose: + print "Using file cache '%s'"%self.mCacheFile + cache = parser.file_cache_t(self.mCacheFile) + else: + if self.mVerbose: + print "No cache in use" + cache = None + # Create the parser object... the_parser = parser.project_reader_t(config=parser_cfg, ! cache=cache, decl_factory=decl_wrappers.dwfactory_t()) # ...and parse the headers *************** *** 182,193 **** real_type_name = real_type_name[2:] self.mTypeDefMap[full_name] = real_type_name ! if self.mVerbose: ! print "completed parsing." return self.mDeclRootWrapper ! def buildCreators(self, moduleName, filename, useScope=False): """ Build creator tree and module from the current declarations. See writeModule for parameter documentation. --- 240,252 ---- real_type_name = real_type_name[2:] self.mTypeDefMap[full_name] = real_type_name ! ! self.mParseEndTime = time.time() if self.mVerbose: ! print "Completed parsing in %s."%self._time2str(self.mParseEndTime-self.mStartTime) return self.mDeclRootWrapper ! def buildCreators(self, moduleName=None, filename=None, useScope=None): """ Build creator tree and module from the current declarations. See writeModule for parameter documentation. *************** *** 200,203 **** --- 259,273 ---- self.parse() + if self.mVerbose: + print "Decoration time:",self._time2str(time.time()-self.mParseEndTime) + startTime = time.time() + + if moduleName==None: + moduleName = self.mModuleName + if moduleName==None: + raise ValueError, "No output module name given" + if useScope==None: + useScope = self.mUseScope + # Lock the decoration interface (an attempt to decorate after this # call will lead to an error) *************** *** 249,252 **** --- 319,325 ---- if self.mLicense: extmodule._set_license(self.mLicense) + + if self.mVerbose: + print "Code creator tree built in %s"%self._time2str(time.time()-startTime) self.mExtModule = extmodule *************** *** 254,259 **** ! def writeModule(self, moduleName, filename, useScope=False, ! multiFile=False, multiCreateMain=True): """ Create the module and write it out. Automatically calls createCreators() and filterExposed() if needed. --- 327,332 ---- ! def writeModule(self, moduleName=None, filename=None, useScope=None, ! multiFile=None, multiCreateMain=True): """ Create the module and write it out. Automatically calls createCreators() and filterExposed() if needed. *************** *** 270,275 **** assert extmodule # Check for missing policies... ! print "Checking policies..." creators = code_creators.make_flatten(self.mExtModule) fmfunctions = filter(lambda creator: isinstance(creator, code_creators.function_t), creators) --- 343,356 ---- assert extmodule + startTime = time.time() + + if filename==None: + filename = self.mOutput + if multiFile==None: + multiFile = self.mMultiFile + # Check for missing policies... ! if self.mVerbose: ! print "Checking policies..." creators = code_creators.make_flatten(self.mExtModule) fmfunctions = filter(lambda creator: isinstance(creator, code_creators.function_t), creators) *************** *** 284,288 **** if self.mVerbose: ! print "Writing out files..." # Write out the file(s) --- 365,369 ---- if self.mVerbose: ! print "Writing out files (%s)..."%filename # Write out the file(s) *************** *** 296,300 **** --- 377,383 ---- if self.mVerbose: + print "Module written in %s"%self._time2str(time.time()-startTime) print "Module generation complete." + print "Total time: %s"%self._time2str(time.time()-self.mStartTime) *************** *** 378,382 **** return content ! class DeclWrapper: --- 461,486 ---- return content ! ! # _time2str ! def _time2str(self, t): ! """Helper method to convert a time value to a readable string. ! ! @param t: Time value in seconds ! @type t: float ! @returns: The time as a string ! @rtype: str ! """ ! if t<60: ! return "%1.0fs"%t ! else: ! min = int(t/60) ! sec = int(t%60) ! if min<60: ! return "%dmin %ds"%(min,sec) ! else: ! h = int(min/60) ! min = int(min%60) ! return "%dh %dmin %ds"%(h,min,sec) ! class DeclWrapper: |
From: Matthias B. <mb...@us...> - 2006-03-20 14:19:00
|
Update of /cvsroot/pygccxml/source/pygccxml/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11921 Modified Files: project_reader.py Log Message: Fixed a typo Index: project_reader.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/parser/project_reader.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** project_reader.py 9 Mar 2006 01:46:15 -0000 1.26 --- project_reader.py 20 Mar 2006 14:18:48 -0000 1.27 *************** *** 161,165 **** self.__dcache.flush() if config.verbose: ! logger.info( "Cache has been fkushed in %.1f secs" % ( time.clock() - start_time ) ) answer = [] --- 161,165 ---- self.__dcache.flush() if config.verbose: ! logger.info( "Cache has been flushed in %.1f secs" % ( time.clock() - start_time ) ) answer = [] |
From: Matthias B. <mb...@us...> - 2006-03-20 10:52:59
|
Update of /cvsroot/pygccxml/source/pyplusplus/experimental In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6427 Modified Files: declwrapper.py Log Message: Modified the cdef() method so that it can also be called with only one argument. In this case, this argument is not quoted because it is supposed to be a valid Boost.Python construct. This can be used to wrap constructors or operators manually. Index: declwrapper.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/experimental/declwrapper.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** declwrapper.py 20 Mar 2006 09:32:24 -0000 1.5 --- declwrapper.py 20 Mar 2006 10:52:55 -0000 1.6 *************** *** 235,239 **** # def ! def cdef(self, name, fn, *args): """Apply a raw def() statement. --- 235,239 ---- # def ! def cdef(self, name, fn=None, *args): """Apply a raw def() statement. *************** *** 245,252 **** It is up to the user to ensure that the C/C++ function cspam is declared and implemented somewhere. ! @param name: Name of the Python method @type name: str ! @param fn: Name of the C++ function that implements the method @type fn: str @param args: There can be up to three additional arguments in any order: A doc string, the call policies and the keywords. --- 245,257 ---- It is up to the user to ensure that the C/C++ function cspam is declared and implemented somewhere. + + If fn is None, the string name is not quoted. You can use this form + to wrap constructors or operators. Example: ! Class("Foo").cdef("bp::init< const MFoo& >()") ! ! @param name: Name of the Python method or a valid Boost.Python construct @type name: str ! @param fn: Name of the C++ function that implements the method or None @type fn: str @param args: There can be up to three additional arguments in any order: A doc string, the call policies and the keywords. *************** *** 256,260 **** self._checkLock() doc,policies,keywords = self._parseDefArgs(args) ! args = ['"%s"'%name, fn] if policies!=None: pass # todo --- 261,268 ---- self._checkLock() doc,policies,keywords = self._parseDefArgs(args) ! if fn==None: ! args = ['%s'%name] ! else: ! args = ['"%s"'%name, fn] if policies!=None: pass # todo |
From: Matthias B. <mb...@us...> - 2006-03-20 09:32:27
|
Update of /cvsroot/pygccxml/source/pyplusplus/experimental In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2910 Modified Files: declwrapper.py pypp_api.py Log Message: 1) Activated the cdef, staticmethod (and addMethod) functions using the new add_code() decoration functions. 2) During selection a set of overloads counts as 1 declaration (i.e. calling Method() may return several declarations without generating an error). 3) Added the option to write a query log file that contains all queries (with a reference to the source line) and the results of the queries. This file can be used to check if a multi query really did what it was supposed to do. Index: pypp_api.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/experimental/pypp_api.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pypp_api.py 14 Mar 2006 10:22:10 -0000 1.8 --- pypp_api.py 20 Mar 2006 09:32:24 -0000 1.9 *************** *** 53,56 **** --- 53,58 ---- from pyplusplus.decl_wrappers import return_value_policy + import declwrapper + PUBLIC = ACCESS_TYPES.PUBLIC PROTECTED = ACCESS_TYPES.PROTECTED *************** *** 192,198 **** --- 194,206 ---- In normal usage the user will not call this directly. Return the base of the creator tree. + + @rtype: module_t """ if None == self.mDeclRoot: self.parse() + + # Lock the decoration interface (an attempt to decorate after this + # call will lead to an error) + declwrapper.decl_lock = True if self.mVerbose: *************** *** 217,221 **** # maker = module_creator.creator_t(self.mFinalDecls, module_name=moduleName) extmodule = maker.create(decl_headers=self.mHeaderFiles) ! # Handle the extra creators that need added mod_body = extmodule.body --- 225,229 ---- # maker = module_creator.creator_t(self.mFinalDecls, module_name=moduleName) extmodule = maker.create(decl_headers=self.mHeaderFiles) ! # Handle the extra creators that need added mod_body = extmodule.body Index: declwrapper.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/experimental/declwrapper.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** declwrapper.py 15 Mar 2006 17:16:39 -0000 1.4 --- declwrapper.py 20 Mar 2006 09:32:24 -0000 1.5 *************** *** 9,13 **** """ ! import types from filters import * import decltypes --- 9,13 ---- """ ! import sys, os.path, inspect, types from filters import * import decltypes *************** *** 21,24 **** --- 21,29 ---- allow_empty_queries = False default_recursive = False + query_log = None + + # If this is set to True an attempt to decorate a declaration will + # result in an error (this is set after the code creators have been created) + decl_lock = False # IDecl *************** *** 39,48 **** """ ! def __init__(self, decls): """Constructor. @param decls: One or more declarations that should be stored in this instance @type decls: declaration_t or list of declaration_t """ if type(decls)!=list: --- 44,56 ---- """ ! def __init__(self, decls, filter=None): """Constructor. @param decls: One or more declarations that should be stored in this instance @type decls: declaration_t or list of declaration_t + @param filter: Filter string (only for informational purposes) + @type filter: str """ + global query_log if type(decls)!=list: *************** *** 53,56 **** --- 61,91 ---- self.decl_handles = decls + # Determine where this instance was created... + filename,funcname,linenr,sourceline = self._sourceInfo() + self.filename = filename + self.funcname = funcname + self.linenr = linenr + self.sourceline = sourceline + + # Dump info about this query... + if query_log: + print >>query_log, 70*"-" + if funcname==None: + print >>query_log, "%s, %d: %s"%(self.filename, self.linenr, self.sourceline) + else: + print >>query_log, "%s, %s(), %d: %s"%(self.filename, self.funcname, self.linenr, self.sourceline) + if filter!=None: + print >>query_log, "Filter: %s"%filter + for decl in self.decl_handles: + declstr = getattr(decl, "decl_string", "[no decl_string] "+pygccxml.declarations.full_name(decl)) + # declstr = pygccxml.declarations.full_name(decl) + clsstr = decl.__class__.__name__.replace("_t", "") + print >>query_log, " -> %s [%s]"%(declstr, clsstr) + if len(self.decl_handles)==0: + print >>query_log, " <no result>" + elif len(self.decl_handles)>1: + print >>query_log, " (%d declarations)"%len(self.decl_handles) + + def __str__(self): """Return a descriptive string.""" *************** *** 87,90 **** --- 122,126 ---- @see: L{ignore()} """ + self._checkLock() for d in self._iterContained(): d.include() *************** *** 103,106 **** --- 139,143 ---- @see: L{expose()} """ + self._checkLock() for d in self._iterContained(): d.exclude() *************** *** 126,129 **** --- 163,167 ---- @type name: str """ + self._checkLock() for decl in self._iterContained(recursive=False): decl.rename(name) *************** *** 136,139 **** --- 174,178 ---- Prevents the generation of wrappers for virtual member functions. """ + self._checkLock() for decl in self._iterContained(): decl.finalize() *************** *** 147,150 **** --- 186,190 ---- @type policy: ...policy... """ + self._checkLock() for decl in self._iterContained(): decl.call_policies = policy *************** *** 156,159 **** --- 196,200 ---- Ex: C{setHeldType("boost::shared_ptr<Class>")} """ + self._checkLock() for decl in self._iterContained(): decl.held_type = heldType *************** *** 165,168 **** --- 206,210 ---- """ + self._checkLock() for decl in self._iterContained(): decl.use_keywords = False *************** *** 185,195 **** @param name: The method name as it will appear in the Python module ! @type name: str: @param impl: The name of the C/C++ function that implements the method. @type impl: str - @returns: Returns a Decl object containing the newly created method. """ ! raise NotImplementedError, "addMethod() isn't implemented yet" ! pass # def --- 227,236 ---- @param name: The method name as it will appear in the Python module ! @type name: str @param impl: The name of the C/C++ function that implements the method. @type impl: str """ ! self.cdef(name, impl) ! # def *************** *** 213,238 **** """ ! raise NotImplementedError, "cdef() isn't implemented yet" ! ! ## doc,policies,keywords = self._parseDefArgs(args) ! ## args = ['"%s"'%name, fn] ! ## if policies!=None: ! ## pass # todo ! ## if keywords!=None: ! ## args.append("(%s)"%", ".join(map(lambda x: "bp::"+str(x), keywords))) ! ## if doc!=None: ! ## a = map(lambda x: "%s\\n"%x, doc.split("\n")) ! ## while len(a)>0 and a[-1]=="\\n": ! ## a = a[:-1] ! ## if len(a)>0: ! ## # Remove the newline in the last line ! ## a[-1] = a[-1][:-2] ! ## args.append('%s'%"\n".join(map(lambda x: '"%s"'%x, a))) ! ## src = 'def( %s )'%(", ".join(args)) ! ## for decl in self._iterContained(no_children=True): ! ## # Add the 'def' source code line to the list of defs... ! ## if not hasattr(decl, "_user_defs"): ! ## decl._user_defs = [] ! ## decl._user_defs.append(src) return self --- 254,276 ---- """ ! self._checkLock() ! doc,policies,keywords = self._parseDefArgs(args) ! args = ['"%s"'%name, fn] ! if policies!=None: ! pass # todo ! if keywords!=None: ! args.append("(%s)"%", ".join(map(lambda x: "bp::"+str(x), keywords))) ! if doc!=None: ! a = map(lambda x: "%s\\n"%x, doc.split("\n")) ! while len(a)>0 and a[-1]=="\\n": ! a = a[:-1] ! if len(a)>0: ! # Remove the newline in the last line ! a[-1] = a[-1][:-2] ! args.append('%s'%"\n".join(map(lambda x: '"%s"'%x, a))) ! src = 'def( %s )'%(", ".join(args)) ! for decl in self._iterContained(recursive=False): ! # Add the 'def' source code... ! decl.add_code(src) return self *************** *** 247,256 **** """ ! raise NotImplementedError, "staticmethod() isn't implemented yet" ! ! # for decl in self._iterContained(no_children=True): ! # if not hasattr(decl, "_user_defs"): ! # decl._user_defs = [] ! # decl._user_defs.append('staticmethod( "%s" )'%name) return self --- 285,292 ---- """ ! self._checkLock() ! for decl in self._iterContained(recursive=False): ! src = 'staticmethod( "%s" )'%name ! decl.add_code(src) return self *************** *** 415,419 **** decls = selection.select(self.decl_handles, filter) ! res = IDecl(decls) count = res.count if allow_empty and count==0: --- 451,455 ---- decls = selection.select(self.decl_handles, filter) ! res = IDecl(decls, str(filter)) count = res.count if allow_empty and count==0: *************** *** 421,427 **** if count==0: raise RuntimeError, "Query produced no results (filter: %s)"%filter if assert_count!=None: ! if res.count!=assert_count: ! raise RuntimeError, "Query produced the wrong number of results (%d instead of %d)"%(res.count, assert_count) return res --- 457,468 ---- if count==0: raise RuntimeError, "Query produced no results (filter: %s)"%filter + res_count = res.count + # If all contained declarations are from one single set of overloads + # then treat that as one single declaration + if res._checkOverloads(): + res_count = 1 if assert_count!=None: ! if res_count!=assert_count: ! raise RuntimeError, "Query produced the wrong number of results (%d instead of %d)"%(res_count, assert_count) return res *************** *** 514,517 **** --- 555,587 ---- totalcount = property(_getTotalCount, None, None, "The total number of contained declarations.") + def _checkLock(self): + """Check that the decoration is not locked. + + If it is locked, an exception is thrown. + """ + global decl_lock + if decl_lock: + raise RuntimeError, "You have to decorate the declarations before the code creators have been built." + + def _checkOverloads(self): + """Check if all contained declarations are from the same set of overloads. + + @returns: True if all contained declarations are from the same set of overloads. + @rtype: bool + """ + if len(self.decl_handles)==0: + return False + # Get a list with the overloaded functions + overloads = getattr(self.decl_handles[0], "overloads", None) + if overloads==None: + return False + + # Check if the decls are all contained in overloads... + for decl in self.decl_handles[1:]: + if decl not in overloads: + return False + + return True + def _parseDefArgs(self, args): """Determine which of the args is the doc string, call policies and keywords argument. *************** *** 584,587 **** --- 654,693 ---- yield node + # _sourceInfo + def _sourceInfo(self): + """Determine where in the user's source code this instance was created. + + Returns a tuple (filename, funcname, linenr, sourceline) that + describes the source code line that created this instance. + funcname is None if the source code is not located inside a function. + + @returns: (filename, funcname, linenr, sourceline) + @rtype: 4-tuple + """ + frame = inspect.currentframe() + try: + records = inspect.getouterframes(frame) + # Determine the directory where this source file is located + apidir = os.path.dirname(records[0][1]) + for rec in records[1:]: + file = rec[1] + dir = os.path.dirname(file) + # Return the first record that is not within the API directory + # (this must then be code from the user) + if dir!=apidir: + linenr = rec[2] + funcname = rec[3] + srcindex = rec[5] + sourceline = rec[4][srcindex] + sourceline = sourceline.strip() + if funcname=="?": + funcname = None + return file,funcname,linenr,sourceline + finally: + del frame + + # We should never get here... + return "?", None, 0, "?" + # This value is used to determine if a declaration was already visited or not |
From: Roman <rom...@us...> - 2006-03-20 06:41:23
|
Update of /cvsroot/pygccxml/source/pygccxml/docs/history In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21155/pygccxml/docs/history Modified Files: history.rest Log Message: Index: history.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/docs/history/history.rest,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** history.rest 1 Feb 2006 07:31:42 -0000 1.5 --- history.rest 20 Mar 2006 06:41:19 -0000 1.6 *************** *** 31,34 **** --- 31,86 ---- * *type_traits.has_public_constructor* + + * *type_traits.is_noncopyable* + + 4. ``decl_printer_t`` class and ``print_declarations`` function have been added. + Now you can print in a nice way your declaration tree or part of it. + Thanks to Allen Bierbaum! + + 5. New class ``declarations.decl_factory_t`` has been added. This is a default + factory for all declarations. From now all relevant parser classes takes as + input instance of this class or ``Null``. In case of ``Null`` instance of + ``declarations.decl_factory_t`` will be created. Using this class you can + easily extend functionality provided by built-in declarations. + + 6. Sometimes, there is a need to find a declaration that match some criteria. + The was such functionality in `pygccxml`_, but it was too limited. This + release fix the situation. `pygccxml`_ adds a set of classes that will help + you to deal with this problem. + + 7. New cache - ``parser.directory_cache_t`` has been implemented. + ``parser.directory_cache_t`` uses individual files stored in a dedicated + cache directory to store the cached contents. + Thanks to Matthias Baas! + + 8. ``parser.file_cache_t`` has been improved a lot. + Thanks to Allen Bierbaum! + + 9. New file configuration is available: "cached source file". + ``parser.project_reader_t`` class will check for existence of `GCC-XML`_ + generated file. If it does not exist it will create one. If it do exist, + then that file will be used by the parser. + + 10. Few helper functions has been added in order to make construction of + cofiguration file to be as easy as possible: + + * ``parser.create_text_fc`` - creates file configuration, that contains text + * ``parser.create_source_fc`` - creates file configuration, that contains + reference to regular source file + * ``parser.create_gccxml_fc`` - creates file configuration, that contains + reference to `GCC-XML`_ generated file + * ``parser.create_cached_source_fc`` - creates file configuration, that + contains reference to 2 files: `GCC-XML`_ generated file and regular source + file + + 11. Small bug fixes. + + 12. Documentation. Allen Bierbaum and Matthias Baas contributed so much in this + area. Almost every public function/class has now documentation string. + + 13. Logging functionality has been added. `pygccxml`_ creates new logger + "pygccxml". Now it is possible to see what `pygccxml`_ is doing right now. + + 14. I am sure I forgot something. |
From: Roman <rom...@us...> - 2006-03-20 05:48:02
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv516/pyplusplus/examples/py_date_time/include Modified Files: date_time.pypp.xml Log Message: removing finalize from the code_creators and adding it to decl wrappers Index: date_time.pypp.xml =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/include/date_time.pypp.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** date_time.pypp.xml 14 Feb 2006 11:07:50 -0000 1.5 --- date_time.pypp.xml 20 Mar 2006 05:47:56 -0000 1.6 *************** *** 3,8 **** <Namespace id="_1" name="::" members="_3 _4 _5 _6 _7 _8 _9 _10 _11 _12 _13 _14 _15 _16 _17 _18 _19 _20 _21 _22 _23 _24 _25 _26 _27 _28 _29 _30 _31 _32 _33 _34 _35 _36 _37 _38 _39 _40 _41 _42 _43 _44 _45 _46 _47 _48 _49 _50 _51 _52 _53 _54 _55 _56 _57 _58 _59 _60 _61 _62 _63 _64 _65 _66 _67 _68 _70 _71 _72 _73 _74 _75 _77 _78 _79 _80 _81 _82 _83 _84 _85 _86 _87 _88 _89 _90 _91 _92 _93 _94 _95 _96 _97 _98 _99 _100 _101 _102 _103 _104 _105 _106 _107 _108 _109 _110 _111 _112 _113 _114 _115 _116 _117 _118 _119 _120 _121 _122 _123 _124 _125 _126 _127 _128 _129 _130 _131 _132 _133 _134 _135 _136 _137 _138 _139 _140 _141 _142 _143 _144 _145 _146 _147 _148 _149 _150 _151 _152 _153 _154 _155 _156 _157 _158 _159 _160 _161 _162 _163 _164 _165 _166 _167 _168 _169 _170 _171 _172 _173 _174 _175 _176 _177 _178 _179 _180 _181 _182 _183 _184 _185 _186 _187 _188 _189 _190 _191 _192 _193 _194 _195 _196 _197 _198 _199 _200 _201 _202 _203 _204 _205 _206 _207 _208 _209 _210 _211 _212 _213 _214 _215 _216 _217 _218 _219 _220 _221 _222 _223 _224 _225 _226 _227 _228 _229 _230 _231 _232 _233 _234 _235 _236 _237 _238 _239 _240 _241 _242 _243 _244 _245 _246 _247 _248 _249 _250 _251 _252 _253 _254 _255 _256 _257 _258 _259 _260 _261 _262 _263 _264 _265 _266 _267 _268 _269 _270 _271 _272 _273 _274 _275 _276 _277 _278 _279 _280 _281 _282 _283 _284 _285 _286 _287 _288 _289 _290 _291 _292 _293 _294 _295 _296 _297 _298 _299 _300 _301 _302 _303 _304 _305 _306 _307 _308 _309 _310 _311 _312 _313 _314 _315 _316 _317 _318 _319 _320 _321 _322 _323 _324 _325 _326 _327 _328 _329 _330 _331 _332 _333 _334 _335 _336 _337 _338 _339 _340 _341 _342 _343 _344 _345 _346 _347 _348 _349 _350 _351 _352 _353 _354 _355 _356 _357 _358 _359 _360 _361 _362 _363 _364 _365 _366 _367 _368 _369 _370 _371 _372 _373 _374 _375 _376 _377 _378 _379 _380 _381 _382 _383 _384 _385 _386 _387 _388 _389 _390 _391 _392 _393 _394 _395 _396 _397 _398 _399 _400 _401 _402 _403 _404 _405 _406 _407 _408 _409 _410 _411 _412 _413 _414 _415 _416 _417 _418 _419 _420 _421 _422 _423 _424 _425 _426 _427 _428 _429 _430 _431 _432 _433 _434 _435 _436 _437 _438 _439 _440 _441 _442 _443 _444 _445 _446 _447 _448 _449 _450 _451 _452 _453 _454 _455 _456 _457 _458 _459 _460 _461 _462 _463 _464 _465 _466 _467 _468 _469 _470 _471 _472 _473 _474 _475 _476 _477 _478 _479 _480 _481 _482 _483 _484 _485 _486 _487 _488 _489 _490 _491 _492 _493 _494 _495 _496 _497 _498 _499 _500 _501 _502 _503 _504 _505 _506 _507 _508 _509 _510 _511 _512 _513 _514 _515 _516 _517 _518 _519 _520 _521 _522 _523 _524 _525 _526 _527 _528 _529 _530 _531 _532 _533 _534 _535 _536 _537 _538 _539 _540 _541 _542 _543 _544 _545 _546 _547 _548 _549 _550 _551 _552 _553 _554 _555 _556 _557 _558 _559 _560 _561 _562 _563 _564 _565 _566 _567 _568 _569 _571 _572 _573 _574 _575 _576 _577 _578 _579 _580 _581 _582 _583 _584 _585 _586 _587 _588 _589 _590 _591 _592 _593 _594 _595 _596 _597 _598 _599 _600 _601 _602 _603 _604 _605 _606 _607 _608 _609 _610 _611 _612 _613 _614 _615 _616 _617 _618 _619 _620 _621 _622 _623 _625 _626 _627 _628 _629 _630 _631 _632 _633 _634 _635 _636 _637 _638 _639 _640 _642 _643 _644 _645 _646 _647 _648 _649 _650 _651 _652 _653 _654 _655 _656 _657 _658 _659 _660 _661 _662 _663 _664 _665 _666 _667 _668 _669 _670 _671 _672 _673 _674 _675 _676 _677 _678 _679 _680 _681 _682 _683 _684 _685 _686 _687 _688 _689 _690 _691 _692 _693 _694 _695 _696 _697 _698 _699 _700 _701 _702 _703 _704 _705 _706 _707 _708 _709 _710 _711 _712 _713 _714 _715 _716 _717 _718 _719 _720 _721 _722 _723 _724 _725 _726 _727 _728 _729 _730 _731 _732 _733 _734 _735 _736 _737 _738 _739 _740 _741 _742 _743 _744 _745 _746 _747 _748 _749 _750 _751 _752 _753 _754 _755 _756 _757 _758 _759 _760 _761 _762 _763 _764 _765 _766 _767 _768 _769 _770 _771 _772 _773 _774 _775 _776 _777 _778 _779 _780 _781 _782 _783 _784 _785 _786 _787 _788 _789 _790 _791 _792 _793 _794 _795 _796 _797 _798 _799 _800 _801 _802 _803 _804 _805 _806 _808 _809 _810 _811 _812 _813 _814 _815 _816 _817 _818 _820 _821 _823 _824 _825 _826 _827 _828 _829 _830 _831 _832 _833 _834 _835 _836 _837 _838 _839 _840 _841 _842 _843 _844 _845 _846 _847 _848 _849 _850 _851 _852 _853 _854 _855 _856 _857 _858 _859 _860 _861 _862 _863 _864 _865 _866 _867 _868 _869 _870 _871 _872 _873 _874 _875 _876 _877 _878 _879 _880 _881 _882 _883 _884 _885 _886 _887 _888 _889 _890 _891 _892 _893 _894 _895 _896 _897 _898 _899 _900 _901 _902 _903 _904 _905 _906 _907 _908 _909 _910 _911 _912 _913 _914 _915 _916 _917 _918 _919 _920 _921 _922 _923 _924 _925 _926 _927 _928 _929 _930 _931 _932 _933 _934 _935 _936 _937 _938 _939 _940 _941 _942 _943 _944 _945 _946 _947 _948 _949 _950 _951 _952 _953 _954 _955 _956 _957 _958 _959 _960 _961 _962 _963 _964 _965 _966 _967 _968 _969 _970 _971 _972 _973 _974 _975 _976 _977 _978 _979 _980 _981 _982 _983 _984 _985 _986 _987 _988 _989 _990 _991 _992 _993 _994 _995 _996 _997 _998 _999 _1000 _1001 _1002 _1003 _1004 _1005 _1006 _1007 _1008 _1009 _1010 _1011 _1012 _1013 _1014 _1015 _1016 _1017 _1018 _1019 _1020 _1021 _1022 _1023 _1024 _1025 _1026 _1027 _1028 _1029 _1030 _1031 _1032 _1033 _1034 _1035 _1036 _1037 _1038 _1039 _1040 _1041 _1042 _1043 _1044 _1045 _1046 _1047 _1048 _1049 _1050 _1051 _1052 _1053 _1054 _1055 _1056 _1057 _1058 _1059 _1060 _1061 _1062 _1063 _1064 _1065 _1066 _1067 _1068 _1069 _1070 _1071 _1072 _1073 _1074 _1075 _1076 _1077 _1078 _1079 _1080 _1082 _1084 _1086 _1087 _1088 _1089 _1090 _1091 _1092 _1093 _1094 _1095 _1096 _1097 _1098 _1099 _1100 _1101 _1102 _1103 _1104 _1105 _1106 _1107 _1108 _1109 _1110 _1111 _1112 _1113 _1114 _1115 _1116 _1118 _1117 _1120 _1122 _1124 _1126 _1127 _1128 _1129 _1130 _1131 _1132 _1133 _1134 _1135 _1136 _1137 _1138 _1140 _1141 _1142 _1143 _1145 _1146 _1148 _1149 _1151 _1152 _1154 _1156 _1158 _1160 _1162 _1164 _1166 _1168 _1170 _1171 _1172 _1173 _1174 _1175 _1176 _1081 _1083 _807 _1177 _1179 _1180 _1178 _1181 _1182 _1183 _1184 _1185 _1186 _1187 _1188 _1189 _1190 _1191 _1192 _1193 _1194 _1195 _1196 _1197 _1198 _1199 _1200 _1201 _1202 _1203 _1204 _1205 _1206 _1207 _1208 _1209 _1210 _1211 _1212 _1213 _1214 _1215 _1216 _1217 _1218 _1219 _1220 _1221 _1222 _1223 _1224 _1225 _1226 _1227 _1228 _1229 _1230 _1231 _1232 _1233 _1235 _1236 _1237 _1238 _1239 _1240 _1241 _1242 _1243 _1244 _1245 _1246 _1247 _1249 _1250 _1251 _1252 _1253 _1255 _1257 _1258 _1259 _1260 _1261 _1263 _1264 _1265 _1266 _1268 _1269 _1270 _1271 _1272 _1273 _1274 _1275 _1276 _1277 _1278 _1279 _1280 _1281 _1282 _1283 _1284 _1285 _1286 _1287 _1288 _1289 _1290 _1291 _1292 _1293 _1294 _1295 _1296 _1297 _1298 _1299 _1300 _1301 _1302 _1303 _1304 _1305 _1306 _1307 _1308 _1309 _1310 _1311 _1312 _1313 _1314 _1315 _1316 _1317 _1318 _1319 _1320 _1321 _1322 _1323 _1324 _1325 _1326 _1327 _1328 _1329 _1330 _1331 _1332 _1333 _1334 _1335 _1336 _1337 _1338 _1339 _1340 _1341 _1342 _1343 _1344 _1345 _1346 _1347 _1348 _1349 _1350 _1351 _1352 _1353 _1354 _1355 _1356 _1357 _1358 _1359 _1360 _1361 _1362 _1363 _1364 _1365 _1366 _1367 _1368 _1369 _1370 _1371 _1372 _1373 _1374 _1375 _1376 _1377 _1378 _1379 _1380 _1381 _1382 _1383 _1384 _1385 _1386 _1387 _1388 _1389 _1390 _1391 _1392 _1393 _1394 _1395 _1396 _1397 _1398 _1399 _1400 _1401 _1402 _1403 _1404 _1405 _1406 _1407 _1408 _1409 _1410 _1411 _1412 _1413 _1414 _1415 _1416 _1417 _1418 _1419 _1420 _1421 _1422 _1423 _1424 _1425 _1426 _1427 _1428 _1429 _1430 _1431 _1432 _1433 _1434 _1435 _1436 _1438 _1439 _1440 _1441 _1442 _1443 _1444 _1445 _1446 _1447 _1448 _1449 _1450 _1451 _1452 _1453 _1454 _1455 _1456 _1457 _1458 _1459 _1460 _1461 _1462 _1463 _1464 _1465 _1466 _1467 _1468 _1469 _1470 _1471 _1472 _1473 _1474 _1475 _1476 _1477 _1478 _1479 _1480 _1481 _1482 _1483 _1484 _1485 _1486 _1487 _1488 _1489 _1490 _1491 _1492 _1493 _1494 _1495 _1496 _1497 _1499 _1498 _1500 _1501 _819 _1502 _1503 _1504 _1505 _1507 _1506 _1509 _1510 _1511 _1512 _1513 _1514 _1515 _1516 _1517 _1518 _1520 _1521 _1522 _1523 _1524 _1525 _1526 _1527 _1528 _1530 _1529 _1531 _1532 _1533 _1534 _1535 _1536 _1537 _1538 _1539 _1540 _1541 _1542 _1543 _1544 _1545 _1546 _1547 _1548 _1549 _1550 _1551 _1552 _1553 _1554 _1555 _1556 _1557 _1558 _1559 _1560 _1561 _1562 _1563 _1564 _1565 _1567 _1568 _1569 _1570 _1571 _1572 _1573 _1574 _1575 _1576 _1578 _1579 _1580 _1581 _1582 _1583 _1584 _1585 _1586 _1587 _1588 _1589 _1590 _1591 _1592 _1593 _1594 _1595 _1596 _1597 _1598 _1599 _1566 _1600 _1601 _1602 _1603 _1604 _1605 _1606 _1607 _1608 _1609 _1610 _1611 _1612 _1613 _1614 _1615 _1616 _1617 _1618 _1619 _1620 _1621 _1622 _1623 _1624 _1625 _1626 _1627 _1628 _1629 _1630 _1631 _1632 _1633 _1634 _1635 _1636 _1637 _1638 _1639 _1640 _1641 _1642 _1643 _1644 _1645 _1646 _1647 _1648 _1649 _1650 _1651 _1652 _1653 _1654 _1655 _1656 _1657 _1658 _1659 _1660 _1661 _1662 _1663 _1664 _1665 _1666 _1667 _1668 _1669 _1670 _1671 _1672 _1673 _1674 _1675 _1676 _1677 _1678 _1679 _1680 _1681 _1682 _1683 _1684 _1685 _1686 _1687 _1688 _1689 _1690 _1691 _1692 _1693 _1694 _1695 _1696 _1697 _1698 _1699 _1700 _1701 _1702 _1703 _1704 _1705 _1706 _1707 _1708 _1709 _1710 _1711 _1712 _1713 _1714 _1715 _1716 _1717 _1718 _1719 _1720 _1721 _1722 _1723 _1724 _1725 _1726 _1727 _1728 _1729 _1730 _1731 _1732 _1733 _1734 _1735 _1736 _1737 _1738 _1739 _1740 _1741 _1742 _1743 _1744 _1745 _1746 _1747 " mangled="_Z2::"/> <Namespace id="_2" name="std" context="_1" members="_1752 _1753 _1758 _1759 _1770 _1771 _1776 _1777 _1782 _1783 _1785 _1786 _1787 _1788 _1789 _1790 _1791 _1792 _1793 _1794 _1800 _1801 _1802 _1803 _1804 _1805 _1806 _1807 _1808 _1809 _1810 _1811 _1812 _1813 _1814 _1817 _1818 _1819 _1820 _1821 _1822 _1823 _1824 _1825 _1826 _1827 _1828 _1839 _1840 _1841 _1842 _1843 _1844 _1845 _1846 _1847 _1848 _1849 _1850 _1851 _1852 _1853 _1854 _1855 _1856 _1857 _1858 _1862 _1863 _1864 _1865 _1866 _1867 _1868 _1869 _1870 _1871 _1872 _1873 _1874 _1875 _1876 _1877 _1878 _1879 _1880 _1881 _1882 _1883 _1884 _1885 _1886 _1887 _1888 _1889 _1890 _1891 _1892 _1893 _1894 _1895 _1896 _1920 _1930 _1931 _1932 _1933 _1934 _1935 _1936 _1937 _1938 _1939 _1940 _1941 _1942 _1943 _1944 _1945 _1946 _1947 _1948 _1949 _1950 _1951 _1952 _1953 _1954 _1955 _1956 _1957 _1958 _1959 _1960 _1961 _1962 _1963 _1964 _1965 _1966 _1967 _1968 _1969 _1970 _1971 _1972 _1973 _1974 _1975 _1976 _1977 _1978 _1979 _2001 _2002 _2037 _2039 _2041 _2040 _2042 _2043 _2044 _2045 _2046 _2047 _2052 _2053 _2054 _2154 _2156 _2157 _2158 _2215 _2216 _2217 _2218 _2219 _2220 _2222 _2223 _2224 _2225 _2226 _2227 _2228 _2229 _2230 _2231 _2232 _2233 _2234 _2235 _2236 _2238 _2240 _2242 _2244 _2246 _2248 _2250 _2252 _2254 _2256 _2258 _2260 _2262 _2264 _2266 _2268 _2270 _2272 _2274 _2276 _2278 _2280 _2282 _2284 _2286 _2288 _2289 _2290 _2291 _2292 _2293 _2294 _2295 _2296 _2297 _2298 _2299 _2300 _2301 _2302 _2303 _2305 _2306 _2307 _2308 _2309 _2310 _2311 _2312 _2313 _2314 _2315 _2316 _2317 _2318 _2320 _2322 _2323 _2356 _2357 _2358 _2359 _2360 _2361 _2362 _2363 _2364 _2365 " mangled="_Z3std"/> ! <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppOZXPsa" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> ! <Function id="_4" name="_GLOBAL__I__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppOZXPsa" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> <Variable id="_5" name="_ZGVN5boost9date_time10date_facetINS_9gregorian4dateEcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE" type="_1256" context="_1" location="f1:372" file="f1" line="372" artificial="1"/> <Function id="_6" name="__static_initialization_and_destruction_0" returns="_1139" context="_1" mangled="_Z41__static_initialization_and_destruction_0ii" location="f0:131" file="f0" line="131" endline="77"> --- 3,8 ---- <Namespace id="_1" name="::" members="_3 _4 _5 _6 _7 _8 _9 _10 _11 _12 _13 _14 _15 _16 _17 _18 _19 _20 _21 _22 _23 _24 _25 _26 _27 _28 _29 _30 _31 _32 _33 _34 _35 _36 _37 _38 _39 _40 _41 _42 _43 _44 _45 _46 _47 _48 _49 _50 _51 _52 _53 _54 _55 _56 _57 _58 _59 _60 _61 _62 _63 _64 _65 _66 _67 _68 _70 _71 _72 _73 _74 _75 _77 _78 _79 _80 _81 _82 _83 _84 _85 _86 _87 _88 _89 _90 _91 _92 _93 _94 _95 _96 _97 _98 _99 _100 _101 _102 _103 _104 _105 _106 _107 _108 _109 _110 _111 _112 _113 _114 _115 _116 _117 _118 _119 _120 _121 _122 _123 _124 _125 _126 _127 _128 _129 _130 _131 _132 _133 _134 _135 _136 _137 _138 _139 _140 _141 _142 _143 _144 _145 _146 _147 _148 _149 _150 _151 _152 _153 _154 _155 _156 _157 _158 _159 _160 _161 _162 _163 _164 _165 _166 _167 _168 _169 _170 _171 _172 _173 _174 _175 _176 _177 _178 _179 _180 _181 _182 _183 _184 _185 _186 _187 _188 _189 _190 _191 _192 _193 _194 _195 _196 _197 _198 _199 _200 _201 _202 _203 _204 _205 _206 _207 _208 _209 _210 _211 _212 _213 _214 _215 _216 _217 _218 _219 _220 _221 _222 _223 _224 _225 _226 _227 _228 _229 _230 _231 _232 _233 _234 _235 _236 _237 _238 _239 _240 _241 _242 _243 _244 _245 _246 _247 _248 _249 _250 _251 _252 _253 _254 _255 _256 _257 _258 _259 _260 _261 _262 _263 _264 _265 _266 _267 _268 _269 _270 _271 _272 _273 _274 _275 _276 _277 _278 _279 _280 _281 _282 _283 _284 _285 _286 _287 _288 _289 _290 _291 _292 _293 _294 _295 _296 _297 _298 _299 _300 _301 _302 _303 _304 _305 _306 _307 _308 _309 _310 _311 _312 _313 _314 _315 _316 _317 _318 _319 _320 _321 _322 _323 _324 _325 _326 _327 _328 _329 _330 _331 _332 _333 _334 _335 _336 _337 _338 _339 _340 _341 _342 _343 _344 _345 _346 _347 _348 _349 _350 _351 _352 _353 _354 _355 _356 _357 _358 _359 _360 _361 _362 _363 _364 _365 _366 _367 _368 _369 _370 _371 _372 _373 _374 _375 _376 _377 _378 _379 _380 _381 _382 _383 _384 _385 _386 _387 _388 _389 _390 _391 _392 _393 _394 _395 _396 _397 _398 _399 _400 _401 _402 _403 _404 _405 _406 _407 _408 _409 _410 _411 _412 _413 _414 _415 _416 _417 _418 _419 _420 _421 _422 _423 _424 _425 _426 _427 _428 _429 _430 _431 _432 _433 _434 _435 _436 _437 _438 _439 _440 _441 _442 _443 _444 _445 _446 _447 _448 _449 _450 _451 _452 _453 _454 _455 _456 _457 _458 _459 _460 _461 _462 _463 _464 _465 _466 _467 _468 _469 _470 _471 _472 _473 _474 _475 _476 _477 _478 _479 _480 _481 _482 _483 _484 _485 _486 _487 _488 _489 _490 _491 _492 _493 _494 _495 _496 _497 _498 _499 _500 _501 _502 _503 _504 _505 _506 _507 _508 _509 _510 _511 _512 _513 _514 _515 _516 _517 _518 _519 _520 _521 _522 _523 _524 _525 _526 _527 _528 _529 _530 _531 _532 _533 _534 _535 _536 _537 _538 _539 _540 _541 _542 _543 _544 _545 _546 _547 _548 _549 _550 _551 _552 _553 _554 _555 _556 _557 _558 _559 _560 _561 _562 _563 _564 _565 _566 _567 _568 _569 _571 _572 _573 _574 _575 _576 _577 _578 _579 _580 _581 _582 _583 _584 _585 _586 _587 _588 _589 _590 _591 _592 _593 _594 _595 _596 _597 _598 _599 _600 _601 _602 _603 _604 _605 _606 _607 _608 _609 _610 _611 _612 _613 _614 _615 _616 _617 _618 _619 _620 _621 _622 _623 _625 _626 _627 _628 _629 _630 _631 _632 _633 _634 _635 _636 _637 _638 _639 _640 _642 _643 _644 _645 _646 _647 _648 _649 _650 _651 _652 _653 _654 _655 _656 _657 _658 _659 _660 _661 _662 _663 _664 _665 _666 _667 _668 _669 _670 _671 _672 _673 _674 _675 _676 _677 _678 _679 _680 _681 _682 _683 _684 _685 _686 _687 _688 _689 _690 _691 _692 _693 _694 _695 _696 _697 _698 _699 _700 _701 _702 _703 _704 _705 _706 _707 _708 _709 _710 _711 _712 _713 _714 _715 _716 _717 _718 _719 _720 _721 _722 _723 _724 _725 _726 _727 _728 _729 _730 _731 _732 _733 _734 _735 _736 _737 _738 _739 _740 _741 _742 _743 _744 _745 _746 _747 _748 _749 _750 _751 _752 _753 _754 _755 _756 _757 _758 _759 _760 _761 _762 _763 _764 _765 _766 _767 _768 _769 _770 _771 _772 _773 _774 _775 _776 _777 _778 _779 _780 _781 _782 _783 _784 _785 _786 _787 _788 _789 _790 _791 _792 _793 _794 _795 _796 _797 _798 _799 _800 _801 _802 _803 _804 _805 _806 _808 _809 _810 _811 _812 _813 _814 _815 _816 _817 _818 _820 _821 _823 _824 _825 _826 _827 _828 _829 _830 _831 _832 _833 _834 _835 _836 _837 _838 _839 _840 _841 _842 _843 _844 _845 _846 _847 _848 _849 _850 _851 _852 _853 _854 _855 _856 _857 _858 _859 _860 _861 _862 _863 _864 _865 _866 _867 _868 _869 _870 _871 _872 _873 _874 _875 _876 _877 _878 _879 _880 _881 _882 _883 _884 _885 _886 _887 _888 _889 _890 _891 _892 _893 _894 _895 _896 _897 _898 _899 _900 _901 _902 _903 _904 _905 _906 _907 _908 _909 _910 _911 _912 _913 _914 _915 _916 _917 _918 _919 _920 _921 _922 _923 _924 _925 _926 _927 _928 _929 _930 _931 _932 _933 _934 _935 _936 _937 _938 _939 _940 _941 _942 _943 _944 _945 _946 _947 _948 _949 _950 _951 _952 _953 _954 _955 _956 _957 _958 _959 _960 _961 _962 _963 _964 _965 _966 _967 _968 _969 _970 _971 _972 _973 _974 _975 _976 _977 _978 _979 _980 _981 _982 _983 _984 _985 _986 _987 _988 _989 _990 _991 _992 _993 _994 _995 _996 _997 _998 _999 _1000 _1001 _1002 _1003 _1004 _1005 _1006 _1007 _1008 _1009 _1010 _1011 _1012 _1013 _1014 _1015 _1016 _1017 _1018 _1019 _1020 _1021 _1022 _1023 _1024 _1025 _1026 _1027 _1028 _1029 _1030 _1031 _1032 _1033 _1034 _1035 _1036 _1037 _1038 _1039 _1040 _1041 _1042 _1043 _1044 _1045 _1046 _1047 _1048 _1049 _1050 _1051 _1052 _1053 _1054 _1055 _1056 _1057 _1058 _1059 _1060 _1061 _1062 _1063 _1064 _1065 _1066 _1067 _1068 _1069 _1070 _1071 _1072 _1073 _1074 _1075 _1076 _1077 _1078 _1079 _1080 _1082 _1084 _1086 _1087 _1088 _1089 _1090 _1091 _1092 _1093 _1094 _1095 _1096 _1097 _1098 _1099 _1100 _1101 _1102 _1103 _1104 _1105 _1106 _1107 _1108 _1109 _1110 _1111 _1112 _1113 _1114 _1115 _1116 _1118 _1117 _1120 _1122 _1124 _1126 _1127 _1128 _1129 _1130 _1131 _1132 _1133 _1134 _1135 _1136 _1137 _1138 _1140 _1141 _1142 _1143 _1145 _1146 _1148 _1149 _1151 _1152 _1154 _1156 _1158 _1160 _1162 _1164 _1166 _1168 _1170 _1171 _1172 _1173 _1174 _1175 _1176 _1081 _1083 _807 _1177 _1179 _1180 _1178 _1181 _1182 _1183 _1184 _1185 _1186 _1187 _1188 _1189 _1190 _1191 _1192 _1193 _1194 _1195 _1196 _1197 _1198 _1199 _1200 _1201 _1202 _1203 _1204 _1205 _1206 _1207 _1208 _1209 _1210 _1211 _1212 _1213 _1214 _1215 _1216 _1217 _1218 _1219 _1220 _1221 _1222 _1223 _1224 _1225 _1226 _1227 _1228 _1229 _1230 _1231 _1232 _1233 _1235 _1236 _1237 _1238 _1239 _1240 _1241 _1242 _1243 _1244 _1245 _1246 _1247 _1249 _1250 _1251 _1252 _1253 _1255 _1257 _1258 _1259 _1260 _1261 _1263 _1264 _1265 _1266 _1268 _1269 _1270 _1271 _1272 _1273 _1274 _1275 _1276 _1277 _1278 _1279 _1280 _1281 _1282 _1283 _1284 _1285 _1286 _1287 _1288 _1289 _1290 _1291 _1292 _1293 _1294 _1295 _1296 _1297 _1298 _1299 _1300 _1301 _1302 _1303 _1304 _1305 _1306 _1307 _1308 _1309 _1310 _1311 _1312 _1313 _1314 _1315 _1316 _1317 _1318 _1319 _1320 _1321 _1322 _1323 _1324 _1325 _1326 _1327 _1328 _1329 _1330 _1331 _1332 _1333 _1334 _1335 _1336 _1337 _1338 _1339 _1340 _1341 _1342 _1343 _1344 _1345 _1346 _1347 _1348 _1349 _1350 _1351 _1352 _1353 _1354 _1355 _1356 _1357 _1358 _1359 _1360 _1361 _1362 _1363 _1364 _1365 _1366 _1367 _1368 _1369 _1370 _1371 _1372 _1373 _1374 _1375 _1376 _1377 _1378 _1379 _1380 _1381 _1382 _1383 _1384 _1385 _1386 _1387 _1388 _1389 _1390 _1391 _1392 _1393 _1394 _1395 _1396 _1397 _1398 _1399 _1400 _1401 _1402 _1403 _1404 _1405 _1406 _1407 _1408 _1409 _1410 _1411 _1412 _1413 _1414 _1415 _1416 _1417 _1418 _1419 _1420 _1421 _1422 _1423 _1424 _1425 _1426 _1427 _1428 _1429 _1430 _1431 _1432 _1433 _1434 _1435 _1436 _1438 _1439 _1440 _1441 _1442 _1443 _1444 _1445 _1446 _1447 _1448 _1449 _1450 _1451 _1452 _1453 _1454 _1455 _1456 _1457 _1458 _1459 _1460 _1461 _1462 _1463 _1464 _1465 _1466 _1467 _1468 _1469 _1470 _1471 _1472 _1473 _1474 _1475 _1476 _1477 _1478 _1479 _1480 _1481 _1482 _1483 _1484 _1485 _1486 _1487 _1488 _1489 _1490 _1491 _1492 _1493 _1494 _1495 _1496 _1497 _1499 _1498 _1500 _1501 _819 _1502 _1503 _1504 _1505 _1507 _1506 _1509 _1510 _1511 _1512 _1513 _1514 _1515 _1516 _1517 _1518 _1520 _1521 _1522 _1523 _1524 _1525 _1526 _1527 _1528 _1530 _1529 _1531 _1532 _1533 _1534 _1535 _1536 _1537 _1538 _1539 _1540 _1541 _1542 _1543 _1544 _1545 _1546 _1547 _1548 _1549 _1550 _1551 _1552 _1553 _1554 _1555 _1556 _1557 _1558 _1559 _1560 _1561 _1562 _1563 _1564 _1565 _1567 _1568 _1569 _1570 _1571 _1572 _1573 _1574 _1575 _1576 _1578 _1579 _1580 _1581 _1582 _1583 _1584 _1585 _1586 _1587 _1588 _1589 _1590 _1591 _1592 _1593 _1594 _1595 _1596 _1597 _1598 _1599 _1566 _1600 _1601 _1602 _1603 _1604 _1605 _1606 _1607 _1608 _1609 _1610 _1611 _1612 _1613 _1614 _1615 _1616 _1617 _1618 _1619 _1620 _1621 _1622 _1623 _1624 _1625 _1626 _1627 _1628 _1629 _1630 _1631 _1632 _1633 _1634 _1635 _1636 _1637 _1638 _1639 _1640 _1641 _1642 _1643 _1644 _1645 _1646 _1647 _1648 _1649 _1650 _1651 _1652 _1653 _1654 _1655 _1656 _1657 _1658 _1659 _1660 _1661 _1662 _1663 _1664 _1665 _1666 _1667 _1668 _1669 _1670 _1671 _1672 _1673 _1674 _1675 _1676 _1677 _1678 _1679 _1680 _1681 _1682 _1683 _1684 _1685 _1686 _1687 _1688 _1689 _1690 _1691 _1692 _1693 _1694 _1695 _1696 _1697 _1698 _1699 _1700 _1701 _1702 _1703 _1704 _1705 _1706 _1707 _1708 _1709 _1710 _1711 _1712 _1713 _1714 _1715 _1716 _1717 _1718 _1719 _1720 _1721 _1722 _1723 _1724 _1725 _1726 _1727 _1728 _1729 _1730 _1731 _1732 _1733 _1734 _1735 _1736 _1737 _1738 _1739 _1740 _1741 _1742 _1743 _1744 _1745 _1746 _1747 " mangled="_Z2::"/> <Namespace id="_2" name="std" context="_1" members="_1752 _1753 _1758 _1759 _1770 _1771 _1776 _1777 _1782 _1783 _1785 _1786 _1787 _1788 _1789 _1790 _1791 _1792 _1793 _1794 _1800 _1801 _1802 _1803 _1804 _1805 _1806 _1807 _1808 _1809 _1810 _1811 _1812 _1813 _1814 _1817 _1818 _1819 _1820 _1821 _1822 _1823 _1824 _1825 _1826 _1827 _1828 _1839 _1840 _1841 _1842 _1843 _1844 _1845 _1846 _1847 _1848 _1849 _1850 _1851 _1852 _1853 _1854 _1855 _1856 _1857 _1858 _1862 _1863 _1864 _1865 _1866 _1867 _1868 _1869 _1870 _1871 _1872 _1873 _1874 _1875 _1876 _1877 _1878 _1879 _1880 _1881 _1882 _1883 _1884 _1885 _1886 _1887 _1888 _1889 _1890 _1891 _1892 _1893 _1894 _1895 _1896 _1920 _1930 _1931 _1932 _1933 _1934 _1935 _1936 _1937 _1938 _1939 _1940 _1941 _1942 _1943 _1944 _1945 _1946 _1947 _1948 _1949 _1950 _1951 _1952 _1953 _1954 _1955 _1956 _1957 _1958 _1959 _1960 _1961 _1962 _1963 _1964 _1965 _1966 _1967 _1968 _1969 _1970 _1971 _1972 _1973 _1974 _1975 _1976 _1977 _1978 _1979 _2001 _2002 _2037 _2039 _2041 _2040 _2042 _2043 _2044 _2045 _2046 _2047 _2052 _2053 _2054 _2154 _2156 _2157 _2158 _2215 _2216 _2217 _2218 _2219 _2220 _2222 _2223 _2224 _2225 _2226 _2227 _2228 _2229 _2230 _2231 _2232 _2233 _2234 _2235 _2236 _2238 _2240 _2242 _2244 _2246 _2248 _2250 _2252 _2254 _2256 _2258 _2260 _2262 _2264 _2266 _2268 _2270 _2272 _2274 _2276 _2278 _2280 _2282 _2284 _2286 _2288 _2289 _2290 _2291 _2292 _2293 _2294 _2295 _2296 _2297 _2298 _2299 _2300 _2301 _2302 _2303 _2305 _2306 _2307 _2308 _2309 _2310 _2311 _2312 _2313 _2314 _2315 _2316 _2317 _2318 _2320 _2322 _2323 _2356 _2357 _2358 _2359 _2360 _2361 _2362 _2363 _2364 _2365 " mangled="_Z3std"/> ! <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppONA2xa" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> ! <Function id="_4" name="_GLOBAL__I__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppONA2xa" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> <Variable id="_5" name="_ZGVN5boost9date_time10date_facetINS_9gregorian4dateEcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE" type="_1256" context="_1" location="f1:372" file="f1" line="372" artificial="1"/> <Function id="_6" name="__static_initialization_and_destruction_0" returns="_1139" context="_1" mangled="_Z41__static_initialization_and_destruction_0ii" location="f0:131" file="f0" line="131" endline="77"> |
From: Roman <rom...@us...> - 2006-03-20 05:48:01
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv516/pyplusplus/examples/py_date_time Modified Files: _date_time_.suo _date_time_.vcproj create_date_time.py Log Message: removing finalize from the code_creators and adding it to decl wrappers Index: create_date_time.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/create_date_time.py,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** create_date_time.py 19 Mar 2006 13:35:39 -0000 1.31 --- create_date_time.py 20 Mar 2006 05:47:56 -0000 1.32 *************** *** 94,98 **** #boost.date_time has problem to create local_[micro]sec_clock #variable, it has nothing to do with pyplusplus ! classes = mb.classes(lambda decl: decl.alias in ['local_microsec_clock', 'local_sec_clock'] ) classes.exclude() classes.ignore = False --- 94,99 ---- #boost.date_time has problem to create local_[micro]sec_clock #variable, it has nothing to do with pyplusplus ! empty_classes = ['local_microsec_clock', 'local_sec_clock', 'microsec_clock', 'second_clock' ] ! classes = mb.classes( lambda decl: decl.alias in empty_classes ) classes.exclude() classes.ignore = False Index: _date_time_.vcproj =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/_date_time_.vcproj,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** _date_time_.vcproj 15 Feb 2006 07:45:30 -0000 1.4 --- _date_time_.vcproj 20 Mar 2006 05:47:56 -0000 1.5 *************** *** 322,325 **** --- 322,328 ---- </File> <File + RelativePath=".\generated\greg_durations_config.pypp.cpp"> + </File> + <File RelativePath=".\generated\greg_month.pypp.cpp"> </File> *************** *** 391,394 **** --- 394,400 ---- </File> <File + RelativePath=".\generated\millisec_posix_time_system_config.pypp.cpp"> + </File> + <File RelativePath=".\generated\milliseconds.pypp.cpp"> </File> *************** *** 454,457 **** --- 460,475 ---- </File> <File + RelativePath=".\generated\time_resolution_traits_adapted32_impl.pypp.cpp"> + </File> + <File + RelativePath=".\generated\time_resolution_traits_adapted64_impl.pypp.cpp"> + </File> + <File + RelativePath=".\generated\time_resolution_traits_bi32_impl.pypp.cpp"> + </File> + <File + RelativePath=".\generated\time_resolution_traits_bi64_impl.pypp.cpp"> + </File> + <File RelativePath=".\generated\time_zone_base.pypp.cpp"> </File> *************** *** 678,681 **** --- 696,702 ---- </File> <File + RelativePath=".\generated\greg_durations_config.pypp.hpp"> + </File> + <File RelativePath=".\generated\greg_month.pypp.hpp"> </File> *************** *** 747,750 **** --- 768,774 ---- </File> <File + RelativePath=".\generated\millisec_posix_time_system_config.pypp.hpp"> + </File> + <File RelativePath=".\generated\milliseconds.pypp.hpp"> </File> *************** *** 810,813 **** --- 834,849 ---- </File> <File + RelativePath=".\generated\time_resolution_traits_adapted32_impl.pypp.hpp"> + </File> + <File + RelativePath=".\generated\time_resolution_traits_adapted64_impl.pypp.hpp"> + </File> + <File + RelativePath=".\generated\time_resolution_traits_bi32_impl.pypp.hpp"> + </File> + <File + RelativePath=".\generated\time_resolution_traits_bi64_impl.pypp.hpp"> + </File> + <File RelativePath=".\generated\time_zone_base.pypp.hpp"> </File> Index: _date_time_.suo =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/_date_time_.suo,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsMDVJ99 and /tmp/cvs90MdFx differ |