Re: [Doxygen-develop] Extracting parameter type from XML ?
Brought to you by:
dimitri
From: Dimitri v. H. <di...@st...> - 2002-11-14 18:02:49
|
On Tue, Nov 12, 2002 at 10:36:09AM +0100, Carsten Zerbst wrote: > Hello, > I struggle how to extract the parameter type from the xml file using > doxmlparser. I get the parameter name from > > > printf("param decl %s\n", param->declarationName()->latin1()); > > but how to get the paramter type ? Using param->type() of course ;-) The result is not a string but can be converted to one using something like this: QString linkedTextToString(ILinkedTextIterator *ti) { QString result; ILinkedText *lt=0; for (ti->toFirst();(lt=ti->current());ti->toNext()) { switch (lt->kind()) { case ILinkedText::Kind_Text: // plain text result+=dynamic_cast<ILT_Text*>(lt)->text()->latin1(); break; case ILinkedText::Kind_Ref: // a link result+=dynamic_cast<ILT_Ref *>(lt)->text()->latin1(); break; } } return result; } Regards, Dimitri |