On Fri, Nov 15, 2002 at 10:03:03AM +0100, Carsten Zerbst wrote:
> Am Don, 2002-11-14 um 19.02 schrieb Dimitri van Heesch:
>
> > {
> > 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;
> > }
>
> Hello Dimitri,
>
> thanks very much. As I wrote to much java the last years,
> the dynamic_cast did not come to my mind. I assume that the same
> solution will work to extract the documentation within
>
> IDocRoot* docRoot = myMethod->detailedDescription();
> IDocIterator* docit = docRoot->contents();
> IDoc doc;
> for (docit->toFirst();(doc=docit->current());docit->toNext()) {
>
> };
> docit-release();
>
> ?
>
> If yes, do you have an example available as well ?
Yes, look at addon/doxmlparser/test/main.cpp in the source distribution.
Regards,
Dimitri
|