Revision: 45
Author: roman_yakovenko
Date: 2006-05-01 22:04:56 -0700 (Mon, 01 May 2006)
ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=45&view=rev
Log Message:
-----------
adding exportable functionality
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py 2006-05-02 05:03:50 UTC (rev 44)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py 2006-05-02 05:04:56 UTC (rev 45)
@@ -9,4 +9,18 @@
class variable_t(decl_wrapper.decl_wrapper_t, declarations.variable_t):
def __init__(self, *arguments, **keywords):
declarations.variable_t.__init__(self, *arguments, **keywords )
- decl_wrapper.decl_wrapper_t.__init__( self )
\ No newline at end of file
+ decl_wrapper.decl_wrapper_t.__init__( self )
+
+ def _exportable_impl( self ):
+ if not isinstance( self.parent, declarations.class_t ):
+ return ''
+ if self.bits == 0 and self.name == "":
+ return "pyplusplus can not expose alignement bit."
+ type_ = declarations.remove_const( self.type )
+ if declarations.is_pointer( type_ ):
+ if self.type_qualifiers.has_static:
+ return "pyplusplus, right now, can not expose static pointer member variables. This could be changed in future."
+ if declarations.is_fundamental( type_.base ):
+ return "pyplusplus, right now, can not expose pointer to fundamental member variables. This could be changed in future."
+ return ''
+
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|