[pygccxml-development] name_based_recognizer_t and pure functions
Brought to you by:
mbaas,
roman_yakovenko
|
From: Berserker <ber...@ho...> - 2010-01-13 13:02:09
|
I'm using name_based_recognizer_t to bind properties to my exposed methods.
I don't understand why pure virtual (public) functions are not supported.
Given the code:
class Foo {
public:
virtual std::string getName() const = 0;
virtual std::string getDescription() const;
}
Py++ creates the "Description" property but not the "Name" one.
I tweaked the code in "property_recognizer_i.is_accessor" in this way:
def is_accessor( self, mem_fun ):
if mem_fun.ignore:
return False
if mem_fun.access_type != 'public':
return False
if mem_fun.has_static:
return False
#if mem_fun.virtuality == declarations.VIRTUALITY_TYPES.PURE_VIRTUAL:
# return False
return True
and now it seems working, can I ask the meaning of that check?
_________________________________________________________________
Non sei a casa? Prova il nuovo Web Messenger
http://www.messenger.it/web/default.aspx |