Thread: [pygccxml-development] typedef member has no access_type?
Brought to you by:
mbaas,
roman_yakovenko
From: Gustavo C. <gjc...@gm...> - 2008-09-15 13:54:42
|
Hi, I have some code like this: for member in cls.get_members(): if member.name.startswith('__'): continue if member.access_type not in ['public']: continue But I am getting an exception: if member.access_type not in ['public']: AttributeError: 'typedef_t' object has no attribute 'access_type' I am not sure then how to find out the access type of a typedef defined inside a class. Any ideas? -- Gustavo J. A. M. Carneiro INESC Porto, Telecommunications and Multimedia Unit "The universe is always one step beyond logic." -- Frank Herbert |
From: Gustavo C. <gjc...@gm...> - 2008-09-15 13:57:30
|
Hm.. actually cls.get_members(access='public') helps solve my problem, so never mind. 2008/9/15 Gustavo Carneiro <gjc...@gm...> > Hi, > > I have some code like this: > > > for member in cls.get_members(): > if member.name.startswith('__'): > continue > if member.access_type not in ['public']: > continue > > But I am getting an exception: > > if member.access_type not in ['public']: > AttributeError: 'typedef_t' object has no attribute 'access_type' > > I am not sure then how to find out the access type of a typedef defined > inside a class. Any ideas? > > -- > Gustavo J. A. M. Carneiro > INESC Porto, Telecommunications and Multimedia Unit > "The universe is always one step beyond logic." -- Frank Herbert > -- Gustavo J. A. M. Carneiro INESC Porto, Telecommunications and Multimedia Unit "The universe is always one step beyond logic." -- Frank Herbert |