Update of /cvsroot/pygccxml/source/pyplusplus/module_creator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28954/pyplusplus/module_creator
Modified Files:
call_policies_resolver.py class_organizer.py creator.py
types_database.py
Log Message:
There are a lot of changes, sorry CVS did not worked for week or something like this
Changes
1. Lots of code clean up
2. Adding and updating documentation
3. Adding new method on decl_wrapper - readme. This method will return list of msgs to the developer.
For example if function takes by reference fundamental type it will say that this function could not be called from Python
4. Logging functionlity has been added to file writers too
5. Few bug fixes
6. For operator [] call policies is always set.
Index: types_database.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/module_creator/types_database.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** types_database.py 28 Feb 2006 07:31:33 -0000 1.10
--- types_database.py 6 Apr 2006 06:16:09 -0000 1.11
***************
*** 123,127 ****
converter = spconverter_t( smart_ptr=registrator.smart_ptr
, source=hierarchy_info.related_class
! , target=class_decl )
answer.append( converter )
return answer
--- 123,127 ----
converter = spconverter_t( smart_ptr=registrator.smart_ptr
, source=hierarchy_info.related_class
! , target=class_creator.declaration )
answer.append( converter )
return answer
Index: call_policies_resolver.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/module_creator/call_policies_resolver.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** call_policies_resolver.py 30 Mar 2006 08:09:42 -0000 1.14
--- call_policies_resolver.py 6 Apr 2006 06:16:09 -0000 1.15
***************
*** 4,8 ****
# http://www.boost.org/LICENSE_1_0.txt)
- import os
from pygccxml import declarations
from pyplusplus import decl_wrappers
--- 4,7 ----
***************
*** 89,93 ****
if calldef.symbol != '[]':
return None
!
return_type = declarations.remove_cv( calldef.return_type )
if declarations.is_reference( return_type ):
--- 88,92 ----
if calldef.symbol != '[]':
return None
!
return_type = declarations.remove_cv( calldef.return_type )
if declarations.is_reference( return_type ):
***************
*** 98,107 ****
else:
return decl_wrappers.return_value_policy( decl_wrappers.copy_non_const_reference )
- elif declarations.is_reference( return_type ):
- #reference, but not funcdamental type
- #In future may be I should check whether class is copyable or not
- return decl_wrappers.return_internal_reference()
else:
! return None
class built_in_resolver_t(resolver_t):
--- 97,102 ----
else:
return decl_wrappers.return_value_policy( decl_wrappers.copy_non_const_reference )
else:
! return decl_wrappers.return_internal_reference()
class built_in_resolver_t(resolver_t):
Index: creator.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/module_creator/creator.py,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** creator.py 19 Mar 2006 13:35:39 -0000 1.63
--- creator.py 6 Apr 2006 06:16:09 -0000 1.64
***************
*** 4,12 ****
# http://www.boost.org/LICENSE_1_0.txt)
- import types
from pygccxml import declarations
from pyplusplus import code_creators
import class_organizer
- from sets import Set as set
import call_policies_resolver
import types_database
--- 4,10 ----
Index: class_organizer.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/module_creator/class_organizer.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** class_organizer.py 14 Feb 2006 13:57:46 -0000 1.6
--- class_organizer.py 6 Apr 2006 06:16:09 -0000 1.7
***************
*** 4,8 ****
# http://www.boost.org/LICENSE_1_0.txt)
- import os
from pygccxml import declarations
from sets import Set as set
--- 4,7 ----
***************
*** 61,65 ****
return i_depend_on_them
! def __get_top_class_inst( seld, decl ):
curr = decl
while isinstance( curr.parent, declarations.class_t ):
--- 60,64 ----
return i_depend_on_them
! def __get_top_class_inst( self, decl ):
curr = decl
while isinstance( curr.parent, declarations.class_t ):
|