Revision: 928
http://svn.sourceforge.net/pygccxml/?rev=928&view=rev
Author: allenb
Date: 2007-02-24 14:10:41 -0800 (Sat, 24 Feb 2007)
Log Message:
-----------
Add documentation and fix up the protected method handling.
Modified Paths:
--------------
pyplusplus_dev/contrib/goodies/goodie_utils.py
Modified: pyplusplus_dev/contrib/goodies/goodie_utils.py
===================================================================
--- pyplusplus_dev/contrib/goodies/goodie_utils.py 2007-02-24 22:09:52 UTC (rev 927)
+++ pyplusplus_dev/contrib/goodies/goodie_utils.py 2007-02-24 22:10:41 UTC (rev 928)
@@ -86,7 +86,7 @@
def exclude_protected(cls):
""" Exclude all protected declarations. """
- cls.decls(pd.access_type_matcher_t('protected'),allow_empty=True).exclude()
+ cls.decls(pd.access_type_matcher_t(pd.ACCESS_TYPES.PROTECTED),allow_empty=True).exclude()
def wrap_const_ref_params(cls):
""" Find all member functions of cls and if they take a const& to a class
@@ -160,6 +160,8 @@
""" Proxy for a template instance. Returned from the TemplateBuilder
to allow access to the template at a later time.
+ NOTE: DO NOT USE DIRECTLY. ONLY USE AS RETURNED FROM TEMPLATE BUILDER.
+
TODO: If used a form that allowed multiple templates to be specified
ex: TemplateWrapper("OSG::vector", arguments=[["float","3"],["int","4"]]
then how would we handle naming? Automatic or must be specified?
@@ -211,7 +213,9 @@
tb = TemplateBuilder()
vec3f_t = tb.Template("OSG::vector<float,3>")
- # Add autogen code to a header that is included
+ header_contents = tb.buildAutogenContents()
+ # Add contents to some file that is included by module builder
+
mb = moduble_builder_t([myheaders])
tb.process(mb)
@@ -229,6 +233,7 @@
def Template(self, *args, **kw):
"""Create and add a template wrapper.
+ Returns a template wrapper that can be used to get the decl later.
"""
temp_wrapper = TemplateWrapper(*args, **kw)
self.mTemplates.append(temp_wrapper)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|