[pygccxml-development] [new feature]add_properties
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-10-04 06:40:53
|
Hi. I added new future - add_properties. The idea behind this functionality is to automatically recognize and add properties to the class. The "add_properties" functionality aware of few coding conventions: UpperCamel lowCamel words_separated_with_underscore And also it is aware of common prefixes: get, is, has, <<empty prefix>>, set. It is possible to configure to exclude functions that has been used for properties. Usage example: mb = module_builder_t( ... ) my_class = mb.class_( ... ) my_class.add_properties() or my_class.add_properties( exclude_accessors=True ) The implementation of algorithm could be found here: http://svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/pyplusplus/decl_wrappers/properties.py?view=markup Your comments, suggestions, bugs are welcome. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |