From: Roman <rom...@us...> - 2006-04-20 04:07:17
|
Update of /cvsroot/pygccxml/source/pyplusplus/decl_wrappers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus/decl_wrappers Modified Files: call_policies.py calldef_wrapper.py class_wrapper.py decl_wrapper.py scopedef_wrapper.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: decl_wrapper.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/decl_wrapper.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** decl_wrapper.py 6 Apr 2006 15:25:38 -0000 1.6 --- decl_wrapper.py 20 Apr 2006 04:06:41 -0000 1.7 *************** *** 18,22 **** __REPOTED_REPLACES.append( msg ) ! class ERROR_BEHAVIOUR: PRINT = 'print' RAISE = 'raise' --- 18,22 ---- __REPOTED_REPLACES.append( msg ) ! class ERROR_BEHAVIOR: PRINT = 'print' RAISE = 'raise' *************** *** 78,89 **** #return False ! #def _finalize_impl( self, error_behaviour ): #pass ! #def finalize( self, error_behaviour=None): #try: #self._finalize_impl( self ) #except Exception, error: ! #if None is error_behaviour or error_behaviour == ERROR_BEHAVIOUR.PRINT: #print 'Unable to finalize declaration: ', str( error ) #else: --- 78,89 ---- #return False ! #def _finalize_impl( self, error_behavior ): #pass ! #def finalize( self, error_behavior=None): #try: #self._finalize_impl( self ) #except Exception, error: ! #if None is error_behavior or error_behavior == ERROR_BEHAVIOR.PRINT: #print 'Unable to finalize declaration: ', str( error ) #else: Index: call_policies.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/call_policies.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** call_policies.py 6 Apr 2006 06:15:59 -0000 1.3 --- call_policies.py 20 Apr 2006 04:06:41 -0000 1.4 *************** *** 4,7 **** --- 4,15 ---- # http://www.boost.org/LICENSE_1_0.txt) + """ + This modules contains definition of call policies classes. Call policies names + are same, that used in boost.python library. + + For every class that implements code creation of call policies, there is a + convinience function. + """ + from pygccxml import declarations import algorithm Index: scopedef_wrapper.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/scopedef_wrapper.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** scopedef_wrapper.py 12 Apr 2006 07:40:34 -0000 1.9 --- scopedef_wrapper.py 20 Apr 2006 04:06:41 -0000 1.10 *************** *** 12,16 **** class scopedef_t(decl_wrapper.decl_wrapper_t): ! """In C++ there are 2 declarations that can contain definition of other declarations: class and namespace. This class is used as abase class for both of them. --- 12,17 ---- class scopedef_t(decl_wrapper.decl_wrapper_t): ! """ ! In C++ there are 2 declarations that can contain definition of other declarations: class and namespace. This class is used as abase class for both of them. *************** *** 32,37 **** name or function. This class will find out correctly what argument represents. ! Example: ! ns - referers to global namespace ns.member_function( "do_something ) - will return reference to member --- 33,37 ---- name or function. This class will find out correctly what argument represents. ! Example:: ns - referers to global namespace ns.member_function( "do_something ) - will return reference to member *************** *** 40,45 **** raised too. ! Example 2: ! ns - referers to global namespace do_smths = ns.member_functions( "do_something ) - will return instance --- 40,44 ---- raised too. ! Example 2:: ns - referers to global namespace do_smths = ns.member_functions( "do_something ) - will return instance *************** *** 53,57 **** Pay attention: you can not use "get" functions or properties. - """ --- 52,55 ---- Index: calldef_wrapper.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/calldef_wrapper.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** calldef_wrapper.py 6 Apr 2006 06:15:59 -0000 1.4 --- calldef_wrapper.py 20 Apr 2006 04:06:41 -0000 1.5 *************** *** 58,62 **** return False ! def _finalize_impl( self, error_behaviour ): if not isinstance( self, declarations.member_calldef_t ): pass --- 58,62 ---- return False ! def _finalize_impl( self, error_behavior ): if not isinstance( self, declarations.member_calldef_t ): pass Index: class_wrapper.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/class_wrapper.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class_wrapper.py 20 Mar 2006 05:47:56 -0000 1.3 --- class_wrapper.py 20 Apr 2006 04:06:41 -0000 1.4 *************** *** 63,69 **** return False ! def _finalize_impl( self, error_behaviour ): for decl in self.declarations: ! decl.finalize( error_behaviour ) def _get_user_code( self ): --- 63,69 ---- return False ! def _finalize_impl( self, error_behavior ): for decl in self.declarations: ! decl.finalize( error_behavior ) def _get_user_code( self ): |