From: Grzegorz J. <ja...@he...> - 2004-09-15 09:03:17
|
On Tue, 14 Sep 2004, RodZilla wrote: > Hello, > > I have another stupid question. Now I would like to > get (and write into a file) the full declaration of > a member in a class. > I do this using Member::Signature and TypeInfo::MakePtree, > but if the member is an array, its size is omitted. > Is it possible to get the full declaration, and how ? I don't think so. Type elaboration takes a shortcut here. However, with minor enhancement to Member class you can get hold on the Ptree representing original declaration of the member (including type). Have a look at Member::original_decl . Adding something like 'Ptree* Member::GetOriginalType()' should not be difficult to add. BR Grzegorz PS: Hopefully the limitation of type elaborator will be addressed soon within core library. > Thanks a lot in advance. > > Best regards, > > Rod. > > > ------------------------------------------------------- > This SF.Net email is sponsored by: thawte's Crypto Challenge Vl > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > Camcorder. More prizes in the weekly Lunch Hour Challenge. > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2004 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |