[pygccxml-development] pyplusplus usage
Brought to you by:
mbaas,
roman_yakovenko
From: Lakin W. <lak...@gm...> - 2006-06-01 18:35:06
|
I've been trying things like: Matrix4 = ogre_ns.classes('Matrix4').member_operators('operator[]').exclude() and ogre_ns.classes('HardwareBuffer').enumerations ('Usage').exclude() But: ogre_ns.classes('HardwareBuffer').enumerations ('Usage') and Matrix4 = ogre_ns.classes('Matrix4').member_operators('operator[]') both return a NoneType. And the result is that the only way I can achieve this effect is: def exclude_operator_index (decl): value = decl.name.startswith('operator[]') if value: decl.exclude() return value ogre_ns.classes('Matrix4').member_operators (exclude_operator_index) ogre_ns.classes('Matrix3').member_operators (exclude_operator_index) def exclude_usage (decl): value = decl.name.startswith('Usage') if value: decl.exclude() return value ogre_ns.classes('HardwareBuffer').enumerations (exclude_usage) I'm not sure if this is a similar issue to one of the ones that Allen was talking about, but it would be nice to be able to use the first way. Lakin |